Newbie to AEM : Connection refused when invoking a service | Community
Skip to main content
anupd73374180
Level 2
October 16, 2015
Solved

Newbie to AEM : Connection refused when invoking a service

  • October 16, 2015
  • 16 replies
  • 4176 views

I am trying to run the example from : https://helpx.adobe.com/livecycle/help/aem/aem-livecycle-connector.html#Invoking%20via%20Service%20References%20from%20OSGi%20Service%20Registry

Here's the package download link on that page: https://helpx.adobe.com/content/help/en/livecycle/help/aem/aem-livecycle-connector/_jcr_content/main-pars/download/file.res/aem-lc-connector-sample-pkg-1.0.0.zip

Its a simple form  that converts a word doc into pdf but i am not able to run it.

I tried to trace the issue in the log and disabled few Validation components to get around HTTP 403.

But now it errors out with and am stuck. Please advise. Please find the stacktrace from errors.log

12.08.2015 11:06:02.198 *INFO* [0:0:0:0:0:0:0:1 [1439395562195] POST /content/livecycle/connector/samples/pdfg.html HTTP/1.1] org.apache.commons.httpclient.HttpMethodDirector I/O exception (java.net.ConnectException) caught when processing request: Connection refused 12.08.2015 11:06:02.198 *INFO* [0:0:0:0:0:0:0:1 [1439395562195] POST /content/livecycle/connector/samples/pdfg.html HTTP/1.1] org.apache.commons.httpclient.HttpMethodDirector Retrying request 12.08.2015 11:06:02.198 *INFO* [0:0:0:0:0:0:0:1 [1439395562195] POST /content/livecycle/connector/samples/pdfg.html HTTP/1.1] org.apache.commons.httpclient.HttpMethodDirector I/O exception (java.net.ConnectException) caught when processing request: Connection refused 12.08.2015 11:06:02.198 *INFO* [0:0:0:0:0:0:0:1 [1439395562195] POST /content/livecycle/connector/samples/pdfg.html HTTP/1.1] org.apache.commons.httpclient.HttpMethodDirector Retrying request 12.08.2015 11:06:02.198 *INFO* [0:0:0:0:0:0:0:1 [1439395562195] POST /content/livecycle/connector/samples/pdfg.html HTTP/1.1] org.apache.commons.httpclient.HttpMethodDirector I/O exception (java.net.ConnectException) caught when processing request: Connection refused 12.08.2015 11:06:02.198 *INFO* [0:0:0:0:0:0:0:1 [1439395562195] POST /content/livecycle/connector/samples/pdfg.html HTTP/1.1] org.apache.commons.httpclient.HttpMethodDirector Retrying request 12.08.2015 11:06:02.199 *ERROR* [0:0:0:0:0:0:0:1 [1439395562195] POST /content/livecycle/connector/samples/pdfg.html HTTP/1.1] apps.livecycle.connector.samples.pdfg.POST$jsp Error occured while converting document to PDF com.adobe.idp.dsc.DSCRuntimeException: java.net.ConnectException: Connection refused         at com.adobe.livecycle.dsc.clientsdk.internal.soap.AbstractHttpInvocationRequestExecutor.executeRequest(AbstractHttpInvocationRequestExecutor.java:73)         at com.adobe.livecycle.dsc.clientsdk.internal.soap.CommonsClientMessageDispatcherFactory$CommonsClientMessageDispatcher.doSend(CommonsClientMessageDispatcherFactory.java:121)         at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:69)         at com.adobe.livecycle.dsc.clientsdk.internal.MessageDispatcherProxy$InvocationInterceptorChainImpl.doIntercept(MessageDispatcherProxy.java:64)         at com.adobe.livecycle.dsc.clientsdk.internal.ClassLoaderInterceptor.intercept(ClassLoaderInterceptor.java:34)         at com.adobe.livecycle.dsc.clientsdk.internal.MessageDispatcherProxy$InvocationInterceptorChainImpl.doIntercept(MessageDispatcherProxy.java:60)         at com.adobe.livecycle.dsc.clientsdk.internal.security.SecurityInterceptor.intercept(SecurityInterceptor.java:128)         at com.adobe.livecycle.dsc.clientsdk.internal.MessageDispatcherProxy$InvocationInterceptorChainImpl.doIntercept(MessageDispatcherProxy.java:60)         at com.adobe.livecycle.dsc.clientsdk.internal.RequestProgressInterceptor.intercept(RequestProgressInterceptor.java:41)         at com.adobe.livecycle.dsc.clientsdk.internal.MessageDispatcherProxy$InvocationInterceptorChainImpl.doIntercept(MessageDispatcherProxy.java:60)         at com.adobe.livecycle.dsc.clientsdk.internal.MessageDispatcherProxy.send(MessageDispatcherProxy.java:41)         at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:213)         at com.adobe.livecycle.generatepdf.client.GeneratePdfServiceClient.createPDF2(GeneratePdfServiceClient.java:620)         at org.apache.jsp.apps.livecycle.connector.samples.pdfg.POST_jsp$1.run(POST_jsp.java:43)  
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ogill

Unless I am completely mistaken, the package you have installed allows you to invoke services on a LiveCycle ES4 Server. So you need a standalone LiveCycle ES4 server running. From "http://help.adobe.com/en_US/livecycle/11.0/Overview/lc_overview_ds.pdf":

Integration with Adobe Experience Manager (AEM)

LiveCycle provides a rich client SDK that allows client applications to invoke LiveCycle services using Java APIs. You can invoke LiveCycle Document Services from within Adobe Experience Manager (AEM) web apps and workflows using AEM LiveCycle Conenctor. It simplifies using these APIs within the OSGi environment and enables seamless invocation of LiveCycle Services. 

16 replies

anupd73374180
Level 2
October 16, 2015

So, based on the suggestions in this thread, i went ahead to download LiveCycle trial. But it seems all the LiveCycle feature are now accommodated in AEM.

http://www.adobe.com/downloads/livecycle-trial-download.html

The same dependable features that you have come to appreciate in LiveCycle are now available in Adobe Experience Manager forms (AEM forms) and so much more. AEM forms can transform complex enterprise forms and processes into simple engaging digital experiences, anytime, anywhere, on any device. For more information go to: www.adobe.com/go/aemforms

 

 

 
anupd73374180
Level 2
October 16, 2015

Word doc and other MIME types into pdf. I have a list actually :

GIF, ONG, JPEG, TIFF, BMP, doc, docx, rtf, xls, xlsx, ppt, pptx, txt/plain, txt/html, txt/csv, txt/tab separated, eml, Pdf

Adobe Employee
October 16, 2015
Adobe Employee
October 16, 2015

Hi Anup,

as bsloki said, you can use 3rd party libraries to generate PDF's. Here is an article for CQ5.6[1]

I think what you are looking for is Document Services [2] if using AEM6

Regards,

Opkar

[1] https://helpx.adobe.com/experience-manager/using/creating-custom-experience-manager-pdf.html

[2] https://helpx.adobe.com/aem-forms/6/overview-aem-document-services.html

anupd73374180
Level 2
October 16, 2015

Thanks Opkar..

This looks like it. It states - "can easily convert documents created within the organization to Adobe PDF files that can be viewed using the ubiquitous Adobe Reader® software."

Thanks for sharing the links. Looks promising. I will look for LiveCycle like APIs for pdf conversion since i need to do this programatically.

Adobe Employee
October 16, 2015

No problem Anup,

if you have any specific questions, please head over to the AEM Forms forum where you will get some expert advice

Regards,

Opkar