Export to GitHub

linkedgeodata - issue #17

Triplifier seems to crash on certain content headers


Posted on May 1, 2011 by Quick Lion

The exception in this message has to be handled properly: Either the content header is malformed, or the java class which is being used is not capable of handling it. In any case it causes the service to crash.

2011-05-01 07:08:46,168 [Thread-2] INFO org.linkedgeodata.jtriplify.JTriplifyServer: Accept header: [application/rdf+xml;q=1,text/xml;q=0.6,text/rdf+n3;q=0.9,application/octet-stream;q=0.5,application/xml q=0.5,application/rss+xml;q=0.5,text/plain; q=0.5,application/x-turtle;q=0.5,application/x-trig;q=0.5,text/html;q=0.5] 2011-05-01 07:08:46,169 [Thread-2] ERROR org.linkedgeodata.jtriplify.MyHttpHandler: java.lang.RuntimeException: javax.mail.internet.ParseException: Expected ';', got "q" at org.linkedgeodata.jtriplify.DataHandler.handle(JTriplifyServer.java:172) at org.linkedgeodata.jtriplify.MyHttpHandler._handle(JTriplifyServer.java:133) at org.linkedgeodata.jtriplify.MyHttpHandler.handle(JTriplifyServer.java:122) at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:83) at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83) at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:86) at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:589) at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:83) at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:561) at sun.net.httpserver.ServerImpl$DefaultExecutor.execute(ServerImpl.java:137) at sun.net.httpserver.ServerImpl$Dispatcher.handle(ServerImpl.java:367) at sun.net.httpserver.ServerImpl$Dispatcher.run(ServerImpl.java:339) at java.lang.Thread.run(Thread.java:636) Caused by: javax.mail.internet.ParseException: Expected ';', got "q" at javax.mail.internet.ParameterList.<init>(ParameterList.java:281) at javax.mail.internet.ContentType.<init>(ContentType.java:113) at org.linkedgeodata.jtriplify.MyHandler.getPreferredFormats(JTriplifyServer.java:831) at org.linkedgeodata.jtriplify.DataHandler._handle(JTriplifyServer.java:217) at org.linkedgeodata.jtriplify.DataHandler.handle(JTriplifyServer.java:170) ... 12 more

Comment #1

Posted on May 17, 2011 by Quick Lion

Triplifier no longer crashes on this header - however no error message is displayed yet. I'll add this as a low priority fix.

Status: Fixed

Labels:
Type-Defect Priority-Critical