javax.xml.transform.TransformerException: XML-22900: (Fatal Error) An internal error condition occurred.

Apache's JIRA Issue Tracker | daniel.gagnon | 5 years ago
  1. 0

    Bug 51617 – No embedded examples is working with FOP.jar 1.0 and JDeveloper 10g

    apache.org | 5 months ago
    javax.xml.transform.TransformerException: XML-22900: (Fatal Error) An internal error condition occurred.
  2. 0

    Hello, I was trying to understand how FOP is working and I downloaded the latest stable version and created a new project in JDeveloper 10g. I'm using the binary release 1.0 . I could do run succesfully the examples using the command line. But when I'm trying to call it from any application, I always stumble on the same error which is the following (It's almost the same with all the example I tried) : XML-22900: (Fatal Error) An internal error condition occurred. javax.xml.transform.TransformerException: XML-22900: (Fatal Error) An internal error condition occurred. at oracle.xml.jaxp.JXTransformer.reportException(JXTransformer.java:775) at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:374) at mypackage3.ExampleXML2PDF.main(ExampleXML2PDF.java:80) Caused by: java.lang.NullPointerException at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171) at oracle.xml.parser.v2.XSLEventHandler.reportStartElement(XSLEventHandler.java:230) at oracle.xml.parser.v2.XSLEventHandler.startElement(XSLEventHandler.java:296) at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:142) at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417) at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180) at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417) at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191) at oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:210) at oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:123) at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417) at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191) at oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:509) at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:265) at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:358) ... 1 more --------- java.lang.NullPointerException at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171) at oracle.xml.parser.v2.XSLEventHandler.reportStartElement(XSLEventHandler.java:230) at oracle.xml.parser.v2.XSLEventHandler.startElement(XSLEventHandler.java:296) at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:142) at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417) at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180) at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417) at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191) at oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:210) at oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:123) at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417) at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191) at oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:509) at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:265) at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:358) at mypackage3.ExampleXML2PDF.main(ExampleXML2PDF.java:80) Debugger disconnected from local process. Process exited. After analysing the error, I found that the attribute "delegate" is always null after running : transformer.transform(src, res); Since those are your examples, they should work and have no errors. Just for fun I did edited the FOTreeBuilder class in the FOP.jar, adding if (delegate == null) {this.startDocument()} So it began to work without errors, thought it's not correct since the PDF file is unreadable. I've tried the following examples : ExampleFO2.java ExampleXML2PDF.java and the example in the user guide. The only difference between your files and mine is that I created my own package in JDev, but I did copy/paste all the rest of your code. I'll continue to search a way to correct the error.

    Apache's JIRA Issue Tracker | 5 years ago | daniel.gagnon
    javax.xml.transform.TransformerException: XML-22900: (Fatal Error) An internal error condition occurred.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    NullPointerException when trying to render FO file

    Apache Bugzilla | 1 decade ago | mikael.staldal
    java.lang.NullPointerException
  5. 0

    Use of border-separation in fo:table causes NullPointerException

    Apache Bugzilla | 1 decade ago | jeff
    java.lang.NullPointerException

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.apache.fop.fo.FOTreeBuilder.startElement()
    2. Apache FOP
      FOTreeBuilder.startElement
      1. org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171)
      1 frame
    3. oracle.xml.parser
      XSLProcessor.processXSL
      1. oracle.xml.parser.v2.XSLEventHandler.reportStartElement(XSLEventHandler.java:230)
      2. oracle.xml.parser.v2.XSLEventHandler.startElement(XSLEventHandler.java:296)
      3. oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:142)
      4. oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
      5. oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
      6. oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
      7. oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
      8. oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:210)
      9. oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:123)
      10. oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
      11. oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
      12. oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:509)
      13. oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:265)
      13 frames
    4. oracle.xml.jaxp
      JXTransformer.transform
      1. oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:358)
      1 frame
    5. mypackage3
      ExampleXML2PDF.main
      1. mypackage3.ExampleXML2PDF.main(ExampleXML2PDF.java:80)
      1 frame