I can see that this.getPrefixFor( value ) returns null, where value is
"http://www.w3.org/2001/XMLSchema#";.
https://github.com/apache/jena/blob/main/jena-core/src/main/java/org/apache/jena/rdfxml/xmloutput/impl/BaseXMLWriter.java#L229

No idea why though.

On Wed, Jul 13, 2022 at 5:03 PM Martynas Jusevičius
<marty...@atomgraph.com> wrote:
>
> Hi,
>
> Never seen this exception before and not sure yet what causes it:
>
> java.lang.NullPointerException: Cannot invoke "String.equals(Object)"
> because "prefix" is null
> org.apache.jena.rdfxml.xmloutput.impl.BaseXMLWriter.checkLegalPrefix(BaseXMLWriter.java:845)
> org.apache.jena.rdfxml.xmloutput.impl.BaseXMLWriter.setNsPrefix(BaseXMLWriter.java:324)
> org.apache.jena.rdfxml.xmloutput.impl.BaseXMLWriter.primeNamespace(BaseXMLWriter.java:232)
> org.apache.jena.rdfxml.xmloutput.impl.BaseXMLWriter.setupNamespaces(BaseXMLWriter.java:482)
> org.apache.jena.rdfxml.xmloutput.impl.BaseXMLWriter.write(BaseXMLWriter.java:466)
> org.apache.jena.rdfxml.xmloutput.impl.BaseXMLWriter.write(BaseXMLWriter.java:456)
> com.atomgraph.linkeddatahub.server.io.ValidatingModelProvider.write(ValidatingModelProvider.java:129)
>
> Any hints?

Reply via email to