I'm seeing a spurious CannotConnect error from the AS5.0.0.CR2 remoting code, 
specifically from method HTTPClientInvoker.useHttpURLConnection. The exception  
is actually caused by a NPE thrown after dispatching the message. The problem 
occurs in a JaxWS-based test program which sends a one way message which it 
expects the server to barf on. The server duly throws a wobbly (ok, it throws a 
WebServiceException) and the http call gets a 500 code.

At line 330 useHttpURLConnection fetches an InputStream from the connection. 
This turns out to be null since this is a one way message. The null pointer is 
passed to readResponse at line 356 and the resulting NPE is caught at line 385.

This problem does not normally manifest because it is masked as soon as a 
request-reply message is dispatched using the same connection. The 
request-reply exchange appears to supply a value the return data InputStream 
and so subsequent one way exchanges don't suffer the NPE.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4184536#4184536

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4184536
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to