Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26826

    Hello :
    I use the pd4ml in 2 domain hosted in the same server. In one domain all is Ok, but in the other I can not create correct pdf. In the server are created pdf all with 16Kb of size that can not been displayed.

    The aplication that generate this pdf works correctly and without modification in the code suddenly crash .

    In teh console of Firefox firebug I obtain

    Error: Invalid XRef stream header
    pdf.worker.js (línea 232)

    XRef_readXRef@resource://pdf.js/build/pdf.worker.js:3708:13
    XRef_parse@resource://pdf.js/build/pdf.worker.js:3296:23
    PDFDocument_setup@resource://pdf.js/build/pdf.worker.js:2469:7
    PDFDocument_parse@resource://pdf.js/build/pdf.worker.js:2350:7
    ensureHelper@resource://pdf.js/build/pdf.worker.js:1971:22
    NetworkPdfManager_ensure/<@resource://pdf.js/build/pdf.worker.js:1985:7 NetworkPdfManager_ensure@resource://pdf.js/build/pdf.worker.js:1965:1 BasePdfManager_ensureDoc@resource://pdf.js/build/pdf.worker.js:1832:14 loadDocument/
    Warning: Unsupported feature “unknown”
    pdf.worker.js (línea 224)

    Warning: Unsupported feature “unknown”
    Warning: Indexing all PDF objects
    pdf.worker.js (línea 224)

    Fichero PDF no válido o corrupto.
    PDF.js v1.1.469 (build: f06aa6a)
    Mensaje: Invalid PDF structure

    In other exewcution with no header I obtain

    java.io.IOException: Server returned HTTP response code: 403 for URL: http://xxxxxxx/certificado/certificado4.php? at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1674) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1672) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1670) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1243) at org.zefer.cache.d.getResourceAsBytes(Unknown Source) at org.zefer.html.doc.PD4MLHtmlParser.parse(Unknown Source) at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source) at org.zefer.pd4ml.PD4ML.o00000(Unknown Source) at org.zefer.pd4ml.PD4ML.render(Unknown Source) at Pd4Cmd.o00000(Unknown Source) at Pd4Cmd.main(Unknown Source) Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://campus.cursosccc.com/certificado/certificado4.php?nombre=DIANA%20CONSTANZA-HURTADO-LOPEZ&curso=50B4221&nombrecurso=MONITOR/A%20DE%20PINTURA%20DECORATIVA.%20TECNICAS%20TRADICIONALES&fi=2011&ff=&horas=&matricula=80021114&anexo=0 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625) at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.java:2730) at org.zefer.cache.CookieManager.storeCookies(Unknown Source) … 7 more Exception in thread “main” java.lang.NullPointerException at org.zefer.pd4ml.PD4ML.o00000(Unknown Source) at org.zefer.pd4ml.PD4ML.render(Unknown Source) at Pd4Cmd.o00000(Unknown Source) at Pd4Cmd.main(Unknown Source)

    Somebody can help me?
    thanks in advance.

    Alberto Mozo

    #29257

    In the problem case, PD4ML tries to access/load http://xxxxxxx/certificado/certificado4.php and receives back 403 error code instead of HTML content to convert.

    First I would recommend to look through the server’s log files to determine, why PD4ML is not authorized to load the page.

    #29258

    Hello :

    Finally we have talk to our ISP. He has said that the problem is with the user-agent and we have made a change in the calll to Java

    $cmdline = “$java -Xmx512m -Djava.awt.headless=true -Dhttp.agent=certi

    It works.

    Thanks

    Alberto Mozo

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

The forum ‘Troubleshooting’ is closed to new topics and replies.