Exception while invoking the API with GET resource in ESB 5.0.0

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Exception while invoking the API with GET resource in ESB 5.0.0

Dilusha Alphonso
Hi All,

I am trying to invoke an API deployed in WSO2ESB 5.0.0 with 'GET' resource. The endpoint of the API in a data service hosted in WSO2 DSS. I encountered an error in the console while invoking the API using cURL command

Below is the error encountered in the console:

[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "GET /getcardata/10 HTTP/1.1[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Host: 10.100.7.44:8280[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "User-Agent: curl/7.52.1[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Accept: */*[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Authorization: Bearer 2ad64c91-2757-3a2d-834b-32ca671e08fe[\r][\n]"
[2017-12-13 19:21:07,891] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "[\r][\n]"
[2017-12-13 19:21:07,997]  WARN - SynapseJsonPath Json Payload is empty.
[2017-12-13 19:21:08,006] ERROR - TargetHandler I/O error: Unrecognized SSL message, plaintext connection?
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.EngineInputRecord.bytesInCompletePacket(EngineInputRecord.java:156)
at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:868)
at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:781)
at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
at org.apache.http.nio.reactor.ssl.SSLIOSession.doUnwrap(SSLIOSession.java:245)
at org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:280)
at org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:410)
at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:119)
at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:159)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:338)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:316)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:277)
at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:105)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:586)
at java.lang.Thread.run(Thread.java:748)
[2017-12-13 19:21:08,007]  WARN - EndpointContext Endpoint : AnonymousEndpoint with address https://10.100.7.44:9773/services/CUSTOMER_INPUT_DataService/ will be marked SUSPENDED as it failed
[2017-12-13 19:21:08,007]  WARN - EndpointContext Suspending endpoint : AnonymousEndpoint with address https://10.100.7.44:9773/services/CUSTOMER_INPUT_DataService/ - current suspend duration is : 30000ms - Next retry after : Wed Dec 13 19:21:38 IST 2017
[2017-12-13 19:21:08,008]  INFO - LogMediator To: /getcardata/10, MessageID: urn:uuid:ceff8fa9-bc8e-4cf5-9272-9ed612aad557, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 101500, ERROR_MESSAGE = Error in Sender, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><p:select_with_key_CUSTOMER_INPUT_operation xmlns:p="https://car.input.wso2.com"><xs:ORDER_ID xmlns:xs="https://car.input.wso2.com"/></p:select_with_key_CUSTOMER_INPUT_operation></soapenv:Body></soapenv:Envelope>
[2017-12-13 19:24:08,079]  WARN - SourceHandler Connection time out after request is read: http-incoming-43 Socket Timeout : 180000 Remote Address : /10.100.7.44:57608

Can you please suggest on overcoming this issue?

Thanks,
Dilusha
--
Best Regards,
Dilusha Alphonso
Software Engineer - Support Team
WSO2

Mobile : +94766837098
http://wso2.com/signature

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Exception while invoking the API with GET resource in ESB 5.0.0

Firzhan Naqash
Hi Dilusha,

Can you set the Accept header with your CURL command? 

Regards,
Firzhan


mobile: <a href="tel:%28%2B94%29%2071%205247551" value="+94715247551" style="color:rgb(17,85,204)" target="_blank">(+94) 77 9785674| blog: http://firzhanblogger.blogspot.com/ 

On Wed, Dec 13, 2017 at 7:40 PM, Dilusha Alphonso <[hidden email]> wrote:
Hi All,

I am trying to invoke an API deployed in WSO2ESB 5.0.0 with 'GET' resource. The endpoint of the API in a data service hosted in WSO2 DSS. I encountered an error in the console while invoking the API using cURL command

Below is the error encountered in the console:

[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "GET /getcardata/10 HTTP/1.1[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Host: 10.100.7.44:8280[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "User-Agent: curl/7.52.1[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Accept: */*[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Authorization: Bearer 2ad64c91-2757-3a2d-834b-32ca671e08fe[\r][\n]"
[2017-12-13 19:21:07,891] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "[\r][\n]"
[2017-12-13 19:21:07,997]  WARN - SynapseJsonPath Json Payload is empty.
[2017-12-13 19:21:08,006] ERROR - TargetHandler I/O error: Unrecognized SSL message, plaintext connection?
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.EngineInputRecord.bytesInCompletePacket(EngineInputRecord.java:156)
at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:868)
at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:781)
at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
at org.apache.http.nio.reactor.ssl.SSLIOSession.doUnwrap(SSLIOSession.java:245)
at org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:280)
at org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:410)
at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:119)
at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:159)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:338)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:316)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:277)
at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:105)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:586)
at java.lang.Thread.run(Thread.java:748)
[2017-12-13 19:21:08,007]  WARN - EndpointContext Endpoint : AnonymousEndpoint with address https://10.100.7.44:9773/services/CUSTOMER_INPUT_DataService/ will be marked SUSPENDED as it failed
[2017-12-13 19:21:08,007]  WARN - EndpointContext Suspending endpoint : AnonymousEndpoint with address https://10.100.7.44:9773/services/CUSTOMER_INPUT_DataService/ - current suspend duration is : 30000ms - Next retry after : Wed Dec 13 19:21:38 IST 2017
[2017-12-13 19:21:08,008]  INFO - LogMediator To: /getcardata/10, MessageID: urn:uuid:ceff8fa9-bc8e-4cf5-9272-9ed612aad557, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 101500, ERROR_MESSAGE = Error in Sender, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><p:select_with_key_CUSTOMER_INPUT_operation xmlns:p="https://car.input.wso2.com"><xs:ORDER_ID xmlns:xs="https://car.input.wso2.com"/></p:select_with_key_CUSTOMER_INPUT_operation></soapenv:Body></soapenv:Envelope>
[2017-12-13 19:24:08,079]  WARN - SourceHandler Connection time out after request is read: http-incoming-43 Socket Timeout : 180000 Remote Address : /10.100.7.44:57608

Can you please suggest on overcoming this issue?

Thanks,
Dilusha
--
Best Regards,
Dilusha Alphonso
Software Engineer - Support Team
WSO2

Mobile : <a href="tel:+94%2076%20683%207098" value="+94766837098" target="_blank">+94766837098
http://wso2.com/signature

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev



_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Exception while invoking the API with GET resource in ESB 5.0.0

Pubudu Gunatilaka-2
Hi Dilusha,

Based on the stack trace, it looks like you have a mismatch with the protocol and the port. Make sure you have used the correct ports.

Thank you!

On Wed, Dec 13, 2017 at 7:49 PM, Firzhan Naqash <[hidden email]> wrote:
Hi Dilusha,

Can you set the Accept header with your CURL command? 

Regards,
Firzhan


mobile: <a href="tel:%28%2B94%29%2071%205247551" value="+94715247551" style="color:rgb(17,85,204)" target="_blank">(+94) 77 9785674| blog: http://firzhanblogger.blogspot.com/ 

On Wed, Dec 13, 2017 at 7:40 PM, Dilusha Alphonso <[hidden email]> wrote:
Hi All,

I am trying to invoke an API deployed in WSO2ESB 5.0.0 with 'GET' resource. The endpoint of the API in a data service hosted in WSO2 DSS. I encountered an error in the console while invoking the API using cURL command

Below is the error encountered in the console:

[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "GET /getcardata/10 HTTP/1.1[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Host: 10.100.7.44:8280[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "User-Agent: curl/7.52.1[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Accept: */*[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Authorization: Bearer 2ad64c91-2757-3a2d-834b-32ca671e08fe[\r][\n]"
[2017-12-13 19:21:07,891] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "[\r][\n]"
[2017-12-13 19:21:07,997]  WARN - SynapseJsonPath Json Payload is empty.
[2017-12-13 19:21:08,006] ERROR - TargetHandler I/O error: Unrecognized SSL message, plaintext connection?
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.EngineInputRecord.bytesInCompletePacket(EngineInputRecord.java:156)
at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:868)
at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:781)
at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
at org.apache.http.nio.reactor.ssl.SSLIOSession.doUnwrap(SSLIOSession.java:245)
at org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:280)
at org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:410)
at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:119)
at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:159)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:338)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:316)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:277)
at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:105)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:586)
at java.lang.Thread.run(Thread.java:748)
[2017-12-13 19:21:08,007]  WARN - EndpointContext Endpoint : AnonymousEndpoint with address https://10.100.7.44:9773/services/CUSTOMER_INPUT_DataService/ will be marked SUSPENDED as it failed
[2017-12-13 19:21:08,007]  WARN - EndpointContext Suspending endpoint : AnonymousEndpoint with address https://10.100.7.44:9773/services/CUSTOMER_INPUT_DataService/ - current suspend duration is : 30000ms - Next retry after : Wed Dec 13 19:21:38 IST 2017
[2017-12-13 19:21:08,008]  INFO - LogMediator To: /getcardata/10, MessageID: urn:uuid:ceff8fa9-bc8e-4cf5-9272-9ed612aad557, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 101500, ERROR_MESSAGE = Error in Sender, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><p:select_with_key_CUSTOMER_INPUT_operation xmlns:p="https://car.input.wso2.com"><xs:ORDER_ID xmlns:xs="https://car.input.wso2.com"/></p:select_with_key_CUSTOMER_INPUT_operation></soapenv:Body></soapenv:Envelope>
[2017-12-13 19:24:08,079]  WARN - SourceHandler Connection time out after request is read: http-incoming-43 Socket Timeout : 180000 Remote Address : /10.100.7.44:57608

Can you please suggest on overcoming this issue?

Thanks,
Dilusha
--
Best Regards,
Dilusha Alphonso
Software Engineer - Support Team
WSO2

Mobile : <a href="tel:+94%2076%20683%207098" value="+94766837098" target="_blank">+94766837098
http://wso2.com/signature

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev



_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Pubudu Gunatilaka
Committer and PMC Member - Apache Stratos
Senior Software Engineer 
WSO2, Inc.: http://wso2.com
mobile : <a href="tel:%2B94772207163" value="+94772207163" style="font-size:x-small;color:rgb(17,85,204)" target="_blank">+94774078049


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Exception while invoking the API with GET resource in ESB 5.0.0

Irham Iqbal
Hi Dilusha,

Seems like you have a problem with your data service. Make sure it's working by accessing the wsdl from your browser as below.

Thanks,
Iqbal  

On Thu, Dec 14, 2017 at 12:10 AM, Pubudu Gunatilaka <[hidden email]> wrote:
Hi Dilusha,

Based on the stack trace, it looks like you have a mismatch with the protocol and the port. Make sure you have used the correct ports.

Thank you!

On Wed, Dec 13, 2017 at 7:49 PM, Firzhan Naqash <[hidden email]> wrote:
Hi Dilusha,

Can you set the Accept header with your CURL command? 

Regards,
Firzhan


mobile: <a href="tel:%28%2B94%29%2071%205247551" value="+94715247551" style="color:rgb(17,85,204)" target="_blank">(+94) 77 9785674| blog: http://firzhanblogger.blogspot.com/ 

On Wed, Dec 13, 2017 at 7:40 PM, Dilusha Alphonso <[hidden email]> wrote:
Hi All,

I am trying to invoke an API deployed in WSO2ESB 5.0.0 with 'GET' resource. The endpoint of the API in a data service hosted in WSO2 DSS. I encountered an error in the console while invoking the API using cURL command

Below is the error encountered in the console:

[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "GET /getcardata/10 HTTP/1.1[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Host: 10.100.7.44:8280[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "User-Agent: curl/7.52.1[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Accept: */*[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Authorization: Bearer 2ad64c91-2757-3a2d-834b-32ca671e08fe[\r][\n]"
[2017-12-13 19:21:07,891] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "[\r][\n]"
[2017-12-13 19:21:07,997]  WARN - SynapseJsonPath Json Payload is empty.
[2017-12-13 19:21:08,006] ERROR - TargetHandler I/O error: Unrecognized SSL message, plaintext connection?
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.EngineInputRecord.bytesInCompletePacket(EngineInputRecord.java:156)
at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:868)
at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:781)
at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
at org.apache.http.nio.reactor.ssl.SSLIOSession.doUnwrap(SSLIOSession.java:245)
at org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:280)
at org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:410)
at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:119)
at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:159)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:338)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:316)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:277)
at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:105)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:586)
at java.lang.Thread.run(Thread.java:748)
[2017-12-13 19:21:08,007]  WARN - EndpointContext Endpoint : AnonymousEndpoint with address https://10.100.7.44:9773/services/CUSTOMER_INPUT_DataService/ will be marked SUSPENDED as it failed
[2017-12-13 19:21:08,007]  WARN - EndpointContext Suspending endpoint : AnonymousEndpoint with address https://10.100.7.44:9773/services/CUSTOMER_INPUT_DataService/ - current suspend duration is : 30000ms - Next retry after : Wed Dec 13 19:21:38 IST 2017
[2017-12-13 19:21:08,008]  INFO - LogMediator To: /getcardata/10, MessageID: urn:uuid:ceff8fa9-bc8e-4cf5-9272-9ed612aad557, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 101500, ERROR_MESSAGE = Error in Sender, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><p:select_with_key_CUSTOMER_INPUT_operation xmlns:p="https://car.input.wso2.com"><xs:ORDER_ID xmlns:xs="https://car.input.wso2.com"/></p:select_with_key_CUSTOMER_INPUT_operation></soapenv:Body></soapenv:Envelope>
[2017-12-13 19:24:08,079]  WARN - SourceHandler Connection time out after request is read: http-incoming-43 Socket Timeout : 180000 Remote Address : /10.100.7.44:57608

