[Pellet-users] NoSuchFieldError: individualAsThingP

Evren Sirin evren at clarkparsia.com
Tue Mar 6 20:00:34 UTC 2007


On 3/5/07 5:01 PM, Jeffrey Schmitz wrote:
> Hello,
>    When running the following code:
>
> maker = ModelFactory.createFileModelMaker( "." );
> OntModelSpec ontSpec = new OntModelSpec(OntModelSpec. OWL_DL_MEM );
> Reasoner memReasoner = PelletReasonerFactory.theInstance().create();
> ontSpec.setReasoner(memReasoner);
>
> I'm getting the following error on the ontSpec.setReasoner line.
>
> java.lang.NoSuchFieldError: individualAsThingP
> org.mindswap.pellet.jena.PelletReasonerFactory.getCapabilities(PelletReasonerFactory.java:79)
> com.hp.hpl.jena.reasoner.ReasonerRegistry.register(ReasonerRegistry.java:79)
> org.mindswap.pellet.jena.PelletReasonerFactory.<clinit>(PelletReasonerFactory.java:55)
>
> I have no clue where to even start to look for what's wrong.  The only 
> thing I do before this is make some calls to the 
> OntDocumentManager.getInstance(). addAltEntry.   Any ideas?
This certainly suggests an incompatibility with the Jena that you are 
using. However, the error seems to be about the field individualAsThingP 
in com.hp.hpl.jena.vocabulary.ReasonerVocabulary class which (AFAIT) is 
unchanged since at least Jena 2.3. So you might have an earlier Jena in 
your classpath or some other classpath problem.

Cheers,
Evren
>
> Thanks,
> Jeff
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Pellet-users mailing list
> Pellet-users at lists.owldl.com
> http://lists.owldl.com/mailman/listinfo/pellet-users
> _______________________________________________
>
> Sponsored by Clark & Parsia, LLC http://clarkparsia.com/



More information about the Pellet-users mailing list