javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: java.lang.NullPointerException

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via xml-xalan-dev by Robert Quan, 1 year ago
javax.xml.transform.TransformerException: java.lang.NullPointerException
via Oracle Community by 843834, 1 year ago
java.lang.NullPointerException
via programmersheaven.com by Unknown author, 1 year ago
javax.xml.transform.TransformerException: org.apache.xml.utils.WrappedRuntimeException: Content is not allowed in prolog.
java.lang.NullPointerException:
at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2.getNodeNameX(Unknown Source)
at org.apache.xml.dtm.ref.DTMDefaultBase.declareNamespaceInContext(Unknown Source)
at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2.addNode(Unknown Source)
at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(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.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:389)
at org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:230)
at org.apache.xalan.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:464)
at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:632)
at test.xslt.XsltTest.run(XsltTest.java:27)
at test.xslt.XsltTest.main(XsltTest.java:20)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.