You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Zeyn Saigol <ze...@mail.com> on 2002/05/08 17:49:31 UTC
NullPointerException invoking overloaded service method
Hi,
I've just upgraded to the Beta 2 of Axis, and I'm getting a NullPointerException when invoking *some* versions of an overloaded method exposed by my service (stack trace below).
It works for an (int, int) version, and also for a (String, int) version, but fails with an (int) version - I suspect it's trying to invoke the (int, int) version.
I'm suspicious of the code in RPCElement.deserialize, that is considering Operations as candidates if (operation.getNumInParams() >= numParams)
- surely the number of "in" params must be exactly equal to the number of params supplied in the SOAP body, even if the operation also has some "inout" params?
Can anyone confirm that this is a bug?, or does anyone have any idea what I can do to sort it out?
cheers,
Zeyn
Stack trace from exception:
java.lang.NullPointerException
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:229)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:262)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisitming(SipleChain.java:154)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:121)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:288)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:576)
--
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup