Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Illegal Argument exception while consuming WS using Axis generated Stubs (using WSDL2Java task)  RSS feed

Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am consuming WebService implemented using .Net framework, using stubs generated from WSDL using Axis WSDL2Java task.
while consuming Axis throwing java.lang.NullPointer exception, I downloaded axis code the debug through it noticed it is
java.lang.IllegalArgument exception from org.apache.axis.encoding.ser.BeanPropertyTarget class in set(Object value)
at line 77 pd.set(object, index, value),

Intereseted point here same WebService are deployed in 3 servers, if we ran our client against one server it is working fine
ended up with succesful result,but from other two servers encountering above exception explained in previous paragraph.And also
we wath the HttpResponse from TCP/IP monitor all 3 server sending same HTTP response including SOAP Enovelpe, what I noticed while
debugging Axis in org.apache.axis.encoding.DeserializerImpl class method valueComplete () target size is zero for successful case,
3 for failure case below is the axis code snippet

public void valueComplete() throws SAXException
if (componentsReady()) {
if (targets != null) {
for (int i = 0; i < targets.size(); i++) {
Target target = (Target) targets.get(i);
if (debugEnabled) {
"" + value, "" + target));
// Don't need targets any more, so clear them

Below are the exception in log in failure case

at org.apache.axis.encoding.ser.BeanPropertyTarget.set(
at org.apache.axis.encoding.DeserializerImpl.valueComplete(
at org.apache.axis.encoding.DeserializerImpl.endElement(
at org.apache.axis.encoding.DeserializationContext.endElement(
at org.apache.axis.message.SAX2EventRecorder.replay(
at org.apache.axis.message.MessageElement.publishToHandler(
at org.apache.axis.message.RPCElement.deserialize(
at org.apache.axis.message.RPCElement.getParams(
at org.apache.axis.client.Call.invoke(
at org.apache.axis.client.Call.invoke(
at org.apache.axis.client.Call.invoke(

<XXXXResponse isDuplicate="false" isMemberValid="true" xmlns="">
<successfulSubmission isPending="true" authorizationId="774" pendingReason="Timeout" status=" success">
<details id="774" externalId="">
<service id="283" externalId="" xmlns="">
<identification id="292" externalId="" status="2" statusVerbose="Pending Approval" />

Any help would be appreciated

Thanks for your support
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!