javax.xml.transform.TransformerException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web206

  • via xml-xalan-dev by Robert Quan, 9 months ago
    javax.xml.transform.TransformerException: java.lang.NullPointerException
  • via Oracle Community by 843834, 1 year ago
    javax.xml.transform.TransformerException: java.lang.NullPointerException
  • via Oracle Community by 843834, 1 year ago
    javax.xml.transform.TransformerException: java.lang.NullPointerException
  • Stack trace

    • javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: java.lang.NullPointerException at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:642) at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:303) at test.xslt.XsltTest.run(XsltTest.java:27) at test.xslt.XsltTest.main(XsltTest.java:20) Caused by: javax.xml.transform.TransformerException: java.lang.NullPointerException at org.apache.xalan.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:486) at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:632) ... 3 more Caused by: 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.xalan.xsltc.dom.SAXImpl.startElement(SAXImpl.java:919) 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.xerces.parsers.AbstractSAXParser.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) ... 4 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.