axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikhil Thaker (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-1088) Proxy failing with IndexOutOfBounds or NPE when no @webParam or SEI method with no signature.
Date Tue, 29 Aug 2006 00:14:22 GMT
Proxy failing with IndexOutOfBounds or NPE when no @webParam or SEI method with no signature.
---------------------------------------------------------------------------------------------

                 Key: AXIS2-1088
                 URL: http://issues.apache.org/jira/browse/AXIS2-1088
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: jaxws
            Reporter: Nikhil Thaker


There where two separate issues found on Proxy,
1) When I do an invoke against an SEI that is missing @WebParam annotation I get IndexOutofBoundsException.
The spec does not require that @WebParam annotation be present on a parameter. Here's the
stack trace for this issue:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.RangeCheck(ArrayList.java:572)
	at java.util.ArrayList.get(ArrayList.java:347)
	at org.apache.axis2.jaxws.client.proxy.DocLitProxyHandler.getParamValues(DocLitProxyHandler.java:241)
	at org.apache.axis2.jaxws.client.proxy.DocLitProxyHandler.createDocLitWrappedRequest(DocLitProxyHandler.java:107)
	at org.apache.axis2.jaxws.client.proxy.DocLitProxyHandler.createRequest(DocLitProxyHandler.java:71)
	at org.apache.axis2.jaxws.client.proxy.BaseProxyHandler.InvokeSEIMethod(BaseProxyHandler.java:138)
	at org.apache.axis2.jaxws.client.proxy.BaseProxyHandler.invoke(BaseProxyHandler.java:121)
	at $Proxy6.twoWayHolder(Unknown Source)
	at jaxws.proxy.wsfvt.test.DocLitWrappedTest.testNullHolder(DocLitWrappedTest.java:151)

2) I get a null pointer exception when the SEI operation has an empty signature. This happens
in oneWay case and twoway with an empty request and response wrappers.
Here's the stack trace for this issue:
java.lang.NullPointerException
	at org.apache.axis2.jaxws.client.proxy.DocLitProxyHandler.getParamValues(DocLitProxyHandler.java:234)
	at org.apache.axis2.jaxws.client.proxy.DocLitProxyHandler.createDocLitWrappedRequest(DocLitProxyHandler.java:107)
	at org.apache.axis2.jaxws.client.proxy.DocLitProxyHandler.createRequest(DocLitProxyHandler.java:71)
	at org.apache.axis2.jaxws.client.proxy.BaseProxyHandler.InvokeSEIMethod(BaseProxyHandler.java:138)
	at org.apache.axis2.jaxws.client.proxy.BaseProxyHandler.invoke(BaseProxyHandler.java:121)
	at $Proxy6.oneWayVoid(Unknown Source)
	at jaxws.proxy.wsfvt.test.DocLitWrappedTest.testOneWayEmpty(DocLitWrappedTest.java:102)

I will attach a patch for both this problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message