my dog learned polymorphism*
The moose likes Web Services and the fly likes server.userException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "server.userException" Watch "server.userException" New topic
Author

server.userException

Nathan KV
Greenhorn

Joined: Aug 09, 2001
Posts: 25
I have a standalone java program in windows system, which would hit the servelet residing in another windows/AIX box. This is working fine.
But from the axis if i executed the java program to invoke the save servlet which is residing in Windows tomcat and AIX tomcat, it is throwing nullpointer exception. Can anyone of you know the reason.


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.security.SecureRandom.nextBytes(SecureRandom.java:405)
at org.apache.axis.utils.SessionUtils.generateSessionId(SessionUtils.java:62)
at org.apache.axis.SOAPPart.<init>(SOAPPart.java:164)
at org.apache.axis.Message.setup(Message.java:366)
at org.apache.axis.Message.<init>(Message.java:243)
at org.apache.axis.client.Call.invoke(Call.java:2406)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at Test.invoke(Test.java:108)

{http://xml.apache.org/axis/}hostname:testhost

java.lang.NullPointerException
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.client.Call.invoke(Call.java:1820)
at Test.invoke(Test.java:108)
Caused by: java.lang.NullPointerException
at java.security.SecureRandom.nextBytes(SecureRandom.java:405)
at org.apache.axis.utils.SessionUtils.generateSessionId(SessionUtils.java:62)
at org.apache.axis.SOAPPart.<init>(SOAPPart.java:164)
at org.apache.axis.Message.setup(Message.java:366)
at org.apache.axis.Message.<init>(Message.java:243)
at org.apache.axis.client.Call.invoke(Call.java:2406)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
... 3 more
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41112
    
  45
Is the parameter you pass to nextBytes null by any chance?


Ping & DNS - my free Android networking tools app
Nathan KV
Greenhorn

Joined: Aug 09, 2001
Posts: 25
No. Because it is working in Windows system. I am facing this problem only in AIX and solaris.

My doubt is, is there any remote call services which is running in windows is not running in AIX/Solaris.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: server.userException
 
Similar Threads
Install Axis on iPlanet 6.0
axis and Server.userException
Help! I caught NullPointException when call axis web service
ClassCastException: AttachmentsImpl
Using SOAP fault messages