One Star

[resolved] Getting Error While running DemoServiceConsumer Job Talend ESB 5.6

Hi ,
     I have just installed TOS for ESB(5.6) and i am trying to run DEMO jobs in it...I am running  DemoServiceConsumer0.1 job but it is giving me Following error-
Starting job DemoServiceConsumer at 09:33 03/12/2014.
connecting to socket on port 3637
connected
: org.apache.cxf.service.factory.ReflectionServiceFactoryBean - Creating Service {http://www.talend.org/service/}DemoService from WSDL: classpath:/personator/demoserviceconsumer_0_1/wsdl/tESBConsumer_1.wsdl
: org.apache.cxf.phase.PhaseInterceptorChain - Interceptor for {http://www.talend.org/service/}DemoService#{http://www.talend.org/service/}DemoServiceOperation has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:570)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:479)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:355)
at personator.demoserviceconsumer_0_1.DemoServiceConsumer$GenericConsumer.invoke(DemoServiceConsumer.java:633)
at personator.demoserviceconsumer_0_1.DemoServiceConsumer.tFixedFlowInput_1Process(DemoServiceConsumer.java:1723)
at personator.demoserviceconsumer_0_1.DemoServiceConsumer.runJobInTOS(DemoServiceConsumer.java:2408)
at personator.demoserviceconsumer_0_1.DemoServiceConsumer.main(DemoServiceConsumer.java:2265)
Caused by: java.net.ConnectException: ConnectException invoking http://localhost:8040/services/DemoService: Connection refused: connect
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1347)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1331)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:632)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
... 10 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.setupWrappedStream(URLConnectionHTTPConduit.java:174)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1290)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1246)
at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.onFirstWrite(URLConnectionHTTPConduit.java:201)
at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:47)
at org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1303)
... 13 more
Exception in component tESBConsumer_1
org.apache.cxf.interceptor.Fault: Could not send Message.
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:570)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:479)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:355)
at personator.demoserviceconsumer_0_1.DemoServiceConsumer$GenericConsumer.invoke(DemoServiceConsumer.java:633)
at personator.demoserviceconsumer_0_1.DemoServiceConsumer.tFixedFlowInput_1Process(DemoServiceConsumer.java:1723)
at personator.demoserviceconsumer_0_1.DemoServiceConsumer.runJobInTOS(DemoServiceConsumer.java:2408)
at personator.demoserviceconsumer_0_1.DemoServiceConsumer.main(DemoServiceConsumer.java:2265)
disconnected
Caused by: java.net.ConnectException: ConnectException invoking http://localhost:8040/services/DemoService: Connection refused: connect
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1347)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1331)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:632)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
... 10 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.setupWrappedStream(URLConnectionHTTPConduit.java:174)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1290)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1246)
at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.onFirstWrite(URLConnectionHTTPConduit.java:201)
at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:47)
at org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1303)
... 13 more
Job DemoServiceConsumer ended at 09:33 03/12/2014.

Please Help me to solve this issue....

  • ESB
  • Talend Runtime
10 REPLIES
Community Manager

Re: [resolved] Getting Error While running DemoServiceConsumer Job Talend ESB 5.6

Exception in component tESBConsumer_1
org.apache.cxf.interceptor.Fault: Could not send Message.

The service server is not starting yet or the address is not right. This is a webservice consume job, make sure the webservice provider job is now running, or the webservice server is running if you have deployed the webservice in runtime. For testing, open the job DemoServicePortType_DemoServiceOperation in studio and run the job, change the endpoint url of tESBConsumer to :
"http://localhost:8090/services/DemoService"

Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Getting Error While running DemoServiceConsumer Job Talend ESB 5.6

Thanks Shong...
But I am designing a job which will consume the data from particular WSDL services for that which component is best?
Can we use tESBConsumer?
My Flow is-
Oracle DB-->tXMLMap--> tESBConsumer-->Oracle DB
Here, It will take data from Oracle DB and through tESBConsumer it will send request and receive response and store in Oracle.
but i am receiving all null data in response. 
Community Manager

Re: [resolved] Getting Error While running DemoServiceConsumer Job Talend ESB 5.6

tESBConsumer returns a document, you should link it to a tXMLMap and extract data from the document. BTW, do you use Talend ESB product to host the webservice or it is provided by other application? 
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Getting Error While running DemoServiceConsumer Job Talend ESB 5.6

thanks shong,
that means my flow will be-
Oracle DB-->tXMLMap--> tESBConsumer-->tXMLMap-->Oracle DB
Right?

Service is provided by other application...
Community Manager

Re: [resolved] Getting Error While running DemoServiceConsumer Job Talend ESB 5.6

Yes
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Getting Error While running DemoServiceConsumer Job Talend ESB 5.6

Hi Shong,
               My job is look like this-
                 
              tXMLMap Component-
                
              
             
               tESBConsumer Component-

              
           But I am getting following error-
              
           Please Help....
Community Manager

Re: [resolved] Getting Error While running DemoServiceConsumer Job Talend ESB 5.6

It is a compilation error, can you show me the input schema and output schema of tESBConsumer component?
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Getting Error While running DemoServiceConsumer Job Talend ESB 5.6

Input Schema For tESBConsumer-

Response Schema For tESBConsumer-

My Flow-->
Community Manager

Re: [resolved] Getting Error While running DemoServiceConsumer Job Talend ESB 5.6

Hi
Both input schema and response schema are predefined, the schema has only one column called payload with Document type and is read-only, you don't need to change the schema type from built-in to Repository and change the schema.

Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Getting Error While running DemoServiceConsumer Job Talend ESB 5.6

Thank You So much Shong...
Its Working Now...Smiley Happy