Why do we get NullPointerException in SOAP fault when calling a Service Assembly with SOAP over Http, deployed on remote node.
book
Article ID: KB0087933
calendar_today
Updated On:
TIBCO ActiveMatrix Service Grid
|
-
|
Not Applicable
|
-
|
Description
Resolution:
Description:
NullPointerException (NPE) when accessing a soap over http service, deployed remotely, from machines other then that remote machine.
Please see attached error capture when calling service from SOAPUI.
The service is called by specifying the machine name.
Environment:
ActiveMatrix Service Grid, SOAP over Http service in the service assembly(SA), remote node
Symptoms:
Invocation of service from remote machine brings up the attached error.
Cause:
The service is bound to loopback address 127.0.0.1 and hence does not listen on the machine IP.
When we are sending a request by specifying machine name in the request, it gets resolved to machine IP.
And since there is no listener on that socket, NPE is thrown.
"netstat -an" output will show the socket where there is a listener.
Resolution:
Make host as Substitution Variable for the http shared resource.
Before deployment, change localhost as hostname to
a) machine name
b) machine IP
c) 0.0.0.0 (this will bind it to all available interfaces)
Issue/Introduction
Why do we get NullPointerException in SOAP fault when calling a Service Assembly with SOAP over Http, deployed on remote node.
Attachments
Why do we get NullPointerException in SOAP fault when calling a Service Assembly with SOAP over Http, deployed on remote node.
get_app
Feedback
thumb_up
Yes
thumb_down
No