Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-858

PELLET: com.hp.hpl.jena.reasoner.BaseInfGraph.isPrepared - Change back to Protected

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: Jena 2.10.1, Jena 2.11.0, Jena 2.11.2, Jena 2.12.0, Jena 2.12.1
    • Fix Version/s: None
    • Component/s: Jena, Reasoners
    • Labels:
      None
    • Environment:

      Jena with Pellet - version 2.10.1 +

      Description

      See https://groups.google.com/d/msg/pellet-users/HsDLaLoJ65s/erhXpwQgkbIJ

      In Jena version 2.10.1 field com.hp.hpl.jena.reasoner.BaseInfGraph.isPrepared was made "private".
      This creates a runtime issue when Pellet is used.
      Pellet code makes a number of direct references to the field, which raises an IllegalAccess exception.
      It is possible to continue using older Jena versions, however it would be good to use newer and better versions of Jena where possible.

      If possible, can the field be changed back to protected?
      Ideally, this should be fixed in Pellet, but this is unlikely.

      Exception in thread "main" java.lang.IllegalAccessError: tried to access field com.hp.hpl.jena.reasoner.BaseInfGraph.isPrepared from class org.mindswap.pellet.jena.PelletInfGraph
      at org.mindswap.pellet.jena.PelletInfGraph.performAdd(PelletInfGraph.java:534)
      at com.hp.hpl.jena.graph.impl.GraphBase.add(GraphBase.java:202)
      at org.apache.jena.riot.system.StreamRDFLib$ParserOutputGraph.triple(StreamRDFLib.java:150)
      at org.apache.jena.riot.lang.LangRDFXML$HandlerSink.statement(LangRDFXML.java:170)
      at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.triple(XMLHandler.java:82)
      at com.hp.hpl.jena.rdf.arp.impl.ParserSupport.triple(ParserSupport.java:225)
      at com.hp.hpl.jena.rdf.arp.states.WantDescription.startElement(WantDescription.java:99)
      at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.startElement(XMLHandler.java:121)
      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
      at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(Unknown Source)
      at org.apache.xerces.impl.XMLNamespaceBinder.startElement(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.parse(RDFXMLParser.java:151)
      at com.hp.hpl.jena.rdf.arp.ARP.load(ARP.java:119)
      at org.apache.jena.riot.lang.LangRDFXML.parse(LangRDFXML.java:142)
      at org.apache.jena.riot.RDFParserRegistry$ReaderRIOTFactoryImpl$1.read(RDFParserRegistry.java:142)
      at org.apache.jena.riot.RDFDataMgr.process(RDFDataMgr.java:760)
      at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:258)
      at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:244)
      at org.apache.jena.riot.adapters.RDFReaderRIOT.read(RDFReaderRIOT.java:69)
      at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:274)
      at com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.java:2248)

      PS: Thanks for your great work!

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              johnkeeney John Keeney
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified