You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Marvin Luchs (JIRA)" <ji...@apache.org> on 2013/06/23 18:36:20 UTC

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

    [ https://issues.apache.org/jira/browse/STANBOL-1073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13691513#comment-13691513 ] 

Marvin Luchs commented on STANBOL-1073:
---------------------------------------

When running the full-war file this work-around causes NPEs as the parser property used in line 178 (parser.parse(in, "text/turtle");) is NULL for some reason
                
> 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