On 12/05/11 21:40, Thomas Wrobel wrote:
I'm using Jena with Google App Engine, and it was working fine for the
last week or so but am now getting this error;
javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.util.ArrayList
com.darkflame.appenginetester.client.SemanticQueryService.queryForNodes(java.lang.String,java.lang.String,java.lang.String,boolean)
throws java.lang.IllegalArgumentException' threw an unexpected
exception: com.hp.hpl.jena.shared.JenaException:
org.openjena.riot.RiotException:
[line: 15, col: 18] Not a valid token for an RDF term
I'm not sure if its something I did, or something going wrong with
google or jena.
It would be helpful if I knew what this error means.
The line that throws the error is;
currentModel.read( SOURCE, "N3" );
Where the SOURCE is;
http://darkflame.co.uk/owl/drwhoswho.n3
I don't think its my n3 file however...as renaming the file results in
the same error (when it shouldn't even be able to find it)
Any ideas or pointers?
The file has illegal characters in it.
>> utf8 drwhoswho.n3
[line=2144, col=35] Illegal UTF-8 processing character: 0x006D
Recent versions of ARQ ship with the little program to check UTF-8
files: <ARQ>/bin/utf8 is the shell script front end.
The file is served as ISO-8859-1 and has:
"The Dæmons"
(this email message is ISO-8859-1)
but N3 and Turtle are defined for UTF-8 only so RIOT is reading the file
as UTF-8 and this is an illegal byte sequence.
If its the same error, and a line number > 0 then its finding something.
Maybe cached?
Andy
-Thomas
~~~~~~
Reviews of anything, by anyone;
www.rateoholic.co.uk
Please try out my new site and give feedback :)