On 23/08/16 15:08, Abduladem Eljamel wrote:
Hi ALL
I have migrated from Jena 2.11 to Jena 3.1.0 Lately. After modifying my code
to fit JENA 3.1.0 I have gotten this error exception:
java.lang.NoSuchMethodError:
org.apache.jena.atlas.lib.Cache.getIfPresent(Ljava/lang/Object;)Ljava/lang/Object;
After searching the jena-users mailing list, I found that it had to do with
different versions of Jean being found in the classpath or one of jena
libraries in my code calling an old class it didn't have the method. I tried
with my best knowledge (which is not enough) to find a solution, but I have
failed. the only thing I could find is that the method wich are responsible for
this error in my could is:
OntModel ontModel = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM,
null);
Could any one help me please.
Thanks in Advance
Abdul
What you found searching the list is correct.
In Jena 3.1.0, the Cache class is in the jena-base jar.
Andy