You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Izaskun (JIRA)" <ji...@apache.org> on 2013/10/24 15:31:02 UTC

[jira] [Created] (JENA-566) Strange behaviour of Jena in OSGi Blueprint

Izaskun created JENA-566:
----------------------------

             Summary: Strange behaviour of Jena in OSGi Blueprint
                 Key: JENA-566
                 URL: https://issues.apache.org/jira/browse/JENA-566
             Project: Apache Jena
          Issue Type: Bug
          Components: ARQ
         Environment: OSGi blueprint  ARQ 2.11.1-SNAPSHOT
            Reporter: Izaskun
            Priority: Blocker
             Fix For: Jena 2.11.1


Everytime I do a:
*model.read(input, null);*
I get:
{quote}ClassNotFoundException: org.apache.jena.riot.adapters.JenaReadersWriters$RDFReaderRIOT_RDFXML{quote}

I'm working in an OSGi blueprint environment. When I test this in a normal environment, everything works ok.

My source code is:
{quote}        final String modelText = "\n"
        + "<rdf:RDF \n"
        + "    xmlns:res=\"http://www.w3.org/2005/sparql-results#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"> \n"
        + "  <rdf:Description rdf:about=\"http://www.w3.org/2005/sparql-results#ResultSet\">\n"
        + "    <res:solution rdf:nodeID=\"r0\"/>\n"
        + "    <res:solution rdf:nodeID=\"r1\"/>\n"
        + "    <res:solution rdf:nodeID=\"r2\"/>\n"
        + "  </rdf:Description>\n" + "</rdf:RDF>";
final Model model = ModelFactory.createDefaultModel();
model.read(new ByteArrayInputStream(modelText.getBytes()), null);
model.close();{quote}



--
This message was sent by Atlassian JIRA
(v6.1#6144)