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

Rupert Westenthaler commented on STANBOL-1073:
----------------------------------------------

Those NPE had not any side-effects.  They where the result of initJersey() to 
be called before activation. In such cases this method was anyway expected to 
do nothing.

In the meantime I changed the work-around to be applied after the check for 
activation. This prevents those NPE

> 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 was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to