Details
-
Wish
-
Status: Closed
-
Minor
-
Resolution: Invalid
-
None
-
Mac OS X, 10.5.8; Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
Description
When sending data to the stanbol enhancer, I get the attached exception on my console. I use the full launcher with the Zemanta and OpenCalais engines.
Though I retrieve annotations I think the exception should at least be catched and replaced by an appropriate message. This can look "scary" for first-time users.
The command I execute:
curl -X POST -H "Accept: application/rdf+json" -H "Content-type: text/plain" --data "The Eiffel Tower." http://localhost:8080/engines
Exception in thread "pool-5-thread-184" com.hp.hpl.jena.shared.JenaException: org.xml.sax.SAXParseException: White spaces are required between publicId and systemId.
at com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler.fatalError(RDFDefaultErrorHandler.java:45)
at com.hp.hpl.jena.rdf.arp.impl.ARPSaxErrorHandler.fatalError(ARPSaxErrorHandler.java:35)
at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.warning(XMLHandler.java:225)
at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.fatalError(XMLHandler.java:255)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.scanExternalID(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.scanDoctypeDecl(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.parse(RDFXMLParser.java:142)
at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:158)
at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:145)
at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:215)
at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:226)
at org.apache.clerezza.rdf.jena.parser.JenaParserProvider.parse(JenaParserProvider.java:68)
at org.apache.clerezza.rdf.core.serializedform.Parser.parse(Parser.java:191)
at org.apache.clerezza.rdf.core.serializedform.Parser.parse(Parser.java:162)
at org.apache.clerezza.rdf.core.serializedform.Parser.parse(Parser.java:128)
at org.apache.stanbol.enhancer.jersey.cache.CachingDereferencerEngine.dereferenceHTTP(CachingDereferencerEngine.java:171)
at org.apache.stanbol.enhancer.jersey.cache.CachingDereferencerEngine.dereference(CachingDereferencerEngine.java:202)
at org.apache.stanbol.enhancer.jersey.cache.CachingDereferencerEngine$2.run(CachingDereferencerEngine.java:156)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.xml.sax.SAXParseException: White spaces are required between publicId and systemId.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
... 27 more
Attachments
Issue Links
- relates to
-
CLEREZZA-648 RDF/JSON Serializer can not serialize graphs larger than available memory.
- Open
- requires
-
CLEREZZA-649 Add RDF/JSON support to JenaParserProvider
- Open