openRDF.org Welcome Guest   | Login   
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Search  | Help  | RSS feeds

Forum has been closed down
This forum has been closed down due to extensive spamming activities. Please use the mailing list instead.


Quick Go »
Thread Status: Normal
Total posts in this thread: 1
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 1998 times and has 0 replies Next Thread
Feb 17, 2004 8:18:31 PM

jeen
Sesame Addict
Member's Avatar

The Netherlands
Joined: Jan 23, 2004
Posts: 1091
Status: Offline
NullPointerException on resolving relative URIs?

I got the following stacktrace on an upload action (Sesame 1.0-PRE-1):


2004-02-17 15:13:22:489 [http80-Processor23] [TRACE ] base URL =
2004-02-17 15:13:22:490 [http80-Processor23] [TRACE ] data format = rdfxml
2004-02-17 15:13:22:490 [http80-Processor23] [TRACE ] format = html
2004-02-17 15:13:22:490 [http80-Processor23] [TRACE ] verifyData = on
2004-02-17 15:13:22:496 [http80-Processor23] [TRACE ] Loading data
2004-02-17 15:13:22:509 [http80-Processor23] [TRACE ] Checking data for errors
2004-02-17 15:13:22:531 [http80-Processor23] [ERROR ] Unknown error on adding R
DF data to repository wbkr01: null
java.lang.NullPointerException
at org.openrdf.util.uri.URI.resolve(URI.java:343)
at org.openrdf.util.uri.URI.resolve(URI.java:288)
at org.openrdf.rio.rdfxml.RdfXmlParser._buildURIFromReference(RdfXmlPars
er.java:868)
at org.openrdf.rio.rdfxml.RdfXmlParser._getNodeResource(RdfXmlParser.jav
a:575)
at org.openrdf.rio.rdfxml.RdfXmlParser._processNodeElt(RdfXmlParser.java
:473)
at org.openrdf.rio.rdfxml.RdfXmlParser.startElement(RdfXmlParser.java:37
9)
at org.openrdf.rio.rdfxml.SAXFilter._reportDeferredStartElement(SAXFilte
r.java:347)
at org.openrdf.rio.rdfxml.SAXFilter.characters(SAXFilter.java:448)
at org.apache.xerces.parsers.AbstractSAXParser.characters(Unknown Source)


Having checked in the code, it seems that for some reason the SAXFilter specifies a base URI that has no path, which causes the nullpointer in Uri on line 343. Weird...

Not having caused the exception myself, I can't reproduce the behaviour, because I don't know what the specific user input was (this is on the Sesame server we use for the WBKR practical assignment). I'm trying to get that from the student who had this problem. Just figured I'd document this here for now.
----------------------------------------
Researcher at AFSG - Wageningen UR
Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread]