10 Replies Latest reply on Jun 2, 2009 12:45 AM by karthik_ceh

    GeneratePDF Service API error: PDFMaker reported an error while printing the document

    rogierdoekes
      I am trying to use the converting from native file format to PDF using java example and I keep getting this error
      "Error occurred: ALC-PDG-010-012-PDFMaker reported an error while printing the document."

      I installed the LiveCycle for JBoss using Turnkey.

      I created a war (dev.war) with a single servlet which executes the code as described in the example. I also includes the required jars in the classpath (dev.war/WEB-INF/lib)

      Any ideas what might caused this exception?

      Here is the stacktrace as I found it in the log:
      2007-12-12 10:47:50,666 INFO [STDOUT] Command line '"c:\Program Files\Java\jdk1.5.0_14\jre\bin\javaw.exe"'
      2007-12-12 10:47:50,947 INFO [STDOUT] [configuration loaded from classpath resource jar:file:/C:/Adobe/LiveCycle8/jboss/server/all/svcnative/PDFMakerSvc/bin/adobe-pdfg-commo nbmc.jar!/jacorb.properties]
      2007-12-12 10:47:52,181 INFO [STDOUT] Dec 12, 2007 10:47:52 AM com.adobe.native2pdf.bmc.logging.PDFGBMCLogger log
      INFO: ALC-PDG-001-001-Begin processing job : C:\Documents and Settings\Administrator.CAPITALSVS\Local Settings\Temp\pdfg-administrator\be\03c3-210fe3-c4d45c-7d5fa3-6d5e59-d87358\native-in.doc
      2007-12-12 10:47:57,743 INFO [com.adobe.pdfg.BMCCaller] ALC-PDG-001-028-test.doc: Job Completion Status: Failed
      2007-12-12 10:47:57,743 INFO [com.adobe.pdfg.BMCCaller] ALC-PDG-001-025-test.doc: Time Job Completed: 12/12/07 10:47 AM
      2007-12-12 10:47:57,743 INFO [com.adobe.pdfg.BMCCaller] ALC-PDG-001-026-test.doc: Time of Job Execution: 8,077 ms
      2007-12-12 10:47:57,758 ERROR [com.adobe.pdfg.GeneratePDFImpl] ALC-PDG-001-000-ALC-PDG-010-012-PDFMaker reported an error while printing the document.
      2007-12-12 10:47:57,915 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/dev].[com.bbw.framework .servlet.PdfUpload]] Servlet.service() for servlet com.bbw.framework.servlet.PdfUpload threw exception
      ALC-PDG-10012-000: com.adobe.livecycle.generatepdf.client.ConversionException: ALC-PDG-010-012-PDFMaker reported an error while printing the document.
      at com.adobe.pdfg.BMCCaller.checkResult(BMCCaller.java:275)
      at com.adobe.pdfg.Native2PdfCaller.callNativeBMC(Native2PdfCaller.java:691)
      at com.adobe.pdfg.Native2PdfCaller.createPDF(Native2PdfCaller.java:263)
      at com.adobe.pdfg.GeneratePDFImpl.createPDF(GeneratePDFImpl.java:257)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:181)
      at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:134)
      at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
      at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
      at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTAdapterBean.java:336)
      at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doNotSupporte d(EjbTransactionCMTAdapterBean.java:236)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance I
        • 1. Re: GeneratePDF Service API error: PDFMaker reported an error while printing the document
          Hodmi Level 4
          Hi Rogier;

          It looks like the PDFMaker component (part of Acrobat running on the server) is unable to convert the document. If you open the document using the native application (for example Microsoft Word) on the server, can you manually make a PDF out of it. That is, can you open the document and choose Adobe PDF -> convert to Adobe PDF using Word on the server?
          • 2. Re: GeneratePDF Service API error: PDFMaker reported an error while printing the document
            rogierdoekes Level 1
            Hi Michael,

            I tried to do the conversion on the server and the document converted without a problem.

            Also when I logged into the admingui site, and use the create PDF function, conversion is also not a problem..

            I included the following jars in the WEB-INF/lib path of my Jboss war:
            adobe-distiller-client.jar
            adobe-generatepdf-client.jar
            adobe-livecycle-client.jar
            adobe-pdfutility-client.jar
            adobe-usermanager-client.jar
            adobe-utilities.jar
            commons-codec-1.3.jar
            commons-collections-3.1.jar
            commons-discovery.jar
            dom3-xml-apis-2.5.0.jar
            jaxen-1.1-beta.9.jar
            jaxrpc.jar
            log4j.jar
            mail.jar
            saaj.jar
            wsdl4.jar
            xalan.jar
            xbean.jar
            xercesImpl.jar

            I know I probably do not need all of them as I do not invoke SOAP calls, but is this the complete list of jars or did I forget one?

            Thanks,
            -Rogier
            • 3. Re: GeneratePDF Service API error: PDFMaker reported an error while printing the document
              Hodmi Level 4
              Okay, that tells us that both PDFMaker and LiveCycle ES can handle the file conversion. The problem is most likely in the actual call to Generator.

              I don't think its a JAR file issue as you are not a class cast or class not found exception.

              I suspect that it is in the way the input Document object is being populated. I use the following to read it in from the file system (inputFileName includes the file path)

              ...

              FileInputStream fileInputStream = new FileInputStream(inputFileName);
              Document inDoc = new Document(fileInputStream);

              String adobePDFSettings = "Standard";
              String securitySettings = "No Security";
              String fileTypeSettings = "Standard";

              try{
              CreatePDFResult result = new CreatePDFResult();
              result = new GeneratePdfServiceClient(factory).createPDF(
              inDoc,
              inputFileName,
              fileTypeSettings,
              adobePDFSettings,
              securitySettings,
              null,
              null);

              //Get the newly created document
              Document createdDocument = result.getCreatedDocument();

              ...
              • 4. Re: GeneratePDF Service API error: PDFMaker reported an error while printing the document
                rogierdoekes Level 1
                Hi Michael,

                You code is a carbon copy of the code I use for testing. I also read from a static document in the file system populating the Document with a FileInputStream.

                It's good I do not have much hair on my head, otherwise I would be pulling it now...

                -Rogier
                • 5. Re: GeneratePDF Service API error: PDFMaker reported an error while printing the document
                  rogierdoekes Level 1
                  2007-12-12 14:18:04,238 INFO [com.adobe.pdfg.BMCCaller] ALC-PDG-001-024-test.doc: Time Job Submitted: 12/12/07 2:18 PM
                  2007-12-12 14:18:04,956 INFO [com.adobe.pdfg.BMCCaller] ALC-PDG-001-021-test.doc: PDF Settings Used: pdfg Standard 56529
                  2007-12-12 14:18:04,956 INFO [com.adobe.pdfg.BMCCaller] ALC-PDG-001-022-test.doc: Security Settings Used: No Security
                  2007-12-12 14:18:04,956 INFO [com.adobe.pdfg.BMCCaller] ALC-PDG-001-023-test.doc: FileType Settings Used: Standard
                  2007-12-12 14:18:04,956 INFO [com.adobe.pdfg.BMCCaller] ALC-PDG-001-017-test.doc: Job Submitted by User: administrator
                  2007-12-12 14:18:05,034 INFO [com.adobe.service.ProcessResource] BMC505: Service PDFMakerSvc: Starting native process with command line "C:\\Adobe\\LiveCycle8\\jboss\\server\\all\\svcnative\\PDFMakerSvc\\bin\\dll\\pdfgen.exe" PDF-PD9f9120002 -beginExecutable "c:\\Program Files\\Java\\jdk1.5.0_14\\jre\\bin\\javaw.exe" -endExecutable -Xmx64m -cp "C:/Adobe/LiveCycle8/jboss/server/all/svcnative/PDFMakerSvc/bin/adobe-appmon.jar;C:/Adobe /LiveCycle8/jboss/server/all/svcnative/PDFMakerSvc/bin/adobe-appmondata.jar;C:/Adobe/LiveC ycle8/jboss/server/all/svcnative/PDFMakerSvc/bin/adobe-bslj.jar;C:/Adobe/LiveCycle8/jboss/ server/all/svcnative/PDFMakerSvc/bin/adobe-csa.jar;C:/Adobe/LiveCycle8/jboss/server/all/sv cnative/PDFMakerSvc/bin/adobe-generatepdf-client.jar;C:/Adobe/LiveCycle8/jboss/server/all/ svcnative/PDFMakerSvc/bin/adobe-pdfg-common-jaxb.jar;C:/Adobe/LiveCycle8/jboss/server/all/ svcnative/PDFMakerSvc/bin/adobe-pdfg-common.jar;C:/Adobe/LiveCycle8/jboss/server/all/svcna tive/PDFMakerSvc/bin/adobe-pdfg-commonbmc.jar;C:/Adobe/LiveCycle8/jboss/server/all/svcnati ve/PDFMakerSvc/bin/adobe-pdfg-idl-bmc-websphere.jar;C:/Adobe/LiveCycle8/jboss/server/all/s vcnative/PDFMakerSvc/bin/adobe-pdfg-idl-bmc.jar;C:/Adobe/LiveCycle8/jboss/server/all/svcna tive/PDFMakerSvc/bin/adobe-utilities.jar;C:/Adobe/LiveCycle8/jboss/server/all/svcnative/PD FMakerSvc/bin/avalon-framework-4.1.5.jar;C:/Adobe/LiveCycle8/jboss/server/all/svcnative/PD FMakerSvc/bin/comfyj-2.3.jar;C:/Adobe/LiveCycle8/jboss/server/all/svcnative/PDFMakerSvc/bi n/jacorb.jar;C:/Adobe/LiveCycle8/jboss/server/all/svcnative/PDFMakerSvc/bin/jaxb-api.jar;C :/Adobe/LiveCycle8/jboss/server/all/svcnative/PDFMakerSvc/bin/jaxb-impl.jar;C:/Adobe/LiveC ycle8/jboss/server/all/svcnative/PDFMakerSvc/bin/jaxb-libs.jar;C:/Adobe/LiveCycle8/jboss/s erver/all/svcnative/PDFMakerSvc/bin/jniw2.9.5_acrobat1.1.jar;C:/Adobe/LiveCycle8/jboss/ser ver/all/svcnative/PDFMakerSvc/bin/jniw2.9.5_autocad1.1.jar;C:/Adobe/LiveCycle8/jboss/serve r/all/svcnative/PDFMakerSvc/bin/jniw2.9.5_autocad2007.jar;C:/Adobe/LiveCycle8/jboss/server /all/svcnative/PDFMakerSvc/bin/jniw2.9.5_excel1.3.jar;C:/Adobe/LiveCycle8/jboss/server/all /svcnative/PDFMakerSvc/bin/jniw2.9.5_pdfmapi1.0.jar;C:/Adobe/LiveCycle8/jboss/server/all/s vcnative/PDFMakerSvc/bin/jniw2.9.5_ppt2.6.jar;C:/Adobe/LiveCycle8/jboss/server/all/svcnati ve/PDFMakerSvc/bin/jniw2.9.5_project4.4.jar;C:/Adobe/LiveCycle8/jboss/server/all/svcnative /PDFMakerSvc/bin/jniw2.9.5_visio4.a.jar;C:/Adobe/LiveCycle8/jboss/server/all/svcnative/PDF MakerSvc/bin/jniw2.9.5_word8.1.jar;C:/Adobe/LiveCycle8/jboss/server/all/svcnative/PDFMaker Svc/bin/jniwrap-3.5.jar;C:/Adobe/LiveCycle8/jboss/server/all/svcnative/PDFMakerSvc/bin/log kit-1.2.jar;C:/Adobe/LiveCycle8/jboss/server/all/svcnative/PDFMakerSvc/bin/namespace.jar;C :/Adobe/LiveCycle8/jboss/server/all/svcnative/PDFMakerSvc/bin/PDFMakerConverterServer.jar; C:/Adobe/LiveCycle8/jboss/server/all/svcnative/PDFMakerSvc/bin/winpack-3.5.jar;C:/Adobe/Li veCycle8/jboss/server/all/svcnative/ServicesNatives2/jars/adobe-bslj.jar" com.adobe.native2pdf.bmc.PDFMakerServer -IOR IOR:000000000000002249444C3A636F6D2F61646F62652F736572766963652F4D616E616765723A312E30000 0000000000200000000000000D8000102000000000D3139322E3136382E302E313100000DC8000000134A426F7 3732F42522D312F010000000000000000000000050000000000000008000000004A414300000000010000001C0 000000000010001000000010501000100010109000000010501000100000021000000500000000000000001000 0000000000024000000200000007E00000000000000010000000D3139322E3136382E302E313100000DC900000 0000000000000000000000000000000000000000000000000000000002000000004000000000000001F0000000 400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003 -AppServer jboss
                  2007-12-12 14:18:05,097 INFO [STDOUT] Command line '"c:\Program Files\Java\jdk1.5.0_14\jre\bin\javaw.exe"'
                  2007-12-12 14:18:05,378 INFO [STDOUT] [configuration loaded from classpath resource jar:file:/C:/Adobe/LiveCycle8/jboss/server/all/svcnative/PDFMakerSvc/bin/adobe-pdfg-commo nbmc.jar!/jacorb.properties]
                  2007-12-12 14:18:06,659 INFO [STDOUT] Dec 12, 2007 2:18:06 PM com.adobe.native2pdf.bmc.logging.PDFGBMCLogger log
                  INFO: ALC-PDG-001-001-Begin processing job : C:\Documents and Settings\Administrator.CAPITALSVS\Local Settings\Temp\pdfg-administrator\dc\a964-9af869-f80e3f-b0c947-802e8c-533288\native-in.doc
                  2007-12-12 14:18:12,236 INFO [com.adobe.pdfg.BMCCaller] ALC-PDG-001-028-test.doc: Job Completion Status: Failed
                  2007-12-12 14:18:12,236 INFO [com.adobe.pdfg.BMCCaller] ALC-PDG-001-025-test.doc: Time Job Completed: 12/12/07 2:18 PM
                  2007-12-12 14:18:12,236 INFO [com.adobe.pdfg.BMCCaller] ALC-PDG-001-026-test.doc: Time of Job Execution: 7,998 ms
                  2007-12-12 14:18:12,252 ERROR [com.adobe.pdfg.GeneratePDFImpl] ALC-PDG-001-000-ALC-PDG-010-012-PDFMaker reported an error while printing the document.
                  2007-12-12 14:18:12,408 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/dev].[com.bbw.framework .servlet.PdfUpload]] Servlet.service() for servlet com.bbw.framework.servlet.PdfUpload threw exception
                  ALC-PDG-10012-000: com.adobe.livecycle.generatepdf.client.ConversionException: ALC-PDG-010-012-PDFMaker reported an error while printing the document.
                  at com.adobe.pdfg.BMCCaller.checkResult(BMCCaller.java:275)
                  at com.adobe.pdfg.Native2PdfCaller.callNativeBMC(Native2PdfCaller.java:691)
                  at com.adobe.pdfg.Native2PdfCaller.createPDF(Native2PdfCaller.java:263)
                  at com.adobe.pdfg.GeneratePDFImpl.createPDF(GeneratePDFImpl.java:257)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:181)
                  at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:134)
                  at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
                  at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
                  at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTAdapterBean.java:336)
                  at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doNotSupporte d(EjbTransactionCMTAdapterBean.java:236)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
                  at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
                  at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
                  at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)
                  at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
                  at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java
                  • 6. Re: GeneratePDF Service API error: PDFMaker reported an error while printing the document
                    rogierdoekes Level 1
                    above posting is the complete stack in the error log
                    • 7. Re: GeneratePDF Service API error: PDFMaker reported an error while printing the document
                      johnqdaily Level 1
                      Rogier,

                      Did you create a service account like was explained in the Microsoft instructions? If you did then what you need to do is uninstall Acrobat 9 Pro Extended and reinstall by logging on to that server with the office automation user account and then install Acrobat that way. That is how I fixed the error you are seeing.

                      John
                      • 8. Re: GeneratePDF Service API error: PDFMaker reported an error while printing the document
                        I installed LCES Server on Weblogic 10.0.3
                        and i use very well for 1 month.

                        but, yesterday PDFMaker Error occur upper issue...
                        PDF Conversion is only onetime success about that time server restart.

                        img file conversion is very well.
                        but, MS-Office file & txt file is failed.

                        anybody, solve this problem??
                        please, help me..and send to mail "jspark226@thebne.com"
                        • 9. Re: GeneratePDF Service API error: PDFMaker reported an error while printing the document
                          adib4u2009

                          Hi All,

                                  I also got the same error while converting WORD to PDF

                           

                          Error Code:10012
                          Error Message: ALC-PDG-010-012-PDFMaker reported an error while printing the document.

                          Can you please help me how to sovle this issue

                           

                          Thanks in Advance ..

                           

                          Regards

                          Aditya Marla

                          • 10. Re: GeneratePDF Service API error: PDFMaker reported an error while printing the document
                            karthik_ceh

                            Hi..

                            Can u please check whether u are using a licensed version of Acrobat Reader Software !

                            Make sure that PDFmaker.dll is registered !

                            Try to run the server in command prompt and then convert the document.

                            Try to convert the document using ADMINUI

                            Make sure that u have installed Microsoft Word and Acrobat Reader using the Same ADMINISTRATOR ACCOUNT ( Username and password ) if there is a conflict between these 2 softwares u can try to reinstall and try the same..! Check that u have installed LC using TURNKEY installation also.

                            Iam not sure about TURNKEY installation will lead to this Exception !

                             

                             

                            Regards

                            karthik.