Four Stars

Job is failing after deploying talend esb web service into remote server

Hello All, I am trying to deploy a web service created in Talend ESB studio. I exported the service as a .kar file. The talend job attached to this service is running fine in my laptop after copying the file into esb run time container. But when I move the same .kar file into my server I am able to access the WSDL but when I try testing the web service using SOAP UI I am getting "Talend job execution error:" error. I don't see proper error message in the log. I just see "Caused by: java.lang.RuntimeException: Talend job execution error:" 

Please help.

  • ESB
4 REPLIES
Moderator

Re: Job is failing after deploying talend esb web service into remote server

Hi,

How did you deploy your kar file on your server? Did you have the same java version for your local machine and server?

Best regards

Sabrina

Four Stars

Re: Job is failing after deploying talend esb web service into remote server

I exported my webservice from studio which created the .kar file and then moved the file under deploy folder in "Runtime_ESBSE". Yes I do have the same java versions. 

Nine Stars

Re: Job is failing after deploying talend esb web service into remote server

This sounds like it could just be down to a slight change in the endpoint. Assuming your Karaf (runtime) is configured on your local machine, try calling the following URL from a web browser (http://localhost:8040/services).....if the runtime is not on your local machine change "localhost" to whatever machine name the runtime is on. This will show if your service is actually running. I suspect that the addition of "services" to the endpoint has thrown you. If the service is there with a different URL, point your Studio job to it.

Also you have to consider that when testing your services with jobs on your Studio, you will likely be using localhost in your URL. This will change when the job is on a different machine to the service. The other thing that this could be (more likely now as I think about it) is the port number used. I think Studio uses something like 8090 for testing, however the Karaf defaults to 8040. 

 

This is not very well documented unfortunately. I hope this helps

 

 

Rilhia Solutions
Four Stars

Re: Job is failing after deploying talend esb web service into remote server

Thanks for responding to my post. I changed the host name and port endpoint before export the service from localhost to the server which I am copying the .kar file. After deploying the .kar file into the server I am able to access the WSDL from my laptop. But when I test the service using the SOAP UI I see "Talend job execution error". 

I see following error in the log file:

 

15:16:56,506 | WARN | tp1211844409-102 | ache.cxf.common.logging.LogUtils 449 | 90 - org.apache.cxf.cxf-core - 3.1.7 | Application {http://www.talend.org/service/}TestWSDLimport#{http://www.talend.org/service/}TestWSDLimportOperatio... has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Talend job execution error:
at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:162)[90Smiley Surprisedrg.apache.cxf.cxf-core:3.1.7]
at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:267)[104Smiley Surprisedrg.apache.cxf.cxf-rt-frontend-jaxws:3.1.7]
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:128)[90Smiley Surprisedrg.apache.cxf.cxf-core:3.1.7]
at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:232)[104Smiley Surprisedrg.apache.cxf.cxf-rt-frontend-jaxws:3.1.7]
at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:85)[104Smiley Surprisedrg.apache.cxf.cxf-rt-frontend-jaxws:3.1.7]
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:74)[90Smiley Surprisedrg.apache.cxf.cxf-core:3.1.7]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)[90Smiley Surprisedrg.apache.cxf.cxf-core:3.1.7]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_77]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_77]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$2.run(ServiceInvokerInterceptor.java:126)[90Smiley Surprisedrg.apache.cxf.cxf-core:3.1.7]
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)[90Smiley Surprisedrg.apache.cxf.cxf-core:3.1.7]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:131)[90Smiley Surprisedrg.apache.cxf.cxf-core:3.1.7]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)[90Smiley Surprisedrg.apache.cxf.cxf-core:3.1.7]
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[90Smiley Surprisedrg.apache.cxf.cxf-core:3.1.7]
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:254)[116Smiley Surprisedrg.apache.cxf.cxf-rt-transports-http:3.1.7]
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)[116Smiley Surprisedrg.apache.cxf.cxf-rt-transports-http:3.1.7]
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)[116Smiley Surprisedrg.apache.cxf.cxf-rt-transports-http:3.1.7]
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)[116Smiley Surprisedrg.apache.cxf.cxf-rt-transports-http:3.1.7]
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:180)[116Smiley Surprisedrg.apache.cxf.cxf-rt-transports-http:3.1.7]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:299)[116Smiley Surprisedrg.apache.cxf.cxf-rt-transports-http:3.1.7]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:218)[116Smiley Surprisedrg.apache.cxf.cxf-rt-transports-http:3.1.7]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)[62:javax.servlet-api:3.1.0]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:274)[116Smiley Surprisedrg.apache.cxf.cxf-rt-transports-http:3.1.7]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[199Smiley Surprisedrg.eclipse.jetty.servlet:9.2.19.v20160908]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[199Smiley Surprisedrg.eclipse.jetty.servlet:9.2.19.v20160908]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)[216Smiley Surprisedrg.ops4j.pax.web.pax-web-jetty:4.3.0]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[198Smiley Surprisedrg.eclipse.jetty.server:9.2.19.v20160908]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[197Smiley Surprisedrg.eclipse.jetty.security:9.2.19.v20160908]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[198Smiley Surprisedrg.eclipse.jetty.server:9.2.19.v20160908]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[198Smiley Surprisedrg.eclipse.jetty.server:9.2.19.v20160908]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)[216Smiley Surprisedrg.ops4j.pax.web.pax-web-jetty:4.3.0]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[199Smiley Surprisedrg.eclipse.jetty.servlet:9.2.19.v20160908]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[198Smiley Surprisedrg.eclipse.jetty.server:9.2.19.v20160908]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[198Smiley Surprisedrg.eclipse.jetty.server:9.2.19.v20160908]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[198Smiley Surprisedrg.eclipse.jetty.server:9.2.19.v20160908]
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[216Smiley Surprisedrg.ops4j.pax.web.pax-web-jetty:4.3.0]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[198Smiley Surprisedrg.eclipse.jetty.server:9.2.19.v20160908]
at org.eclipse.jetty.server.Server.handle(Server.java:499)[198Smiley Surprisedrg.eclipse.jetty.server:9.2.19.v20160908]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[198Smiley Surprisedrg.eclipse.jetty.server:9.2.19.v20160908]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[198Smiley Surprisedrg.eclipse.jetty.server:9.2.19.v20160908]
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[190Smiley Surprisedrg.eclipse.jetty.io:9.2.19.v20160908]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[201Smiley Surprisedrg.eclipse.jetty.util:9.2.19.v20160908]
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[201Smiley Surprisedrg.eclipse.jetty.util:9.2.19.v20160908]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_77]
Caused by: java.lang.RuntimeException: Talend job execution error:
at local_project.webservicepoc_0_1.WebServicePOC$ESBProviderCallbackTalendJobWrapper_tESBProviderRequest_1.sendFault(WebServicePOC.java:664)[245:local_project.WebServicePOC:0.1.0]
at local_project.webservicepoc_0_1.WebServicePOC$ESBProviderCallbackTalendJobWrapper_tESBProviderRequest_1.sendFaultByDefault(WebServicePOC.java:671)[245:local_project.WebServicePOC:0.1.0]
at local_project.webservicepoc_0_1.WebServicePOC.tESBProviderRequest_1_LoopProcess(WebServicePOC.java:2917)[245:local_project.WebServicePOC:0.1.0]
at local_project.webservicepoc_0_1.WebServicePOC.runJobInTOS(WebServicePOC.java:3280)[245:local_project.WebServicePOC:0.1.0]
at org.talend.esb.job.controller.internal.RuntimeESBProviderCallback.run(RuntimeESBProviderCallback.java:120)[228Smiley Surprisedrg.talend.esb.job.controller:6.3.1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_77]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_77]
... 1 more
Caused by: local_project.webservicepoc_0_1.WebServicePOC$TalendException
at local_project.webservicepoc_0_1.WebServicePOC.tRedshiftInput_1Process(WebServicePOC.java:1855)[245:local_project.WebServicePOC:0.1.0]
at local_project.webservicepoc_0_1.WebServicePOC.tESBProviderRequest_1_LoopProcess(WebServicePOC.java:2872)[245:local_project.WebServicePOC:0.1.0]
... 5 more