Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

server.userException

 
Nathan KV
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the parameter you pass to nextBytes null by any chance?
 
Nathan KV
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic