You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Jos (JIRA)" <ji...@apache.org> on 2012/11/24 22:50:58 UTC

[jira] [Created] (JENA-355) eyeball throws exception on simple file

Jos created JENA-355:
------------------------

             Summary: eyeball throws exception on simple file
                 Key: JENA-355
                 URL: https://issues.apache.org/jira/browse/JENA-355
             Project: Apache Jena
          Issue Type: Bug
          Components: Eyeball
    Affects Versions: Jena 2.10.0
            Reporter: Jos


Running

java -cp lib/slf4j-api-1.7.2.jar:lib/eyeball.jar:lib/jena-core-2.7.4.jar:lib/xerces-j2.jar:lib/batik-ext.jar:lib/jena-iri-0.9.4.jar jena.eyeball -check a.xml

with contents of a.xml: "<a/>" gives this exception:

Caused by: java.lang.NullPointerException
        at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.endElement(XMLHandler.java:135)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(Unknown Source)
        at org.apache.xerces.impl.XMLNamespaceBinder.endElement(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.parse(RDFXMLParser.java:155)
        at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:173)
        at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:160)
        at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:232)
        at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:99)
        at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:241)
        at com.hp.hpl.jena.util.FileManager.readModelWorker(FileManager.java:375)
        at com.hp.hpl.jena.util.FileManager.loadModelWorker(FileManager.java:306)
        at com.hp.hpl.jena.util.FileManager.loadModel(FileManager.java:258)
        at com.hp.hpl.jena.eyeball.inspectors.VocabularyInspector.<init>(VocabularyInspector.java:50)
        at com.hp.hpl.jena.eyeball.inspectors.VocabularyInspector.<init>(VocabularyInspector.java:37)
        ... 42 more


--
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

[jira] [Commented] (JENA-355) eyeball throws exception on simple file

Posted by "christopher james dollin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503741#comment-13503741 ] 

christopher james dollin commented on JENA-355:
-----------------------------------------------

Hmm, interesting -- that looks like a bug in ARP, rather than an Eyeball issue. (fx:tinkering)

With a copy of the stand-alone Eyeball jar that I built on Friday (the repo being updated this morning),
I did

java -jar eyeball.jar -check a.xml

with the same content for a.xml and got the more interesting

On statement:  _:b1001 rdf:type a
    class not declared in any schema: a

On statement:  _:b1001 rdf:type a
    eye:badURI: "a"
    for reason: URI has no scheme

There are the jars it is using (as extracted by Maven to make a classpath)

lib/commons-codec-1.5.jar
lib/hamcrest-core-1.3.jar
lib/httpclient-4.1.2.jar
lib/httpcore-4.1.3.jar
lib/jcl-over-slf4j-1.6.4.jar
lib/jena-arq-2.9.4.jar
lib/jena-core-2.7.4.jar
lib/jena-core-2.7.4-tests.jar
lib/jena-iri-0.9.4.jar
lib/junit-4.11-beta-1.jar
lib/log4j-1.2.17.jar
lib/slf4j-api-1.7.2.jar
lib/slf4j-log4j12-1.7.2.jar
lib/xercesImpl-2.10.0.jar
lib/xml-apis-1.4.01.jar


                
> eyeball throws exception on simple file
> ---------------------------------------
>
>                 Key: JENA-355
>                 URL: https://issues.apache.org/jira/browse/JENA-355
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Eyeball
>    Affects Versions: Jena 2.10.0
>            Reporter: Jos
>
> Running
> java -cp lib/slf4j-api-1.7.2.jar:lib/eyeball.jar:lib/jena-core-2.7.4.jar:lib/xerces-j2.jar:lib/batik-ext.jar:lib/jena-iri-0.9.4.jar jena.eyeball -check a.xml
> with contents of a.xml: "<a/>" gives this exception:
> Caused by: java.lang.NullPointerException
>         at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.endElement(XMLHandler.java:135)
>         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
>         at org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(Unknown Source)
>         at org.apache.xerces.impl.XMLNamespaceBinder.endElement(Unknown Source)
>         at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)
>         at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
>         at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
>         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
>         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>         at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.parse(RDFXMLParser.java:155)
>         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:173)
>         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:160)
>         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:232)
>         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:99)
>         at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:241)
>         at com.hp.hpl.jena.util.FileManager.readModelWorker(FileManager.java:375)
>         at com.hp.hpl.jena.util.FileManager.loadModelWorker(FileManager.java:306)
>         at com.hp.hpl.jena.util.FileManager.loadModel(FileManager.java:258)
>         at com.hp.hpl.jena.eyeball.inspectors.VocabularyInspector.<init>(VocabularyInspector.java:50)
>         at com.hp.hpl.jena.eyeball.inspectors.VocabularyInspector.<init>(VocabularyInspector.java:37)
>         ... 42 more

--
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

[jira] [Commented] (JENA-355) eyeball throws exception on simple file

Posted by "Jos (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503742#comment-13503742 ] 

Jos commented on JENA-355:
--------------------------

Using maven to build the package and subsequencly executing that does work indeed:
$ mvn package
$ echo '<a/>' > a.xml
$ java -jar ./target/eyeball-2.4.0-SNAPSHOT-exec.jar -check a.xml
On statement:  _:b1001 rdf:type a
    eye:badURI: "a"
    for reason: URI has no scheme

On statement:  _:b1001 rdf:type a
    class not declared in any schema: a

                
> eyeball throws exception on simple file
> ---------------------------------------
>
>                 Key: JENA-355
>                 URL: https://issues.apache.org/jira/browse/JENA-355
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Eyeball
>    Affects Versions: Jena 2.10.0
>            Reporter: Jos
>
> Running
> java -cp lib/slf4j-api-1.7.2.jar:lib/eyeball.jar:lib/jena-core-2.7.4.jar:lib/xerces-j2.jar:lib/batik-ext.jar:lib/jena-iri-0.9.4.jar jena.eyeball -check a.xml
> with contents of a.xml: "<a/>" gives this exception:
> Caused by: java.lang.NullPointerException
>         at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.endElement(XMLHandler.java:135)
>         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
>         at org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(Unknown Source)
>         at org.apache.xerces.impl.XMLNamespaceBinder.endElement(Unknown Source)
>         at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)
>         at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
>         at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
>         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
>         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>         at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.parse(RDFXMLParser.java:155)
>         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:173)
>         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:160)
>         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:232)
>         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:99)
>         at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:241)
>         at com.hp.hpl.jena.util.FileManager.readModelWorker(FileManager.java:375)
>         at com.hp.hpl.jena.util.FileManager.loadModelWorker(FileManager.java:306)
>         at com.hp.hpl.jena.util.FileManager.loadModel(FileManager.java:258)
>         at com.hp.hpl.jena.eyeball.inspectors.VocabularyInspector.<init>(VocabularyInspector.java:50)
>         at com.hp.hpl.jena.eyeball.inspectors.VocabularyInspector.<init>(VocabularyInspector.java:37)
>         ... 42 more

--
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