You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org> on 2013/05/17 09:01:19 UTC

[jira] [Updated] (STANBOL-1073) exception parsing turtle, nt and n3

     [ https://issues.apache.org/jira/browse/STANBOL-1073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Reto Bachmann-Gmür updated STANBOL-1073:
----------------------------------------

    Description: 
Parsing these formats fail with the following exception:

java.lang.NoClassDefFoundError: Could not initialize class org.openjena.riot.system.IRIResolver
	at org.openjena.riot.system.JenaReaderRIOT.readImpl(JenaReaderRIOT.java:121)
	at org.openjena.riot.system.JenaReaderRIOT.read(JenaReaderRIOT.java:79)
	at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:226)
	at org.apache.clerezza.rdf.jena.parser.JenaParserProvider.parse(JenaParserProvider.java:68)

The problem occurs when the first usee of the parser happens from an unprivileged context, e.g. with :

curl -i -X POST -H "Content-Type:text/turtle" -T {contacts.nt} http://localhost:8080/entityhub/entity

Is subsequently also occurs in privileged context, e.g.:

zz>import org.apache.clerezza.rdf.core.serializedform._  
zz>val p = $[Parser]
zz>import java.io._
zz>val in = new ByteArrayInputStream("<http://example.org/me> <http://xmlns.com/foaf/0.1/name> \"Jane Doe\" .".getBytes)
zz>p.parse(in, "text/turtle")

The problem doesn't occur when first access is privileged.


  was:
Parsing these formats fail with the following exception:

java.lang.NoClassDefFoundError: Could not initialize class org.openjena.riot.system.IRIResolver
	at org.openjena.riot.system.JenaReaderRIOT.readImpl(JenaReaderRIOT.java:121)
	at org.openjena.riot.system.JenaReaderRIOT.read(JenaReaderRIOT.java:79)
	at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:226)
	at org.apache.clerezza.rdf.jena.parser.JenaParserProvider.parse(JenaParserProvider.java:68)


To reproduce the problem

zz>import org.apache.clerezza.rdf.core.serializedform._  
zz>val p = $[Parser]
zz>import java.io._
zz>val in = new ByteArrayInputStream("<http://example.org/me> <http://xmlns.com/foaf/0.1/name> \"Jane Doe\" .".getBytes)
zz>p.parse(in, "text/turtle")




    
> exception parsing turtle, nt and n3
> -----------------------------------
>
>                 Key: STANBOL-1073
>                 URL: https://issues.apache.org/jira/browse/STANBOL-1073
>             Project: Stanbol
>          Issue Type: Bug
>            Reporter: Reto Bachmann-Gmür
>
> Parsing these formats fail with the following exception:
> java.lang.NoClassDefFoundError: Could not initialize class org.openjena.riot.system.IRIResolver
> 	at org.openjena.riot.system.JenaReaderRIOT.readImpl(JenaReaderRIOT.java:121)
> 	at org.openjena.riot.system.JenaReaderRIOT.read(JenaReaderRIOT.java:79)
> 	at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:226)
> 	at org.apache.clerezza.rdf.jena.parser.JenaParserProvider.parse(JenaParserProvider.java:68)
> The problem occurs when the first usee of the parser happens from an unprivileged context, e.g. with :
> curl -i -X POST -H "Content-Type:text/turtle" -T {contacts.nt} http://localhost:8080/entityhub/entity
> Is subsequently also occurs in privileged context, e.g.:
> zz>import org.apache.clerezza.rdf.core.serializedform._  
> zz>val p = $[Parser]
> zz>import java.io._
> zz>val in = new ByteArrayInputStream("<http://example.org/me> <http://xmlns.com/foaf/0.1/name> \"Jane Doe\" .".getBytes)
> zz>p.parse(in, "text/turtle")
> The problem doesn't occur when first access is privileged.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira