Skip to content

Cannot build main with maven #3230

Answered by abrokenjester
fkleedorfer asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for reporting this. I think this is a bug in the NDJSONLDParser that only manifests itself when running the test suite on a Windows machine. The root cause of the issue is, I suspect line 63:

JsonParser nextParser = factory.createParser(new ByteArrayInputStream(line.getBytes()));

In particular, the line.getBytes() has no encoding supplied, so it falls back to the default platform encoding (which on Windows is not UTF-8 but something like windows-1250, which the underlying JSON parser doesn't expect).

To fix, upgrade your system to Linux.

I kid. I'll log a bug ticket for this. I don't think the fix is hard but it needs a careful eye (I'm also a bit suspicious of the fact that that p…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@abrokenjester
Comment options

Comment options

You must be logged in to vote
3 replies
@abrokenjester
Comment options

@barthanssens
Comment options

@barthanssens
Comment options

Comment options

You must be logged in to vote
2 replies
@abrokenjester
Comment options

@JervenBolleman
Comment options

Answer selected by abrokenjester
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants