ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWebSphere Message Broker Supportjava.net.SocketTimeoutException: Read timed out

Post new topicReply to topic
java.net.SocketTimeoutException: Read timed out View previous topic :: View next topic
Author Message
binayak.nanda
PostPosted: Fri Jan 06, 2017 4:11 am Post subject: java.net.SocketTimeoutException: Read timed out Reply with quote

Novice

Joined: 29 Oct 2014
Posts: 16

Hi Experts ,

I am calling a backend webservice from wmb 7 using HTTPRequest node .
My service URL is correct and can able to get response in SOPAUI in 10.5 seconds , while calling same webservice using same URL i am getting below error .

<RecoverableException>
Code:
<File>/build/S700_P/src/WebServices/WSLibrary/ImbWSRequestNode.cpp</File>
   <Line>1173</Line>
   <Function>ImbWSRequestNode::evaluate</Function>
   <Type>ComIbmWSRequestNode</Type>
   <Name>com/barclays/tcvm/RBB_BEM_RetrieveIndividualCustRelationshipList_MDM_MF#FCMComposite_1_5.com/barclays/tcvm/TCVM_InvokeWebService_SF#FCMComposite_1_4</Name>
   <Label>com.barclays.tcvm.RBB_BEM_RetrieveIndividualCustRelationshipList_MDM_MF.GetAllPartyRelationships.HTTP Request</Label>
   <Catalog>BIPmsgs</Catalog>
   <Severity>3</Severity>
   <Number>2230</Number>
   <Text>Caught exception and rethrowing</Text>
   <RecoverableException>
      <File>/build/S700_P/src/WebServices/WSLibrary/ImbWSRequestNode.cpp</File>
      <Line>1087</Line>
      <Function>ImbWSRequestNode::evaluate</Function>
      <Type/>
      <Name/>
      <Label/>
      <Catalog>BIPmsgs</Catalog>
      <Severity>3</Severity>
      <Number>3162</Number>
      <Text>WebService Request Exception</Text>
      <Insert>
         <Type>12</Type>
         <Text>436f6e74656e742d4c656e6774683a203738310d0a436f6e74656e742d547970653a20746578742f786d6c3b20636861727365743d7574662d38
0d0a486f73743a20796c74742e776c6f61642e626172636c6179732e636f2e756b3a36303039310d0a534f4150416374696f6e3a2022220d0a436f6e6e65
6374696f6e3a206b6565702d616c6976650d0a0d0a</Text>
      </Insert>
      <Insert>
         <Type>12</Type>
         <Text>3c4e53313a456e76656c6f706520786d6c6e733a4e53313d22687474
703a2f2f736368656d61732e786d6c736f61702e6f72672f736f61702f656e76656c6f70652f223e3c4e53313a426f64793e3c4e53323a476574416c6c5061
72746965734279506172747952656c6174696f6e7368697020786d6c6e733a4e53323d22687474703a2f2f7777772e69626d2e636f6d2f786d6c6e732f70
726f642f7765627370686572652f7763632f70617274792f706f7274223e3c636f6e74726f6c3e3c7265717565737449643e323031373031303630373530
33383836323c2f7265717565737449643e3c7265717565737465724e616d653e4532303030333130373c2f7265717565737465724e616d653e3c726571
7565737465724c616e67756167653e3130303c2f7265717565737465724c616e67756167653e3c70726f7065727479206e616d653d22636c69656e7453
797374656d4e616d65223e47435041423c2f70726f70657274793e3c70726f7065727479206e616d653d22726571756573744f726967696e223e34353c2
f70726f70657274793e3c70726f7065727479206e616d653d22636c69656e7
45472616e73616374696f6e4e616d65223e5265747269657665496e646976696475616c4375737452656c6174696f6e736869704c6973743c2f70726f70
657274793e3c70726f7065727479206e616d653d227265717565737456657273696f6e223e322e303c2f70726f70657274793e3c70726f7065727479206
e616d653d2265787465726e616c436f7272656c6174696f6e4964223e4142434355453230303033313037313438333539383237303236343c2f70726f7
0657274793e3c2f636f6e74726f6c3e3c706172747949643e373632313435323439363035393936313c2f706172747949643e3c66696c7465723e414c4c
3c2f66696c7465723e3c696e71756972794c6576656c3e3133393c2f696e71756972794c6576656c3e3c2f4e53323a476574416c6c506172746965734279
506172747952656c6174696f6e736869703e3c2f4e53313a426f64793e3c2f4e53313a456e76656c6f70653e</Text>
      </Insert>
      <Insert>
         <Type>5</Type>
         <Text/>
      </Insert>
      <Insert>
         <Type>5</Type>
         <Text/>
      </Insert>
      <Insert>
         <Type>5</Type>
         <Text>POST /URL suffixes HTTP/1.1</Text>
      </Insert>
      <RecoverableException>
         <File>/build/S700_P/src/WebServices/WSLibrary/ImbWSRequest.cpp</File>
         <Line>754</Line>
         <Function>ImbWSRequest::makeWSRequest</Function>
         <Type/>
         <Name/>
         <Label/>
         <Catalog>BIPmsgs</Catalog>
         <Severity>3</Severity>
         <Number>3152</Number>
         <Text>A Web Service request has detected a SOCKET error whilst invoking a web service located at host &amp;1, on port &amp;2, on path &amp;3.</Text>
         <Insert>
            <Type>5</Type>
            <Text>host name</Text>
         </Insert>
         <Insert>
            <Type>2</Type>
            <Text>portno</Text>
         </Insert>
         <Insert>
            <Type>5</Type>
            <Text>Suffic URL</Text>
         </Insert>
         <SocketTimeoutException>
            <File>/build/S700_P/src/WebServices/WSLibrary/ImbSocket.cpp</File>
            <Line>992</Line>
            <Function>ImbSocketJNIManager::handleGeneralJavaException</Function>
            <Type/>
            <Name/>
            <Label/>
            <Catalog>BIPmsgs</Catalog>
            <Severity>3</Severity>
            <Number>3166</Number>
            <Text>A timeout error occurred whilst performing an SSL socket operation</Text>
            <Insert>
               <Type>5</Type>
               <Text>read</Text>
            </Insert>
            <Insert>
               <Type>2</Type>
               <Text>9962</Text>
            </Insert>
            <Insert>
               <Type>5</Type>
               <Text>java.net.SocketTimeoutException: Read timed out</Text>
            </Insert>
         </SocketTimeoutException>
      </RecoverableException>
   </RecoverableException>
