Andy,

Thank you. The problem was inconsistent jar files. As you may suspect I have many other jars for the full program and thought I was careful - but was not. Should have followed the principal of Occam's Razor , but was looking everywhere else for a solution.

Again thanks
Don

On 7/31/2014 10:00 AM, Andy Seaborne wrote:
Which version are you upgrading from?


> The stack trace, attached, seems to indicate a bad character

I don't understand that - the stacktrace is:

> Exception in thread "main" java.lang.NoSuchFieldError: actualValueType
>    at
> com.hp.hpl.jena.datatypes.xsd.XSDDatatype.convertValidatedDataValue(XSDDatatype.java:396)

==>

You have a bad set of jars on your runtime classpath, maybe some old, some new, maybe something missing.

Use all the jars in a single distribution or use maven to manage dependencies or you (it is worth the setup effort of doing this - you can swap versions with a simple POM change).

    Andy

PS Your test case uses local file paths - don't work on my machine!

On 31/07/14 14:51, Don Flinn wrote:
Hi,

I have a large project that uses Jena extensively, and which was
developed under the very early Jena code base.  I'm trying to move to
the latest Jena code 2.11.2.  Creating a default Model and creating a
query execution now fail.  I've written and attached a small test case
to help solve my problem, but I'm still stuck.  In addition to the test
program I've all attached a small rdf xml and ttl data files and a
sparql query.  There is also a the stack trace from one of the
failures.  I'm running this code in NetBeans varying all the commented
out inputs for testing.  They all show the same phenomena.

The stack trace, attached, seems to indicate a bad character so the test
program, with the handleCharacters function, also checks that the
characters are valid.  When I move down to Jena 10.0, the create default
Model and Model read work ok, but the SPARQL create query execution
still faisl.  I've also run my rdf files and SPARQL queries through the
respective validators.

The product is large - having 10s of thousands of rdf files each of the
order of 1MB.  There many built SPARQL queries and the ability for the
customer/user to write their own SPARQL query.

The system runs on Microsoft Windows 7 and on Microsoft Windows Server.

Any help or suggestions would be greatly appreciated.  If more or
different data or clarification is needed, I will happily supply it.

Don




--
e-mail: [email protected]
phone cell: 781-856-7230

Reply via email to