[
https://issues.apache.org/jira/browse/STANBOL-1408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14220802#comment-14220802
]
Rafa Haro commented on STANBOL-1408:
------------------------------------
To avoid inherited version of Jena TDB from stanbol parent, one possibility is
to directly include the dependency again in the genericrdf project pom.xml for
overriding the parent version. The rest of jena dependencies (all the same
included in the source/jenatdb module) would have to be included
> EntityHub Generic RDF Indexer not working because of jena-tdb dependency
> problem
> --------------------------------------------------------------------------------
>
> Key: STANBOL-1408
> URL: https://issues.apache.org/jira/browse/STANBOL-1408
> Project: Stanbol
> Issue Type: Bug
> Components: Entityhub
> Affects Versions: 1.0.0
> Reporter: Rafa Haro
> Assignee: Rafa Haro
> Priority: Critical
> Labels: dependencies
> Fix For: 1.0.0
>
>
> After building the generic rdf indexer, when you run the shaded jar for
> indexing a dataset, the following exception is raised:
> Exception in thread "Thread-1" java.lang.NoSuchMethodError:
> com.hp.hpl.jena.tdb.solver.stats.Stats.write(Ljava/lang/String;Lcom/hp/hpl/jena/tdb/solver/stats/StatsCollector;)V
> at
> org.apache.stanbol.entityhub.indexing.source.jenatdb.DestinationTripleGraph.finishBulk(DestinationTripleGraph.java:132)
> at
> org.apache.stanbol.entityhub.indexing.source.jenatdb.RdfResourceImporter.importResource(RdfResourceImporter.java:73)
> at
> org.apache.stanbol.entityhub.indexing.core.source.ResourceLoader.loadResource(ResourceLoader.java:217)
> at
> org.apache.stanbol.entityhub.indexing.core.source.ResourceLoader.loadResources(ResourceLoader.java:153)
> at
> org.apache.stanbol.entityhub.indexing.source.jenatdb.RdfIndexingSource.initialise(RdfIndexingSource.java:340)
> at
> org.apache.stanbol.entityhub.indexing.core.impl.IndexingSourceInitialiser.run(IndexingSourceInitialiser.java:43)
> at java.lang.Thread.run(Thread.java:745)
> The exception is produced because of a bad jena-tdb dependency inherited from
> the parent 6-SNAPSHOT. Specifically, jena-tdb version 1.0.1 is being included
> in the shaded jar when 0.10.0 is needed
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)