7 Replies Latest reply: Feb 5, 2010 6:26 AM by Bhavesh J Shah RSS

    oracle.xdo.parser.v2.XMLParseException: Expected 'EOF'

    680883
      Hi

      I am trying to generate Deposit Advice (XML) in PDF format.

      If the Number of Assignments are less than 150.. the out put is generated in PDF format.

      If the number of assignments are more than 150... then the job completed with Warning.

      Below is the content from OPP Service Log file.

      Has anyone faced this issue earlier.

      request 11148025.
      [1/20/09 1:22:47 PM] [6456151:RT11148025] Starting XML Publisher post-processing
      action.
      [1/20/09 1:22:47 PM] [6456151:RT11148025]
      Template code: DEPOSIT_ADV1
      Template app: PAY
      Language: en
      Territory: 00
      Output type: PDF
      [1/20/09 1:22:51 PM] [UNEXPECTED] [6456151:RT11148025] java.lang.reflect.Invocat
      ionTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:517)
      at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:224)
      at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177
      )
      at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:
      1044)
      at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:
      997)
      at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:
      212)
      at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
      at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
      at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(Te
      mplateHelper.java:5888)
      at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(Templ
      ateHelper.java:3438)
      at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(Templ
      ateHelper.java:3527)
      at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProc
      essor.java:247)
      at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157
      )
      Caused by: oracle.xdo.parser.v2.XMLParseException: Expected 'EOF'.
      at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:324)
      at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingP
      arser.java:290)
      at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:266)

      Edited by: user10828392 on Jan 20, 2009 2:57 PM
        • 1. Re: oracle.xdo.parser.v2.XMLParseException: Expected 'EOF'
          robmcangus
          did you recently apply a patch? Do you use Windows?

          We just put in a patch that we got from Oracle to fix some errors we were getting with java class files on a windows server. We started getting those errors this morning.

          Rob
          • 2. Re: oracle.xdo.parser.v2.XMLParseException: Expected 'EOF'
            robmcangus
            did you recently apply a patch? Do you use Windows?

            We just put in a patch that we got from Oracle to fix some errors we were getting with java class files on a windows server. We started getting those errors this morning.

            Rob
            • 3. Re: oracle.xdo.parser.v2.XMLParseException: Expected 'EOF'
              680883
              thanks for the response. We use Unix servers. we applied all th recommended patches. Now the issue is Payroll File Reporter is not generating PDF output..but generating XML output.

              Has anyone faced this issue earlier.. Any help is appreciated...

              Thanks
              Rama
              • 4. Re: oracle.xdo.parser.v2.XMLParseException: Expected 'EOF'
                680883
                Hi Friends,

                After applying few patches, we could generate the Deposit Advice in XML format.

                When we migrate the same to another instance, We are facing the following problem.


                Request restarted at :26-MAR-2009 16:38:52
                [032609_043858688][][STATEMENT] <=============> PDFDocMerger Properties list <=============>PropKey : pdf-security ------ PropValue : true
                [032609_043858690][][STATEMENT] <=============> PDFDocMerger Properties list <=============>PropKey : system-temp-dir ------ PropValue : /tmp
                [032609_043858690][][STATEMENT] <=============> PDFDocMerger Properties list <=============>PropKey : pdf-no-changing-the-document ------ PropValue : true
                [032609_043858691][][STATEMENT] <=============> PDFDocMerger Properties list <=============>PropKey : pdf-encryption-level ------ PropValue : 0
                [032609_043858718][][STATEMENT] /tmp/032609_043858710/0.pdf is created by PDFDocTokenizer.writeNextPDFDoc()
                [032609_043858736][][STATEMENT] PDF template is being read and parsed......
                [032609_043858737][][STATEMENT] PDFParser uses this tempDir ::: /tmp
                [032609_043858782][][STATEMENT] PDFParser.readPDFFile ---> contents size : 5
                [032609_043858782][][STATEMENT] Creating new hashtable of type: oracle.apps.xdo.template.pdf.util.FPHashtable
                [032609_043858794][][STATEMENT] java.lang.StringIndexOutOfBoundsException: String index out of range: 5
                     at java.lang.String.charAt(String.java:793)
                     at oracle.apps.xdo.template.pdf.util.PDFFile.getVersion(PDFFile.java:232)
                     at oracle.apps.xdo.template.pdf.Xref.initialize(Xref.java:89)
                     at oracle.apps.xdo.template.pdf.Xref.<init>(Xref.java:72)
                     at oracle.apps.xdo.template.pdf.PDFParser.initialize(PDFParser.java:261)
                     at oracle.apps.xdo.template.pdf.PDFParser.<init>(PDFParser.java:160)
                     at oracle.apps.xdo.template.pdf.PDFParser.<init>(PDFParser.java:151)
                     at oracle.apps.xdo.common.pdf.util.PDFDocMerger$PDFUtility.<init>(PDFDocMerger.java:1603)
                     at oracle.apps.xdo.common.pdf.util.PDFDocMerger.mergeDocs(PDFDocMerger.java:431)
                     at oracle.apps.xdo.common.pdf.util.PDFDocMerger.process(PDFDocMerger.java:378)
                     at oracle.apps.xdo.common.pdf.util.StreamPDFDocMerger.process(StreamPDFDocMerger.java:120)
                     at oracle.apps.pay.core.documents.DocPDFMerger.process(DocPDFMerger.java:86)

                [032609_043858795][][STATEMENT] This template's PDF version : null
                [032609_043858797][][STATEMENT] oracle.apps.xdo.template.pdf.exception.FatalException: The template seems to be in either corrupted one or newer version than PDF1.4
                     at oracle.apps.xdo.template.pdf.Xref.initialize(Xref.java:294)
                     at oracle.apps.xdo.template.pdf.Xref.<init>(Xref.java:72)
                     at oracle.apps.xdo.template.pdf.PDFParser.initialize(PDFParser.java:261)
                     at oracle.apps.xdo.template.pdf.PDFParser.<init>(PDFParser.java:160)
                     at oracle.apps.xdo.template.pdf.PDFParser.<init>(PDFParser.java:151)
                     at oracle.apps.xdo.common.pdf.util.PDFDocMerger$PDFUtility.<init>(PDFDocMerger.java:1603)
                     at oracle.apps.xdo.common.pdf.util.PDFDocMerger.mergeDocs(PDFDocMerger.java:431)
                     at oracle.apps.xdo.common.pdf.util.PDFDocMerger.process(PDFDocMerger.java:378)
                     at oracle.apps.xdo.common.pdf.util.StreamPDFDocMerger.process(StreamPDFDocMerger.java:120)
                     at oracle.apps.pay.core.documents.DocPDFMerger.process(DocPDFMerger.java:86)

                [032609_043858800][oracle.apps.xdo.batch.FileSearch][STATEMENT] /tmp/032609_043858710/0.pdf is deleted
                [032609_043858801][oracle.apps.xdo.batch.FileSearch][STATEMENT] /tmp/032609_043858710 is deleted
                [032609_043858801][][EXCEPTION] oracle.apps.xdo.XDOException: oracle.apps.xdo.template.pdf.exception.FatalException: The template seems to be in either corrupted one or newer version than PDF1.4
                     at oracle.apps.xdo.common.pdf.util.PDFDocMerger.process(PDFDocMerger.java:382)
                     at oracle.apps.xdo.common.pdf.util.StreamPDFDocMerger.process(StreamPDFDocMerger.java:120)
                     at oracle.apps.pay.core.documents.DocPDFMerger.process(DocPDFMerger.java:86)

                Any help is appreciated.

                Thanks
                Rama
                • 5. Re: oracle.xdo.parser.v2.XMLParseException: Expected 'EOF'
                  740048
                  Hi,

                  I'm also getting the following error:

                  [120909_090640078][][EXCEPTION] oracle.apps.xdo.template.pdf.exception.FatalException: The template seems to be in either corrupted one or newer version than PDF1.4

                  Has anyone figured out how to get around this?

                  Thanks,

                  Matt
                  • 6. Re: oracle.xdo.parser.v2.XMLParseException: Expected 'EOF'
                    575992
                    What PDF's are you merging?

                    There is no workaround for this issue. It occurs when a two PDFs have different versions. I actually think it's when the PDF version is greater that 1.4. It's been awhile since I looked at this error so I could be wrong on the version.
                    • 7. Re: oracle.xdo.parser.v2.XMLParseException: Expected 'EOF'
                      Bhavesh J Shah
                      HI,
                      We are also facing the same issue while merging out custom xml publisher reports using PDFDOcMerger class. DId we have a sollution to this?

                      Appreciate if you could throw any light.

                      Thanks,
                      Bhavesh