On 08/02/13 20:04, Сергей Мещерин wrote:
Good day,It seems that apache-jena-2.7.4 and jena-sdb-1.3.5 are incompatible. I got this error: Exception in thread "main" java.lang.NoSuchMethodError: com.hp.hpl.jena.sparql.algebra.optimize.TransformFilterEquality: method <init>(Z)V not found in this simple code: Store store = StoreFactory.create("mysql_store.ttl"); if (!StoreUtils.isFormatted(store)) { store.getTableFormatter().create(); System.out.println("Now store is formatted!"); } Model tmp = SDBFactory.connectDefaultModel(store); StmtIterator sIter = tmp.listStatements(); I've downloaded the sources of jena and jena-sdb and noticed this at QueryEngineSDB:107 op = Transformer.transform(new TransformFilterEquality(false), op) ; but in apache-jena-2.7.4 TransformFilterEquality has only TransformFilterEquality() constructor.
Yes - the POM for SDB 1.3.5 says Jena 2.7.3 and ARQ 2.9.3 ... and it means it :-) Things move is step.
You can use the development version of SDb 1.3.6-SNAPSHOT, which depends on Jena 2.10.0 (the next version)
1.3.6-SNAPSHOT depending on 2.10.0-SNAPSHOT https://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-sdb/ which gets built against the rest of the Jena code base every night. Or the source code from trunk. Andy
