| Author | 
		  Message
		 | 
		
		  | praveenmq | 
		  
		    
			  
				 Posted: Tue Jul 17, 2012 11:21 pm    Post subject: ERROR:java.net.SocketException: Socket Closed | 
				     | 
			   
			 
		   | 
		
		
		    Voyager
 
 Joined: 28 Mar 2009 Posts: 96
  
  | 
		  
		    
			  
				Hi All,
 
 
I am testing SSL between Soap ui and Message broker. I have passed the certificate of Message broker to SOAP UI and when i test my application by hitting the request am seeing socket exception. 
 
 
I am not sure why am getting Socket closed exception in soap UI. Please see the logs below, The request fails again and again
 
 
Wed Jul 18 10:07:25 AST 2012:ERROR:java.net.SocketException: Socket Closed
 
   java.net.SocketException: Socket Closed
 
   	at java.net.PlainSocketImpl.setOption(Unknown Source)
 
   	at java.net.Socket.setTcpNoDelay(Unknown Source)
 
   	at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.setTcpNoDelay(Unknown Source)
 
   	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:721)
 
   	at com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(SoapUIMultiThreadedHttpConnectionManager.java:1637)
 
   	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
 
   	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
 
   	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
 
   	at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:202)
 
   	at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
 
   	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
 
   	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
 
   	at java.util.concurrent.FutureTask.run(Unknown Source)
 
   	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
 
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 
   	at java.lang.Thread.run(Unknown Source) _________________ Jack | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Wed Jul 18, 2012 4:21 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				How do you know this is an SSL problem rather a network one? _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | praveenmq | 
		  
		    
			  
				 Posted: Wed Jul 18, 2012 4:23 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Voyager
 
 Joined: 28 Mar 2009 Posts: 96
  
  | 
		  
		    
			  
				
   
	| Vitor wrote: | 
   
  
	| How do you know this is an SSL problem rather a network one? | 
   
 
 
 
Because Telnet worked perfectly fine, So thats why i ruled out network _________________ Jack | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Wed Jul 18, 2012 4:33 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| praveenmq wrote: | 
   
  
	
   
	| Vitor wrote: | 
   
  
	| How do you know this is an SSL problem rather a network one? | 
   
 
 
 
Because Telnet worked perfectly fine, So thats why i ruled out network | 
   
 
 
 
How much Java does telnet use? 
 
 
Does telnet use the same port as a web service request? _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | praveenmq | 
		  
		    
			  
				 Posted: Wed Jul 18, 2012 10:25 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Voyager
 
 Joined: 28 Mar 2009 Posts: 96
  
  | 
		  
		    
			  
				
   
	| Vitor wrote: | 
   
  
	How much Java does telnet use? 
 
 
Does telnet use the same port as a web service request? | 
   
 
 
 
Yeah telnet uses the same port as a web service request.
 
 
I fixed the problem. The problem was due to wrong configuration in sharing the soap ui certificate to broker trustore.
 
I shared it correctly again and am able to see a successful response.
 
 
Thanks for your help _________________ Jack | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Thu Jul 19, 2012 4:45 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| praveenmq wrote: | 
   
  
	| Yeah telnet uses the same port as a web service request. | 
   
 
 
 
From which I assume you to mean that you used the web service port in your telnet.
 
 
Or you're using a fairly non-standard port for your web service. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | praveenmq | 
		  
		    
			  
				 Posted: Thu Jul 19, 2012 4:50 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Voyager
 
 Joined: 28 Mar 2009 Posts: 96
  
  | 
		  
		    
			  
				Yeah i used the webservice port in telnet _________________ Jack | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |