11 Replies Latest reply on Jan 31, 2009 6:35 PM by (Wei)

    question about generatePDFOutput api

    Level 1
      When I attempt to invoke the generatePDFOutput api I get a "OutputService not found" exception. Do I need to install the Output ES component.
      Am using Livecycle ES 8.

      Thanks

      OutputResult outputDocument = aClient.generatePDFOutput(
      TransformationFormat.PDF,
      formName,
      contentRoot,
      outputOptions,
      pdfOptions,
      xmlDocData
      );

      From log file

      2008-01-02 20:55:20,391 [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR - Exception occurred ALC-DSC-012-000: com.adobe.idp.dsc.registry.ServiceNotFoundException: Service: OutputService not found. ALC-DSC-012-000: com.adobe.idp.dsc.registry.ServiceNotFoundException: Service: OutputService not found.
      at com.adobe.idp.dsc.registry.service.impl.ServiceRegistryImpl.getService(ServiceRegistryImp l.java:978)
      at com.adobe.idp.dsc.registry.service.impl.ServiceRegistryImpl.getHeadActiveConfiguration(Se rviceRegistryImpl.java:836)
      at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.resolveConfiguration(ServiceEngineImpl.ja va:146)
      at com.adobe.idp.dsc.provider.impl.ejb.receiver.EjbReceiverBean.invoke(EjbReceiverBean.java: 131)
      at com.adobe.idp.dsc.provider.impl.ejb.receiver.Invocation_fpvhue_EOImpl.invoke(Invocation_f pvhue_EOImpl.java:60)
      at com.adobe.idp.dsc.provider.impl.ejb.receiver.Invocation_fpvhue_EOImpl_WLSkel.invoke(Unkno wn Source)
      at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
      at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:335)
      at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
      at com.adobe.idp.dsc.provider.impl.ejb.receiver.Invocation_fpvhue_EOImpl_922_WLStub.invoke(U nknown Source)
      at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.doSend(EjbMessageDispatcher.java :137)
      at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)
      at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
      at com.adobe.livecycle.output.client.OutputClient.invokeRequest(OutputClient.java:380)
      at com.adobe.livecycle.output.client.OutputClient.generatePDFOutput(OutputClient.java:121)
      at com.wellsfargo.DocGen.DocGenBean.ProcessDocument(DocGenBean.java:505)
      at com.wellsfargo.DocGen.DocGenBean.GenDocs(DocGenBean.java:338)
      at com.wellsfargo.DocGen.DocGen_7hko3k_EOImpl.GenDocs(DocGen_7hko3k_EOImpl.java:60)
      at com.wellsfargo.DocGen.DocGen_7hko3k_EOImpl_WLSkel.invoke(Unknown Source)
      at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:550)
      at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
      at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:440)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
      at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:436)
      at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:58)
      at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:975)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
        • 1. Re: question about generatePDFOutput api
          > Do I need to install the Output ES component.

          Yes, of course. Once installed, do make sure that Output service is also running.
          • 2. Re: question about generatePDFOutput api
            Level 1
            Makes sense. Thanks Bajan.
            • 3. Re: question about generatePDFOutput api
              Hi
              We are using ejp service for generating PDF.But our outputClient.generatePDFOutput() is not giving us anything.When it is being called program gets hang,nor it is throwing any exeption.
              I am running the program from my machine which has windows OS and LiveCycle is intalled on Linux machine and has Weblogic server on it.
              We are making connection in service Client
              • 4. Re: question about generatePDFOutput api
                Level 1
                Hi Himanshu,

                To help troubleshoot this one I would suggest you see if you can get OutputIVS to run. This is a testing application that is shipped with the product but may need to be deployed. The ear file is called adobe-output-ivs-weblogic and should be in the adobe\livecycle\deploy folder on a windows sysem.

                cheers
                Chris
                • 5. Re: question about generatePDFOutput api
                  Level 1
                  I should add that to run this application the url is ...

                  http://localhost:8081/OutputIVS
                  • 6. Re: question about generatePDFOutput api
                    Level 1
                    Hi
                    In my i am able to generate pdf but when i am trying to making it secure by setting properties of print,copy, watermark etc using ddx it is giving me some error.It is some error in vallidation of DDX,but i am not able to find what it is..

                    com.adobe.livecycle.assembler.client.OperationException: ALC-ASM-S00-002: Failed
                    to execute the DDX - error messages provided.
                    at com.adobe.livecycle.assembler.AssemblerServiceImpl.execute(AssemblerS
                    erviceImpl.java:426)
                    at com.adobe.livecycle.assembler.AssemblerServiceImpl.invoke(AssemblerSe
                    rviceImpl.java:353)
                    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:585)
                    at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(Defaul
                    tPOJOInvokerImpl.java:181)
                    at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(In
                    vocationInterceptor.java:134)
                    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.procee
                    d(RequestInterceptorChainImpl.java:44)
                    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.do
                    InTransaction(TransactionInterceptor.java:74)
                    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapt
                    erBean.execute(EjbTransactionCMTAdapterBean.java:336)
                    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapt
                    erBean.doSupports(EjbTransactionCMTAdapterBean.java:212)
                    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapt
                    er_z73hg_ELOImpl.doSupports(EjbTransactionCMTAdapter_z73hg_ELOImpl.java:145)
                    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute
                    (EjbTransactionProvider.java:104)
                    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.inte
                    rcept(TransactionInterceptor.java:72)
                    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.procee
                    d(RequestInterceptorChainImpl.java:44)
                    at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(
                    InvalidStateInterceptor.java:37)
                    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.procee
                    d(RequestInterceptorChainImpl.java:44)
                    at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept
                    (AuthorizationInterceptor.java:93)
                    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.procee
                    d(RequestInterceptorChainImpl.java:44)
                    at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineI
                    mpl.java:113)
                    at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:102)
                    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke(A
                    bstractMessageReceiver.java:298)
                    at com.adobe.idp.dsc.provider.impl.ejb.receiver.EjbReceiverBean.invoke(E
                    jbReceiverBean.java:151)
                    at com.adobe.idp.dsc.provider.impl.ejb.receiver.Invocation_fpvhue_EOImpl
                    .invoke(Invocation_fpvhue_EOImpl.java:60)
                    at com.adobe.idp.dsc.provider.impl.ejb.receiver.Invocation_fpvhue_EOImpl
                    _WLSkel.invoke(Unknown Source)
                    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:550)
                    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef
                    .java:224)
                    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:440)
                    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
                    dSubject.java:363)
                    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
                    147)
                    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
                    a:436)
                    at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:5
                    8)
                    at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicSer
                    verRef.java:975)
                    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
                    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
                    Caused by: com.adobe.internal.ddxm.ValidationException: DDXM_S00010: The DDX did
                    not pass basic validation against the schema. Check the job log for details.
                    at com.adobe.internal.ddxm.Executive.execute(Executive.java:128)
                    at com.adobe.livecycle.assembler.AssemblerServiceImpl.execute(AssemblerS
                    erviceImpl.java:408)
                    ... 35 more
                    Exception in thread "main" java.lang.NullPointerException
                    at SecurePDF.invokeDDX(SecurePDF.java:210)
                    at SecurePDF.create(SecurePDF.java:151)
                    at SecurePDF.create(SecurePDF.java:194)
                    at Client.main(Client.java:44)
                    • 7. Re: question about generatePDFOutput api
                      I'll think about it.

                      http://freejavagames.110mb.com
                      • 8. Re: question about generatePDFOutput api
                        i also have this issue

                        chris

                        http://www.purplepenguinmedia.co.uk
                        • 9. Re: question about generatePDFOutput api
                          anyone figured this out i found this by using a http://www.google.com search
                          • 10. Re: question about generatePDFOutput api
                            Makes sense. Thanks Bajan.

                            http://freecode4u.com
                            • 11. Re: question about generatePDFOutput api
                              Try the latest JDK 6u11.

                              http://www.layeronline.com