PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) General questions / FAQ NullPointerException at at org.zefer.pd4ml.npdf.c.o00000(Unk

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #26996

    PD4ML Support team,

    Thank you for an excellent product.
    I was able to use PD4ML to create PDF from HTML and was able to merge PDF documents created by PD4ML easily.

    On the other hand, I got a Java.lang.NullPointerException error when I tried to merge a general PDF file that was not created by PD4ML.

    Do you have any suggestion or do you have a secure location I can send the PDF in question to you ?

    Thanks !

    Benjamin
    benjamin_lau@yahoo.com

    Here is the log

    Merging : 000001419-000001.pdf
    Merging : 000001412-000001.pdf
    Merging : 000001412-000002.pdf
    Merging : 000001412-000003.pdf
    Merging : 000001413-000002.pdf
    Merging : 000001413-000001.pdf
    Merging : Account-Servicing-Communications-ASC-012412.pdf
    Merging : Address-Changes-011912.pdf
    java.lang.NullPointerException
    at org.zefer.pd4ml.npdf.c.o00000(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.g.super(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.g.super(Unknown Source)
    at org.zefer.pd4ml.npdf.PD4DocumentBase.write(Unknown Source)
    at org.zefer.pd4ml.npdf.PD4DocumentBase.write(Unknown Source)
    at com.tfs.km.kmPrintEngine.KmPrintBinder.MergePdfDocuments(KmPrintBinder.java:201)
    at com.tfs.km.kmPrintEngine.KmPrintBinder.retrieveBinderPages(KmPrintBinder.java:108)
    at com.tfs.km.kmPrintEngine.KmPrintBinder.main(KmPrintBinder.java:38)
    java.lang.NullPointerException
    at org.zefer.pd4ml.npdf.parser.f.super(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.g.super(Unknown Source)
    at org.zefer.pd4ml.PD4Document.o00000(Unknown Source)
    at org.zefer.pd4ml.npdf.PD4DocumentBase.read(Unknown Source)
    at org.zefer.pd4ml.npdf.PD4DocumentBase.Ó00000(Unknown Source)
    at org.zefer.pd4ml.npdf.PD4DocumentBase.append(Unknown Source)
    at com.tfs.km.kmPrintEngine.KmPrintBinder.MergePdfDocuments(KmPrintBinder.java:197)
    at com.tfs.km.kmPrintEngine.KmPrintBinder.retrieveBinderPages(KmPrintBinder.java:108)
    at com.tfs.km.kmPrintEngine.KmPrintBinder.main(KmPrintBinder.java:38)

    #29676

    Please send the relevant file(s) to support pd4ml com, and also please let us know which version of PD4ML you currently use.

    #29675

    OK – will send file to Support….

    Here is the latest stack trace I received – seems to be ClassCastException related.

    Merging : Address Changes 011410.pdf
    Exception in thread “main” java.lang.ClassCastException: org.zefer.pd4ml.npdf.parser.obj.o cannot be cast to org.zefer.pd4ml.npdf.parser.obj.e
    at org.zefer.pd4ml.npdf.parser.d.super(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.d.super(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.d.Ò00000(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.d.super(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.f.super(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.f.super(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.obj.h.o00000(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.obj.k.o00000(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.obj.h.o00000(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.obj.j.o00000(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.obj.k.o00000(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.obj.h.o00000(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.obj.k.o00000(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.g.super(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.g.super(Unknown Source)
    at org.zefer.pd4ml.npdf.parser.g.super(Unknown Source)
    at org.zefer.pd4ml.npdf.PD4DocumentBase.write(Unknown Source)
    at org.zefer.pd4ml.npdf.PD4DocumentBase.write(Unknown Source)
    at KmPrintBinder.MergePdfDoc2(KmPrintBinder.java:39)
    at KmPrintBinder.MergePdfDocuments(KmPrintBinder.java:23)
    at Pd4mlMergeDoc.main(Pd4mlMergeDoc.java:17)

    #29677

    Hello,

    we suffer from the same issue in PD4ML 3.9.5. We try to merge two or more PDF files both/all created with PD4ML. It seems that this issue was introduced in PD4ML 3.9.4 or 3.9.5. With PD4ML 3.9.3 it works. I didn’t try 3.9.4 because in the release notes you mentioned changes in PDF merge logic. So I suppose version 3.9.4 is also corrupted.

    Kind regards,
    Norman Seidel

    This is what PD4ML logs in debug mode:
    2015-05-28 15:53:33,425 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 0 0 conversion begin<br /> 2015-05-28 15:53:33,434 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 9 4 html parsed<br /> 2015-05-28 15:53:33,443 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 18 16 document tree structure built<br /> 2015-05-28 15:53:33,446 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 20 16 layouting...<br /> 2015-05-28 15:53:33,447 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 22 17 layouting...<br /> 2015-05-28 15:53:33,447 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 22 18 layouting...<br /> 2015-05-28 15:53:33,448 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 23 19 layouting...<br /> 2015-05-28 15:53:33,448 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 23 20 layouting...<br /> 2015-05-28 15:53:33,449 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 24 21 layouting...<br /> 2015-05-28 15:53:33,449 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 24 22 layouting...<br /> 2015-05-28 15:53:33,449 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 24 23 layouting...<br /> 2015-05-28 15:53:33,450 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 25 24 layouting...<br /> 2015-05-28 15:53:33,450 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 25 25 layouting...<br /> 2015-05-28 15:53:33,451 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 26 26 layouting...<br /> 2015-05-28 15:53:33,451 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 26 27 layouting...<br /> 2015-05-28 15:53:33,451 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 26 28 layouting...<br /> 2015-05-28 15:53:33,452 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 27 29 layouting...<br /> 2015-05-28 15:53:33,452 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 27 30 layouting...<br /> 2015-05-28 15:53:33,453 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 28 31 layouting...<br /> 2015-05-28 15:53:33,453 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 28 32 layouting...<br /> 2015-05-28 15:53:33,454 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 29 33 layouting...<br /> 2015-05-28 15:53:33,454 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 29 34 layouting...<br /> 2015-05-28 15:53:33,454 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 29 35 layouting...<br /> 2015-05-28 15:53:33,455 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 30 36 layouting...<br /> 2015-05-28 15:53:33,455 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 30 37 layouting...<br /> 2015-05-28 15:53:33,455 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 30 38 layouting...<br /> 2015-05-28 15:53:33,456 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 31 39 layouting...<br /> 2015-05-28 15:53:33,456 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 31 40 layouting...<br /> 2015-05-28 15:53:33,456 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 31 41 layouting...<br /> 2015-05-28 15:53:33,457 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 32 42 layouting...<br /> 2015-05-28 15:53:33,457 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 32 43 layouting...<br /> 2015-05-28 15:53:33,458 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 32 44 layouting...<br /> 2015-05-28 15:53:33,458 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 33 45 layouting...<br /> 2015-05-28 15:53:33,458 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 33 46 layouting...<br /> 2015-05-28 15:53:33,459 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 34 47 layouting...<br /> 2015-05-28 15:53:33,460 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 35 48 layouting...<br /> 2015-05-28 15:53:33,460 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 35 49 layouting...<br /> 2015-05-28 15:53:33,460 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 35 50 layouting...<br /> 2015-05-28 15:53:33,461 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 36 51 layouting...<br /> 2015-05-28 15:53:33,461 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 36 52 layouting...<br /> 2015-05-28 15:53:33,461 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 36 53 layouting...<br /> 2015-05-28 15:53:33,462 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 37 54 layouting...<br /> 2015-05-28 15:53:33,462 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 37 55 layouting...<br /> 2015-05-28 15:53:33,462 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 37 56 layouting...<br /> 2015-05-28 15:53:33,463 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 38 57 layouting...<br /> 2015-05-28 15:53:33,463 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 38 58 layouting...<br /> 2015-05-28 15:53:33,463 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 38 59 layouting...<br /> 2015-05-28 15:53:33,463 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 38 60 layouting...<br /> 2015-05-28 15:53:33,464 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 39 61 layouting...<br /> 2015-05-28 15:53:33,464 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 39 62 layouting...<br /> 2015-05-28 15:53:33,464 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 39 63 layouting...<br /> 2015-05-28 15:53:33,465 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 40 64 layouting...<br /> 2015-05-28 15:53:33,465 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 40 65 layouting...<br /> 2015-05-28 15:53:33,465 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 40 66 layouting...<br /> 2015-05-28 15:53:33,466 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 41 67 layouting...<br /> 2015-05-28 15:53:33,466 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 41 68 layouting...<br /> 2015-05-28 15:53:33,466 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 41 69 layouting...<br /> 2015-05-28 15:53:33,467 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 42 70 layouting...<br /> 2015-05-28 15:53:33,467 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 42 71 layouting...<br /> 2015-05-28 15:53:33,467 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 42 72 layouting...<br /> 2015-05-28 15:53:33,467 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 42 73 layouting...<br /> 2015-05-28 15:53:33,468 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 43 74 layouting...<br /> 2015-05-28 15:53:33,468 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 43 75 layouting...<br /> 2015-05-28 15:53:33,468 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 43 76 layouting...<br /> 2015-05-28 15:53:33,468 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 43 77 layouting...<br /> 2015-05-28 15:53:33,469 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 44 78 layouting...<br /> 2015-05-28 15:53:33,469 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 44 79 layouting...<br /> 2015-05-28 15:53:33,469 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 44 80 layouting...<br /> 2015-05-28 15:53:33,469 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 44 81 layouting...<br /> 2015-05-28 15:53:33,470 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 45 82 layouting...<br /> 2015-05-28 15:53:33,470 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 45 83 layouting...<br /> 2015-05-28 15:53:33,470 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 45 84 layouting...<br /> 2015-05-28 15:53:33,471 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 46 85 layouting...<br /> 2015-05-28 15:53:33,471 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 46 86 layouting...<br /> 2015-05-28 15:53:33,471 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 46 87 layouting...<br /> 2015-05-28 15:53:33,471 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 46 88 layouting...<br /> 2015-05-28 15:53:33,472 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 47 89 layouting...<br /> 2015-05-28 15:53:33,472 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 47 90 layouting...<br /> 2015-05-28 15:53:33,472 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 47 91 layouting...<br /> 2015-05-28 15:53:33,472 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 47 92 layouting...<br /> 2015-05-28 15:53:33,474 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 49 92 layout done<br /> 2015-05-28 15:53:33,475 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 50 92 layouting...<br /> 2015-05-28 15:53:33,482 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 57 92 generating PDF... 1<br /> 2015-05-28 15:53:33,483 INFO [http-0.0.0.0-8080-1] PDFServiceImpl 58 92 layouting...<br /> 2015-05-28 15:53:33,743 ERROR [http-0.0.0.0-8080-1] com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor PDFCreateException: java.io.IOException: PDF Merge: Parsing of PDF failed: null CallStack:<br /> de.mms_dresden.zvs.unterstuetzung.bl.impl.dokument.PdfTemplateServiceImpl.createPDF<br /> <br /> java.io.IOException: PDF Merge: Parsing of PDF failed: null<br /> at org.zefer.pd4ml.PD4ML.o00000(Unknown Source) ~[pd4ml.jar:396]<br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source) ~[pd4ml.jar:396]<br /> at PDFServiceImpl.mergeToPDFFromHTML(PDFServiceImpl.java:89)

    #29678

    Could you please publish a PDF sample, you unsuccessfully tried to merge with a dynamically generated PDF?

Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘General questions / FAQ’ is closed to new topics and replies.