2 Replies Latest reply on Sep 21, 2008 4:03 PM by HowardTreisman

    Submit PDF to a HTTP URL

      Hello All,

      I am trying to submit a XDP rendered as an interactive PDF on HTML page to a HTTP servlet, the XDP is rendered using renderPDF operation.
      The PDF has got a Submit button (submitting to HTTP servlet URL), which the user clicks once the all the fields are filled. Once I get the PDF on the servlet, I need to archive the filled-in PDF on a file location.

      To achieve this, I tried processFormSubmission of FormServiceClient, and when I am invoking the operation "processFormSubmission" I am getting the following exception:

      com.adobe.livecycle.formsservice.exception.ProcessFormSubmissionException: com.adobe.idp.DocumentError: Failed to connect to LiveCycle server via RMI. Make sure that the server is running and accessible to this client.
      at com.adobe.livecycle.formsservice.client.FormsServiceClient.processFormSubmission(FormsSer viceClient.java:416)
      at com.eams.lc.servlet.EamsSampleTestServlet.savePDFUsingEJB(EamsSampleTestServlet.java:170)
      at com.eams.lc.servlet.EamsSampleTestServlet.service(EamsSampleTestServlet.java:100)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:595)

      My environment details are as follows:
      1. JBoss 4.0.3
      2. SQL Server 2005
      3. Windows 2003 Server
      4. Adobe LC ES 8.2 Trial Version.

      Am I getting this exception because its a trial version? I am planning to upgrade the version to a licensed one very soon.

      And also please confirm whether the processFormSubmission can be used only with XDPs rendered as HTML?

      I tried submitting the PDF opened in Acrobat Pro, with this option also I got the same exception.

      Any comments are well appreciated.