</RecoverableException>



I observed in logs HTTPRequest node is getting read timed out in 10 seconds .
I contacted backend team and tehir saying their timeout for the service is 30 seconds and our time out in broker is 120 seconds .

Any help will be appricitiated .

Thanks in Adnvance .
Back to top
View user's profile Send private message
nelson
PostPosted: Sun Jan 08, 2017 7:10 pm Post subject: Reply with quote

Partisan

Joined: 02 Oct 2012
Posts: 313

Does telnet to that host/port work from the broker server?
Back to top
View user's profile Send private message
binayak.nanda
PostPosted: Sun Jan 08, 2017 10:42 pm Post subject: Reply with quote

Novice

Joined: 29 Oct 2014
Posts: 16

Yes , telnet is working fine .
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jan 09, 2017 5:15 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17386

Can you telnet from the machine running broker?

Can you get the back end team to provide you with / or at least examine themselves, the logs they have at the same time?
_________________
Read, Think, Try, Repeat
Back to top
View user's profile Send private message
vickas
PostPosted: Tue Aug 15, 2017 11:23 pm Post subject: Reply with quote

Voyager

Joined: 18 Aug 2013
Posts: 93

[/quote]Can you telnet from the machine running broker? "
Quote:

hi jeff , i get a similar error saying
Code:
A timeout error occurred whilst performing an SSL socket operation read 29315 java.net.SocketTimeoutException: Read timed out


How do we have to understand if we are able to retrieve the wsdl file using the same flow ( using GET method ) but getting the above error for the POST method ?
we notice a proper "200" response from the flow when we fetch the wsdl definition from the same flow. from this , can we conclude that the SSL configuration implemented is correct & working ?

what else we need to look into to resolve java.net.SocketTimeoutException: Read timed out ??
Back to top
View user's profile Send private message
vickas
PostPosted: Tue Aug 15, 2017 11:29 pm Post subject: Reply with quote

Voyager

Joined: 18 Aug 2013
Posts: 93

nelson wrote:
Does telnet to that host/port work from the broker server?

hi Nelson , good day !
here in my case , telnet works fine .
I get a proper response from the SOAP UI on the same server .
What could be the reason for the
"A timeout error occurred whilst performing an SSL socket operation read 29315 java.net.SocketTimeoutException: Read timed out" exception ?

what does that mean if we are able to fetch the wsdl definition from the same flow but encountering an exception while calling an operation ?
can we conclude that the SSL configuration made is fine and focus on the data being sent ?
pls , your inputs are valuable .
Back to top
View user's profile Send private message
vickas
PostPosted: Tue Aug 15, 2017 11:31 pm Post subject: Reply with quote

Voyager

Joined: 18 Aug 2013
Posts: 93

binayak.nanda wrote:
Yes , telnet is working fine .


hie nanda , can you pls tel me how could you resolve the issue ?
why do we get read timeout exception ?
pls reply .
Back to top
View user's profile Send private message
binayak.nanda
PostPosted: Wed Aug 16, 2017 12:06 am Post subject: Reply with quote

Novice

Joined: 29 Oct 2014
Posts: 16

Hi Vickas ,

It was actually test data issue . For some particular test data we were getting time out exception . And my question was also partially wrong as my http request node was having time out of 10 seconds for that service , it was not 120 as it was overriden by property file . The back end system was sending response successfully but my application could not complete reading the response for particular test data within 10 seconds as the response was a huge xml . Hence we were getting read time out exception .
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker Supportjava.net.SocketTimeoutException: Read timed out
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.