Can you please suggest on overcoming this issue?

Thanks,
Dilusha
--
Best Regards,
Dilusha Alphonso
Software Engineer - Support Team
WSO2

Mobile : <a href="tel:+94%2076%20683%207098" value="+94766837098" target="_blank">+94766837098
http://wso2.com/signature

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev



_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Pubudu Gunatilaka
Committer and PMC Member - Apache Stratos
Senior Software Engineer 
WSO2, Inc.: http://wso2.com
mobile : <a href="tel:%2B94772207163" value="+94772207163" style="font-size:x-small;color:rgb(17,85,204)" target="_blank">+94774078049


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Irham Iqbal
Software Engineer
WSO2


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Exception while invoking the API with GET resource in ESB 5.0.0

Gayan Dhanushka
Hi Dilusha,

Are you using a port offset in DSS ? If you are using a port offset and making a HTTPS call to the DSS make sure that you are using 9443 + offset as the port to invoke the data service.

Regards
Gayan

On Wed, Dec 13, 2017 at 7:29 PM, Irham Iqbal <[hidden email]> wrote:
Hi Dilusha,

Seems like you have a problem with your data service. Make sure it's working by accessing the wsdl from your browser as below.

Thanks,
Iqbal  

On Thu, Dec 14, 2017 at 12:10 AM, Pubudu Gunatilaka <[hidden email]> wrote:
Hi Dilusha,

Based on the stack trace, it looks like you have a mismatch with the protocol and the port. Make sure you have used the correct ports.

Thank you!

On Wed, Dec 13, 2017 at 7:49 PM, Firzhan Naqash <[hidden email]> wrote:
Hi Dilusha,

Can you set the Accept header with your CURL command? 

Regards,
Firzhan


mobile: <a href="tel:%28%2B94%29%2071%205247551" value="+94715247551" style="color:rgb(17,85,204)" target="_blank">(+94) 77 9785674| blog: http://firzhanblogger.blogspot.com/ 

On Wed, Dec 13, 2017 at 7:40 PM, Dilusha Alphonso <[hidden email]> wrote:
Hi All,

I am trying to invoke an API deployed in WSO2ESB 5.0.0 with 'GET' resource. The endpoint of the API in a data service hosted in WSO2 DSS. I encountered an error in the console while invoking the API using cURL command

Below is the error encountered in the console:

[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "GET /getcardata/10 HTTP/1.1[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Host: 10.100.7.44:8280[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "User-Agent: curl/7.52.1[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Accept: */*[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Authorization: Bearer 2ad64c91-2757-3a2d-834b-32ca671e08fe[\r][\n]"
[2017-12-13 19:21:07,891] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "[\r][\n]"
[2017-12-13 19:21:07,997]  WARN - SynapseJsonPath Json Payload is empty.
[2017-12-13 19:21:08,006] ERROR - TargetHandler I/O error: Unrecognized SSL message, plaintext connection?
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.EngineInputRecord.bytesInCompletePacket(EngineInputRecord.java:156)
at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:868)
at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:781)
at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
at org.apache.http.nio.reactor.ssl.SSLIOSession.doUnwrap(SSLIOSession.java:245)
at org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:280)
at org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:410)
at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:119)
at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:159)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:338)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:316)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:277)
at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:105)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:586)
at java.lang.Thread.run(Thread.java:748)
[2017-12-13 19:21:08,007]  WARN - EndpointContext Endpoint : AnonymousEndpoint with address https://10.100.7.44:9773/services/CUSTOMER_INPUT_DataService/ will be marked SUSPENDED as it failed
[2017-12-13 19:21:08,007]  WARN - EndpointContext Suspending endpoint : AnonymousEndpoint with address https://10.100.7.44:9773/services/CUSTOMER_INPUT_DataService/ - current suspend duration is : 30000ms - Next retry after : Wed Dec 13 19:21:38 IST 2017
[2017-12-13 19:21:08,008]  INFO - LogMediator To: /getcardata/10, MessageID: urn:uuid:ceff8fa9-bc8e-4cf5-9272-9ed612aad557, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 101500, ERROR_MESSAGE = Error in Sender, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><p:select_with_key_CUSTOMER_INPUT_operation xmlns:p="https://car.input.wso2.com"><xs:ORDER_ID xmlns:xs="https://car.input.wso2.com"/></p:select_with_key_CUSTOMER_INPUT_operation></soapenv:Body></soapenv:Envelope>
[2017-12-13 19:24:08,079]  WARN - SourceHandler Connection time out after request is read: http-incoming-43 Socket Timeout : 180000 Remote Address : /10.100.7.44:57608

Can you please suggest on overcoming this issue?

Thanks,
Dilusha
--
Best Regards,
Dilusha Alphonso
Software Engineer - Support Team
WSO2

Mobile : <a href="tel:+94%2076%20683%207098" value="+94766837098" target="_blank">+94766837098
http://wso2.com/signature

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev



_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Pubudu Gunatilaka
Committer and PMC Member - Apache Stratos
Senior Software Engineer 
WSO2, Inc.: http://wso2.com
mobile : <a href="tel:%2B94772207163" value="+94772207163" style="font-size:x-small;color:rgb(17,85,204)" target="_blank">+94774078049


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Irham Iqbal
Software Engineer
WSO2


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Gayan Dhanuska
Senior Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile - LK- 071 666 2327
Mobile USA - 612-244-4873


Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Exception while invoking the API with GET resource in ESB 5.0.0

Samitha Chathuranga
Hi Dilusha,

Were you able to fix the issue? What was the exact root cause?

Regards,
Samitha

On Thu, Dec 14, 2017 at 7:51 AM, Gayan Dhanushka <[hidden email]> wrote:
Hi Dilusha,

Are you using a port offset in DSS ? If you are using a port offset and making a HTTPS call to the DSS make sure that you are using 9443 + offset as the port to invoke the data service.

Regards
Gayan

On Wed, Dec 13, 2017 at 7:29 PM, Irham Iqbal <[hidden email]> wrote:
Hi Dilusha,

Seems like you have a problem with your data service. Make sure it's working by accessing the wsdl from your browser as below.

Thanks,
Iqbal  

On Thu, Dec 14, 2017 at 12:10 AM, Pubudu Gunatilaka <[hidden email]> wrote:
Hi Dilusha,

Based on the stack trace, it looks like you have a mismatch with the protocol and the port. Make sure you have used the correct ports.

Thank you!

On Wed, Dec 13, 2017 at 7:49 PM, Firzhan Naqash <[hidden email]> wrote:
Hi Dilusha,

Can you set the Accept header with your CURL command? 

Regards,
Firzhan


mobile: <a href="tel:%28%2B94%29%2071%205247551" value="+94715247551" style="color:rgb(17,85,204)" target="_blank">(+94) 77 9785674| blog: http://firzhanblogger.blogspot.com/ 

On Wed, Dec 13, 2017 at 7:40 PM, Dilusha Alphonso <[hidden email]> wrote:
Hi All,

I am trying to invoke an API deployed in WSO2ESB 5.0.0 with 'GET' resource. The endpoint of the API in a data service hosted in WSO2 DSS. I encountered an error in the console while invoking the API using cURL command

Below is the error encountered in the console:

[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "GET /getcardata/10 HTTP/1.1[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Host: 10.100.7.44:8280[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "User-Agent: curl/7.52.1[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Accept: */*[\r][\n]"
[2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "Authorization: Bearer 2ad64c91-2757-3a2d-834b-32ca671e08fe[\r][\n]"
[2017-12-13 19:21:07,891] DEBUG - wire HTTP-Listener I/O dispatcher-3 >> "[\r][\n]"
[2017-12-13 19:21:07,997]  WARN - SynapseJsonPath Json Payload is empty.
[2017-12-13 19:21:08,006] ERROR - TargetHandler I/O error: Unrecognized SSL message, plaintext connection?
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.EngineInputRecord.bytesInCompletePacket(EngineInputRecord.java:156)
at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:868)
at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:781)
at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
at org.apache.http.nio.reactor.ssl.SSLIOSession.doUnwrap(SSLIOSession.java:245)
at org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:280)
at org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:410)
at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:119)
at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:159)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:338)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:316)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:277)
at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:105)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:586)
at java.lang.Thread.run(Thread.java:748)
[2017-12-13 19:21:08,007]  WARN - EndpointContext Endpoint : AnonymousEndpoint with address https://10.100.7.44:9773/services/CUSTOMER_INPUT_DataService/ will be marked SUSPENDED as it failed
[2017-12-13 19:21:08,007]  WARN - EndpointContext Suspending endpoint : AnonymousEndpoint with address https://10.100.7.44:9773/services/CUSTOMER_INPUT_DataService/ - current suspend duration is : 30000ms - Next retry after : Wed Dec 13 19:21:38 IST 2017
[2017-12-13 19:21:08,008]  INFO - LogMediator To: /getcardata/10, MessageID: urn:uuid:ceff8fa9-bc8e-4cf5-9272-9ed612aad557, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 101500, ERROR_MESSAGE = Error in Sender, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><p:select_with_key_CUSTOMER_INPUT_operation xmlns:p="https://car.input.wso2.com"><xs:ORDER_ID xmlns:xs="https://car.input.wso2.com"/></p:select_with_key_CUSTOMER_INPUT_operation></soapenv:Body></soapenv:Envelope>
[2017-12-13 19:24:08,079]  WARN - SourceHandler Connection time out after request is read: http-incoming-43 Socket Timeout : 180000 Remote Address : /10.100.7.44:57608

Can you please suggest on overcoming this issue?

Thanks,
Dilusha
--
Best Regards,
Dilusha Alphonso
Software Engineer - Support Team
WSO2

Mobile : <a href="tel:+94%2076%20683%207098" value="+94766837098" target="_blank">+94766837098
http://wso2.com/signature

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev



_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Pubudu Gunatilaka
Committer and PMC Member - Apache Stratos
Senior Software Engineer 
WSO2, Inc.: http://wso2.com
mobile : <a href="tel:%2B94772207163" value="+94772207163" style="font-size:x-small;color:rgb(17,85,204)" target="_blank">+94774078049


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Irham Iqbal
Software Engineer
WSO2


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Gayan Dhanuska
Senior Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile - LK- 071 666 2327
Mobile USA - <a href="tel:(612)%20244-4873" value="+16122444873" target="_blank">612-244-4873


Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Samitha Chathuranga
Software Engineer, WSO2 Inc.
lean.enterprise.middleware
Mobile: <a href="tel:%2B94715123761" value="+94715123761" target="_blank">+94715123761

http://wso2.com/signature

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev