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/25 00:04:01 UTC
[jira] [Updated] (JENA-566) Strange behaviour of Jena in OSGi
Blueprint
[ https://issues.apache.org/jira/browse/JENA-566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Izaskun updated JENA-566:
-------------------------
Priority: Major (was: Blocker)
Description:
Everytime I do a:
*model.read(input, null);*
I get:
{quote}com.hp.hpl.jena.shared.ConfigException: Reader not found on classpath
at com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.getReader(RDFReaderFImpl.java:108)
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}
was:
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}
> 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
> Labels: jena, osgi, riot, sdb
> Fix For: Jena 2.11.1
>
> Original Estimate: 5h
> Remaining Estimate: 5h
>
> Everytime I do a:
> *model.read(input, null);*
> I get:
> {quote}com.hp.hpl.jena.shared.ConfigException: Reader not found on classpath
> at com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.getReader(RDFReaderFImpl.java:108)
> 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)