Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-2280

Jena 2 and 3 clash when deployed in the same Karaf container

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: fcrepo-camel-4.4.4
    • Fix Version/s: None
    • Component/s: f4-camel
    • Labels:
      None
    • Environment:
      Karaf
    • Sprint:
      Sprint 2016 - 17

      Description

      fcrepo-camel depends on Jena 2.13. When Jena 3.x is present elsewhere in a Karaf container, SparqlUpdateProcessor will fail with stack traces that conflate the two jena versions. Note the transition between com.hpl.jena and org.apache.jena the stack trace. It looks like Jena might use system properties to maintain a mapping between languages and parsers, which are overwritten or otherwise clash between the two versions (??)

      Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.jena.riot.system.RiotLib
              at org.apache.jena.riot.RiotReader.createParserNTriples(RiotReader.java:416)
              at org.apache.jena.riot.RiotReader.createParser(RiotReader.java:175)
              at org.apache.jena.riot.RiotReader.createParser(RiotReader.java:141)
              at org.apache.jena.riot.RDFParserRegistry$ReaderRIOTLang.read(RDFParserRegistry.java:180)
              at org.apache.jena.riot.RDFDataMgr.process(RDFDataMgr.java:906)
              at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:257)
              at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:243)
              at org.apache.jena.riot.adapters.RDFReaderRIOT.read(RDFReaderRIOT.java:70)
              at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:277)
              at org.fcrepo.camel.processor.SparqlUpdateProcessor.process(SparqlUpdateProcessor.java:54)[147:org.fcrepo.camel.fcrepo-camel:4.4.4]
              at org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                acoburn Aaron Coburn
                Reporter:
                birkland Aaron Birkland
                Reviewer:
                Nick Ruest
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: