12 Replies Latest reply on Jul 2, 2008 6:10 AM by (Jean-Marc_Folie)

    failed to invoke FormDataIntegration.importData

      Am getting the following error message when i try to import data using "FormDataIntegration" client.

      Please advise!

      ------------------------------------------------------------------------
      !MESSAGE failed to invoke FormDataIntegration.importData
      !STACK 0
      ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.
      at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:210)
      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.EjbTransactionBMTAdapterBean.doRequiresNew (EjbTransactionBMTAdapterBean.java:218)
      at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EJSLocalStatelessEjbTransactionBMTAdapter_ 3af08fdf.doRequiresNew(Unknown Source)
      at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:133)
      at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)

      ...................

      Caused by: java.lang.NoClassDefFoundError: com/adobe/formServer/utils/StringUtils
      at com.adobe.livecycle.formdataintegration.server.FormData.importData(FormData.java:51)
      at sun.reflect.GeneratedMethodAccessor644.invoke(Unknown Source)
      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)
      ... 57 more

      ------------------------------------------------------------------------
        • 2. Re: failed to invoke FormDataIntegration.importData
          Jasmin Charbonneau Level 4
          Look like you're missing a client jar when invoking it from your client.

          Jasmin
          • 3. Re: failed to invoke FormDataIntegration.importData
            Level 1
            Jasmin,

            I tried all different methods

            Method 1:

            I confirmed that my classpath refers to "adobe-formdataintegration-client.jar"
            --------------------------------------------------------------------
            FormDataIntegrationClient dataClient = new FormDataIntegrationClient(serviceFactory);

            //import XML data into PDF template
            Document resultPDF = dataClient.importData(inputPDF,inputDataFile);

            File resultFile = new File("C:\\Adobe\\TestResult.pdf");
            resultPDF.copyToFile(resultFile);
            --------------------------------------------------------------------

            Result: ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.

            Method 2:
            I created a new process which has importData service in it and has different variables
            inputTemplate (Document),
            inputData (xml)
            resultPDF (Document)

            I tried to inovoke my process using invoke API, i had the same problem.

            Result: ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.

            Please adivse! All i need is i need to import XML data into PDF template and i would like to get editable(xfa) PDF.

            Thanks,
            Siva.Thiyaharajan
            • 4. Re: failed to invoke FormDataIntegration.importData
              Jasmin Charbonneau Level 4
              Can you post the application server log file?

              Jasmin
              • 5. Re: failed to invoke FormDataIntegration.importData
                Level 1
                Jasmin,

                'b' Here is the log

                ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.
                at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:210)
                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.doRequired(Ej bTransactionCMTAdapterBean.java:259)
                at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EJSLocalStatelessEjbTransactionCMTAdapter_ caf58c4f.doRequired(Unknown Source)
                at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:129)
                at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
                at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
                at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
                at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
                at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:80)
                at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
                at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:113)
                at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:102)
                at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:88)
                at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:21 0)
                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.workflow.engine.PEUtil.invokeAction(PEUtil.java:556)
                at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.transientInvoke(WorkflowDSCInvoker. java:261)
                at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.invoke(WorkflowDSCInvoker.java:98)
                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.doRequiresNew (EjbTransactionCMTAdapterBean.java:282)
                at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EJSLocalStatelessEjbTransactionCMTAdapter_ caf58c4f.doRequiresNew(Unknown Source)
                at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:143)
                at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
                at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
                at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
                at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
                at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:93)
                at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
                at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:113)
                at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:102)
                at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke(AbstractMessageReceiv er.java:298)
                at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invokeCall(SoapSdkEndpoint. java:125)
                at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invoke(SoapSdkEndpoint.java :77)
                at sun.reflect.GeneratedMethodAccessor130.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
                at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
                at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
                at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
                at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
                at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
                at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
                at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
                at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
                at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1068)
                at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1009)
                at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
                at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter(InvocationFilter.java :42)
                at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java: 190)
                at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
                at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
                at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:771)
                at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
                at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:539)
                at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
                at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.jav a:90)
                at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
                at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
                at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
                at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink .java:454)
                at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink .java:383)
                at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
                at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConn ectionInitialReadCallback.java:214)
                at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitia lReadCallback.java:113)
                at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:556)
                at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:606)
                at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:979)
                at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1064)
                at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
                Caused by: java.lang.NoClassDefFoundError: com/adobe/for
                • 6. Re: failed to invoke FormDataIntegration.importData
                  Level 1
                  Caused by: java.lang.NoClassDefFoundError: com/adobe/formServer/utils/StringUtils
                  at com.adobe.livecycle.formdataintegration.server.FormData.importData(FormData.java:51)
                  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)
                  ... 80 more
                  • 7. Re: failed to invoke FormDataIntegration.importData
                    Jasmin Charbonneau Level 4
                    What version of LiveCycle are you using?

                    Jasmin
                    • 8. Re: failed to invoke FormDataIntegration.importData
                      Level 1
                      LiveCycle version 8.1

                      For you side note, the same thing was working fine couple of days ago. And, i have not changed anything at client or server side.

                      Thanks,
                      Siva
                      • 9. Re: failed to invoke FormDataIntegration.importData
                        Hi All,<br /> I am trying to merge the XML data into and XDP to create a PDF using FormDataIntegration.<br />But i got the following error:<br />com.adobe.livecycle.formdataintegration.client.ImportFormDataException: Operation aborted: malformed PDF or data.<br />        at com.adobe.livecycle.formdataintegration.server.FormData.importData(FormData.java:89)<br />        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />        at java.lang.reflect.Method.invoke(Method.java:585)<br />        at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:181)<br />        at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:134)<br />        at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)<br />        at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)<br />        at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doRequiresNew (EjbTransactionBMTAdapterBean.java:218)<br />        at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapter_jmbvky_ELOImpl.do RequiresNew(EjbTransactionBMTAdapter_jmbvky_ELOImpl.java:63<br />        at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:133)<br />        at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)<br />        at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)<br />        at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)<br />        at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)<br />        at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:80)<br />        at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)<br />        at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:113)<br />        at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:102)<br />        at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke(AbstractMessageReceiv er.java:298)<br />        at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invokeCall(SoapSdkEndpoint. java:125)<br />        at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invoke(SoapSdkEndpoint.java :77)<br />        at sun.reflect.GeneratedMethodAccessor292.invoke(Unknown Source)<br />        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />        at java.lang.reflect.Method.invoke(Method.java:585)<br />        at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)<br />        at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)<br />        at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)<br />        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)<br />        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)<br />        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)<br />        at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)<br />        at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)<br />        at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)<br />        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)<br />        at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)<br />        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)<br />        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper. java:223)<br />        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)<b r />        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)<br />        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)<br />        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)<br />        at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter(InvocationFilter.java :42)<br />        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)<br />        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletC ontext.java:3243)<br />        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)<b r />        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)<br />        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2 003)<br />        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1909)<br />        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)<br />        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)<br />        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)<br /><br />I tried converting only the XDP to PDF to check if the problem is with the XDP file.I got the following exception.<br /><br />Caused by: com.adobe.internal.pdftoolkit.exceptions.PDFInvalidXMLException: Required PDF element missing from XDP<br /><br />After some research I found that the XDP needs the chunk element which is not generated by designer.What do i do to get a valid XDP.<br /><br />Following is the XML data file:<br /><?xml version="1.0" encoding="UTF-8"?><br /><Untitled><br />   <FirstName>Ego ille</FirstName><br />   <LastName>Si manu vacuas</LastName><br /></Untitled><br /><br />Regds,<br />Saritha
                        • 10. Re: failed to invoke FormDataIntegration.importData
                          Jasmin Charbonneau Level 4
                          The FormDataIntegration's import method can only merge XML with a PDF.

                          If you want to merge data with an XDP you need to use the LC Forms service and more specifically renderPDFForm (if you want to create a PDF).

                          Jasmin
                          • 11. Re: failed to invoke FormDataIntegration.importData
                            HowardTreisman Level 1
                            See my posting here:
                            http://www.adobeforums.com/webx/.59b55337/8

                            Howard
                            http://www.avoka.com
                            • 12. Re: failed to invoke FormDataIntegration.importData
                              Hi,

                              I have the same error message than Thiyaharajan Siva.
                              Have you found a solution??

                              thank a lot,

                              Jean-Marc