We're updating the issue view to help you get more done. 

Sesame crash when loading ntriples file

Description

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.SesameSession.upload(SesameSession.java:681)
at org.openrdf.http.client.SesameSession.upload(SesameSession.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"

Environment

Application Name OpenRDF Workbench
Version 2.8.3
Runtime Information
Operating System Linux 3.13.0-32-generic (amd64)
Java Runtime Oracle Corporation OpenJDK 64-Bit Server VM (1.7.0_79)
Process User tomcat7

Status

Assignee

Peter Ansell

Reporter

MiquelF

Labels

None

Affects versions

2.8.0
2.8.3

Priority

Minor