You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Ka...@salvationarmy.org on 2003/01/28 15:04:28 UTC

re: NullPointerException at org.apache.crimson.parser.Parser2.parseInternal

Thomas,

Thanks for sticking with this!

TD>  Ahh, so it's a lower level NPE.  Try changing the println of 'e' to 'e.printStackTrace()' so we can see where the
error is really coming from.

I've added that line and the result is:

SAXDocumentFactory just before parse

SAXDocumentFactory caught exception e:

java.lang.NullPointerException

      at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524)

      at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)

      at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)

      at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:350)

      at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:277)

      at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:158)

      at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:231)

      at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:118)

      at SaveAsJPEG.createJPEG(SaveAsJPEG.java:46)

      at JavaAgent.NotesMain(JavaAgent.java:32)

      at lotus.domino.AgentBase.runNotes(Unknown Source)

      at lotus.domino.NotesThread.run(NotesThread.java:208)

java.lang.NullPointerException

SAXDocumentFactory line after exception object e is printed:

java.io.IOException: java.lang.NullPointerException

      at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:361)

      at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:277)

      at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:158)

      at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:231)

      at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:118)

      at SaveAsJPEG.createJPEG(SaveAsJPEG.java:46)

      at JavaAgent.NotesMain(JavaAgent.java:32)

      at lotus.domino.AgentBase.runNotes(Unknown Source)

      at lotus.domino.NotesThread.run(NotesThread.java:208)

org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
java.lang.NullPointerException

      at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:126)

      at SaveAsJPEG.createJPEG(SaveAsJPEG.java:46)

      at JavaAgent.NotesMain(JavaAgent.java:32)

      at lotus.domino.AgentBase.runNotes(Unknown Source)

      at lotus.domino.NotesThread.run(NotesThread.java:208)

Thanks,

Karl


This email and any files transmitted with it are confidential and intended solely for the use of individuals or entity to whom they are addressed.

If you have received this email in error, please notify The Salvation Army International Headquarters Helpdesk on +44 (0) 20 7398 5466 or the originator of the message.

Any views expressed in this message are those of the individual sender, except where the sender specifies and with the authority, states them to be the views of The Salvation Army International Trustee Company.

[v3.5.1]

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org