Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDF4J crash when loading ntriples file #80

Closed
abrokenjester opened this issue May 11, 2016 · 1 comment
Closed

RDF4J crash when loading ntriples file #80

abrokenjester opened this issue May 11, 2016 · 1 comment
Labels
🐞 bug issue is a bug cannot reproduce issue can not be reproduced (close reason) 📦 rio affects the Rio RDF Parser/Writer toolkit 📦 workbench affects the RDF4J Workbench

Comments

@abrokenjester
Copy link
Contributor

(Migrated from https://openrdf.atlassian.net/browse/SES-2256 )

I tried to load a file with triples, like this http://es.dbpedia.org/data/Madrid.ntriples

When loading through the workbench I got this error:
ClientHTTPException: MALFORMED DATA: Element type "http:" must be followed by either attribute specifications, ">" or "/>". [line 1, column 8]"

And when loading through the console, this happened:

mvp> load /media/Madrid.ntriples
Loading data...
Closing repository 'mvp'...
Disconnecting from http://localhost:8080/openrdf-sesame
Exception in thread "main" java.lang.NullPointerException
at org.openrdf.http.client.RDF4JSession.upload(RDF4JSession.java:681)
at org.openrdf.http.client.RDF4JSession.upload(RDF4JSession.java:672)
at org.openrdf.repository.http.HTTPRepositoryConnection.add(HTTPRepositoryConnection.java:469)
at org.openrdf.repository.http.HTTPRepositoryConnection.add(HTTPRepositoryConnection.java:393)
at org.openrdf.console.Load.addData(Load.java:155)
at org.openrdf.console.Load.load(Load.java:98)
at org.openrdf.console.Load.execute(Load.java:79)
at org.openrdf.console.Console.executeCommand(Console.java:305)
at org.openrdf.console.Console.start(Console.java:277)
at org.openrdf.console.Console.main(Console.java:135)

Renaming the file from Madrid.ntriples to Madrid.nt all worked.

Here a possible clue by Dale Visser:
I'm guessing that RIO failed to guess the correct serialization format, and somehow ended up crashing with a very uninformative NullPointerException. I don't know if the responsibility for the problem lies on the HttpClient side (e.g., wrong content type header) or the server side, or if they somehow "collaborated"

@abrokenjester abrokenjester added the 🐞 bug issue is a bug label May 11, 2016
josephw added a commit to josephw/rdf4j that referenced this issue Oct 5, 2016
Allow a null RDFFormat to upload, and pass it through as an
untyped entity.

Signed-off-by: Joseph Walton <joe@kafsemo.org>
@catch-point catch-point added the 📦 rio affects the Rio RDF Parser/Writer toolkit label Jun 23, 2017
@catch-point catch-point added the 📦 workbench affects the RDF4J Workbench label Aug 28, 2017
abrokenjester pushed a commit that referenced this issue Aug 22, 2019
Add Override annotations (reported by Netbeans Inspect and Transform)
abrokenjester pushed a commit that referenced this issue Aug 22, 2019
@barthanssens
Copy link
Contributor

I tested this in workbench 3.0 and while the file was now uploaded without issues in the workbench, viewing the uploaded triples doesn't appear to be successful (i.e. trying to view results 100-150 yields in an empty page)

@abrokenjester abrokenjester added the cannot reproduce issue can not be reproduced (close reason) label Feb 12, 2020
abrokenjester pushed a commit that referenced this issue Jul 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug issue is a bug cannot reproduce issue can not be reproduced (close reason) 📦 rio affects the Rio RDF Parser/Writer toolkit 📦 workbench affects the RDF4J Workbench
Projects
None yet
Development

No branches or pull requests

3 participants