Forum Discussion
Keith_Motschenb
Nimbostratus
Feb 13, 2006Receiving a null pointer back from the BigIP on Java program
I am running Java 1.5 on a BigIP ver 9.0.5 using SDK 9.0 and keep getting a null pointer back from the BigIP. I can see in the logs on the BigIP where it is executing and showing no System Info (blanks).
Here is my dump from my IDE.
Did I set something up wrong? I feel the cold chill of success just around the corner.
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:396)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:395)
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:261)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:582)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:447)
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:687)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:134)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:183)
at org.apache.axis.client.Call.invokeEngine(Call.java:2682)
at org.apache.axis.client.Call.invoke(Call.java:2665)
at org.apache.axis.client.Call.invoke(Call.java:2355)
at org.apache.axis.client.Call.invoke(Call.java:2278)
at org.apache.axis.client.Call.invoke(Call.java:1772)
at iControl.SystemSystemInfoBindingStub.get_system_information(SystemSystemInfoBindingStub.java:662)
at System.SystemInfo.getSystemInfo(SystemInfo.java:99)
at System.SystemInfo.main(SystemInfo.java:201)
java.lang.NullPointerException
at org.apache.axis.AxisFault.makeFault(AxisFault.java:137)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:137)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:183)
at org.apache.axis.client.Call.invokeEngine(Call.java:2682)
at org.apache.axis.client.Call.invoke(Call.java:2665)
at org.apache.axis.client.Call.invoke(Call.java:2355)
at org.apache.axis.client.Call.invoke(Call.java:2278)
at org.apache.axis.client.Call.invoke(Call.java:1772)
at iControl.SystemSystemInfoBindingStub.get_system_information(SystemSystemInfoBindingStub.java:662)
at System.SystemInfo.getSystemInfo(SystemInfo.java:99)
at System.SystemInfo.main(SystemInfo.java:201)
Caused by: java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:396)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:395)
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:261)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:582)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:447)
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:687)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:134)
... 12 more
- This isn't the BIG-IP returning a null pointer exception, it's apache axis causing one. But, that's not to say it's not content in the response that's causing it. There really is no way of knowing without some knowledge of the code that's calling this. Although, the SystemInfo::get_system_information() method takes no parameters so odds are it's not in the client's request.
- Keith_Motschenb
Nimbostratus
Wow, good turn around. - Try downloading the newer SDK. In this version we introduced the local trust provider overrides. Otherwise, with the 9.0 SDK, you must have the server ssl certificate in your local truststore since our server certificates are self-signed. In 9.2.2 we included some code that bypassed this security check allowing communications without configuring each client.
- Keith_Motschenb
Nimbostratus
I took the code for the ssl certificate program from the 9.2 sdk and used it in the 9.0 sdk. This worked fine, as far as security was concerned. Still got a null pointer back. - nick_chen_66997
Nimbostratus
the problem is that the version of jre and axis do not match
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects