You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "William Ferguson (JIRA)" <ji...@apache.org> on 2006/08/02 03:37:13 UTC
[jira] Created: (AXIS2-958) NullPointerException serializing an
array of Complex type
NullPointerException serializing an array of Complex type
---------------------------------------------------------
Key: AXIS2-958
URL: http://issues.apache.org/jira/browse/AXIS2-958
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Affects Versions: 1.0
Reporter: William Ferguson
Attachments: ArrayService-Source.jar
I have a service that accept an array of Complex type as input and returns the number of elements in the array.
The service + services. xml is deployed and the WSDL is retrieved from the AxisServlet. (source + WSDL attached).
I generate the stubs and ADB classes using :
<target name="generate.client" depends="init">
<exec executable="${axis2.wsdl2java.home}/bin/WSDL2Java.bat">
<arg line="-uri ${wsdl.uri}"/> <!-- uri from which to get WSDL -->
<arg line="-o ${build}"/> <!-- Output directory in which to generate files -->
<arg line="-p ${generated.package.name}"/> <!-- package in which to generate classes -->
<arg line="-pn ${port.name}"/> <!-- Specify the port to hit -->
<arg value="-s"/> <!-- Synchronous style only -->
<!--<arg value="-t"/>--> <!-- Generate a TestCase -->
<arg value="-u"/> <!-- Unpacks the data-Binding classes from the Stub -->
</exec>
</target>
I then have some TestCases that exercises the method.
If 0 elements are specified it serializes OK but causes an AxisFault (I'll raise this as a separate issue)
If 1 element then it succeeds OK.
If 2 or more elements then it fails with a NullPointerException attempting to seriallize the Array.
--
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
[jira] Updated: (AXIS2-958) NullPointerException serializing an
array of Complex type
Posted by "William Ferguson (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-958?page=all ]
William Ferguson updated AXIS2-958:
-----------------------------------
Attachment: ArrayService.wsdl
The WSDL for the service (generated by the AxisServlet).
> NullPointerException serializing an array of Complex type
> ---------------------------------------------------------
>
> Key: AXIS2-958
> URL: http://issues.apache.org/jira/browse/AXIS2-958
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.0
> Reporter: William Ferguson
> Attachments: ArrayService-Source.jar, ArrayService.wsdl, TEST-au.com.hubbub.arrayws.ArrayService2Test.txt
>
>
> I have a service that accept an array of Complex type as input and returns the number of elements in the array.
> The service + services. xml is deployed and the WSDL is retrieved from the AxisServlet. (source + WSDL attached).
> I generate the stubs and ADB classes using :
> <target name="generate.client" depends="init">
> <exec executable="${axis2.wsdl2java.home}/bin/WSDL2Java.bat">
> <arg line="-uri ${wsdl.uri}"/> <!-- uri from which to get WSDL -->
> <arg line="-o ${build}"/> <!-- Output directory in which to generate files -->
> <arg line="-p ${generated.package.name}"/> <!-- package in which to generate classes -->
> <arg line="-pn ${port.name}"/> <!-- Specify the port to hit -->
> <arg value="-s"/> <!-- Synchronous style only -->
> <!--<arg value="-t"/>--> <!-- Generate a TestCase -->
> <arg value="-u"/> <!-- Unpacks the data-Binding classes from the Stub -->
> </exec>
> </target>
> I then have some TestCases that exercises the method.
> If 0 elements are specified it serializes OK but causes an AxisFault (I'll raise this as a separate issue)
> If 1 element then it succeeds OK.
> If 2 or more elements then it fails with a NullPointerException attempting to seriallize the Array.
--
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
[jira] Commented: (AXIS2-958) NullPointerException serializing an
array of Complex type
Posted by "William Ferguson (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-958?page=comments#action_12428822 ]
William Ferguson commented on AXIS2-958:
----------------------------------------
Can someone please close this issue. It was due to an error in the testcase.
> NullPointerException serializing an array of Complex type
> ---------------------------------------------------------
>
> Key: AXIS2-958
> URL: http://issues.apache.org/jira/browse/AXIS2-958
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.0
> Reporter: William Ferguson
> Attachments: ArrayService-client-source.jar, ArrayService-Source.jar, ArrayService.wsdl, TEST-au.com.hubbub.arrayws.ArrayService2Test.txt
>
>
> I have a service that accept an array of Complex type as input and returns the number of elements in the array.
> The service + services. xml is deployed and the WSDL is retrieved from the AxisServlet. (source + WSDL attached).
> I generate the stubs and ADB classes using :
> <target name="generate.client" depends="init">
> <exec executable="${axis2.wsdl2java.home}/bin/WSDL2Java.bat">
> <arg line="-uri ${wsdl.uri}"/> <!-- uri from which to get WSDL -->
> <arg line="-o ${build}"/> <!-- Output directory in which to generate files -->
> <arg line="-p ${generated.package.name}"/> <!-- package in which to generate classes -->
> <arg line="-pn ${port.name}"/> <!-- Specify the port to hit -->
> <arg value="-s"/> <!-- Synchronous style only -->
> <!--<arg value="-t"/>--> <!-- Generate a TestCase -->
> <arg value="-u"/> <!-- Unpacks the data-Binding classes from the Stub -->
> </exec>
> </target>
> I then have some TestCases that exercises the method.
> If 0 elements are specified it serializes OK but causes an AxisFault (I'll raise this as a separate issue)
> If 1 element then it succeeds OK.
> If 2 or more elements then it fails with a NullPointerException attempting to seriallize the Array.
--
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
[jira] Updated: (AXIS2-958) NullPointerException serializing an
array of Complex type
Posted by "William Ferguson (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-958?page=all ]
William Ferguson updated AXIS2-958:
-----------------------------------
Attachment: TEST-au.com.hubbub.arrayws.ArrayService2Test.txt
Test outpput showing the stacktrace of the NPE.
> NullPointerException serializing an array of Complex type
> ---------------------------------------------------------
>
> Key: AXIS2-958
> URL: http://issues.apache.org/jira/browse/AXIS2-958
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.0
> Reporter: William Ferguson
> Attachments: ArrayService-Source.jar, ArrayService.wsdl, TEST-au.com.hubbub.arrayws.ArrayService2Test.txt
>
>
> I have a service that accept an array of Complex type as input and returns the number of elements in the array.
> The service + services. xml is deployed and the WSDL is retrieved from the AxisServlet. (source + WSDL attached).
> I generate the stubs and ADB classes using :
> <target name="generate.client" depends="init">
> <exec executable="${axis2.wsdl2java.home}/bin/WSDL2Java.bat">
> <arg line="-uri ${wsdl.uri}"/> <!-- uri from which to get WSDL -->
> <arg line="-o ${build}"/> <!-- Output directory in which to generate files -->
> <arg line="-p ${generated.package.name}"/> <!-- package in which to generate classes -->
> <arg line="-pn ${port.name}"/> <!-- Specify the port to hit -->
> <arg value="-s"/> <!-- Synchronous style only -->
> <!--<arg value="-t"/>--> <!-- Generate a TestCase -->
> <arg value="-u"/> <!-- Unpacks the data-Binding classes from the Stub -->
> </exec>
> </target>
> I then have some TestCases that exercises the method.
> If 0 elements are specified it serializes OK but causes an AxisFault (I'll raise this as a separate issue)
> If 1 element then it succeeds OK.
> If 2 or more elements then it fails with a NullPointerException attempting to seriallize the Array.
--
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
[jira] Commented: (AXIS2-958) NullPointerException serializing an
array of Complex type
Posted by "William Ferguson (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-958?page=comments#action_12425111 ]
William Ferguson commented on AXIS2-958:
----------------------------------------
Argh, apologies all.
My TestCase is to blame. The 2nd complex type had not been initialized.
> NullPointerException serializing an array of Complex type
> ---------------------------------------------------------
>
> Key: AXIS2-958
> URL: http://issues.apache.org/jira/browse/AXIS2-958
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.0
> Reporter: William Ferguson
> Attachments: ArrayService-client-source.jar, ArrayService-Source.jar, ArrayService.wsdl, TEST-au.com.hubbub.arrayws.ArrayService2Test.txt
>
>
> I have a service that accept an array of Complex type as input and returns the number of elements in the array.
> The service + services. xml is deployed and the WSDL is retrieved from the AxisServlet. (source + WSDL attached).
> I generate the stubs and ADB classes using :
> <target name="generate.client" depends="init">
> <exec executable="${axis2.wsdl2java.home}/bin/WSDL2Java.bat">
> <arg line="-uri ${wsdl.uri}"/> <!-- uri from which to get WSDL -->
> <arg line="-o ${build}"/> <!-- Output directory in which to generate files -->
> <arg line="-p ${generated.package.name}"/> <!-- package in which to generate classes -->
> <arg line="-pn ${port.name}"/> <!-- Specify the port to hit -->
> <arg value="-s"/> <!-- Synchronous style only -->
> <!--<arg value="-t"/>--> <!-- Generate a TestCase -->
> <arg value="-u"/> <!-- Unpacks the data-Binding classes from the Stub -->
> </exec>
> </target>
> I then have some TestCases that exercises the method.
> If 0 elements are specified it serializes OK but causes an AxisFault (I'll raise this as a separate issue)
> If 1 element then it succeeds OK.
> If 2 or more elements then it fails with a NullPointerException attempting to seriallize the Array.
--
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
[jira] Updated: (AXIS2-958) NullPointerException serializing an
array of Complex type
Posted by "William Ferguson (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-958?page=all ]
William Ferguson updated AXIS2-958:
-----------------------------------
Attachment: ArrayService-client-source.jar
TestCase + stub + ADB classes.
> NullPointerException serializing an array of Complex type
> ---------------------------------------------------------
>
> Key: AXIS2-958
> URL: http://issues.apache.org/jira/browse/AXIS2-958
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.0
> Reporter: William Ferguson
> Attachments: ArrayService-client-source.jar, ArrayService-Source.jar, ArrayService.wsdl, TEST-au.com.hubbub.arrayws.ArrayService2Test.txt
>
>
> I have a service that accept an array of Complex type as input and returns the number of elements in the array.
> The service + services. xml is deployed and the WSDL is retrieved from the AxisServlet. (source + WSDL attached).
> I generate the stubs and ADB classes using :
> <target name="generate.client" depends="init">
> <exec executable="${axis2.wsdl2java.home}/bin/WSDL2Java.bat">
> <arg line="-uri ${wsdl.uri}"/> <!-- uri from which to get WSDL -->
> <arg line="-o ${build}"/> <!-- Output directory in which to generate files -->
> <arg line="-p ${generated.package.name}"/> <!-- package in which to generate classes -->
> <arg line="-pn ${port.name}"/> <!-- Specify the port to hit -->
> <arg value="-s"/> <!-- Synchronous style only -->
> <!--<arg value="-t"/>--> <!-- Generate a TestCase -->
> <arg value="-u"/> <!-- Unpacks the data-Binding classes from the Stub -->
> </exec>
> </target>
> I then have some TestCases that exercises the method.
> If 0 elements are specified it serializes OK but causes an AxisFault (I'll raise this as a separate issue)
> If 1 element then it succeeds OK.
> If 2 or more elements then it fails with a NullPointerException attempting to seriallize the Array.
--
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
[jira] Updated: (AXIS2-958) NullPointerException serializing an
array of Complex type
Posted by "William Ferguson (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-958?page=all ]
William Ferguson updated AXIS2-958:
-----------------------------------
Attachment: ArrayService-Source.jar
The source for the service.
> NullPointerException serializing an array of Complex type
> ---------------------------------------------------------
>
> Key: AXIS2-958
> URL: http://issues.apache.org/jira/browse/AXIS2-958
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.0
> Reporter: William Ferguson
> Attachments: ArrayService-Source.jar
>
>
> I have a service that accept an array of Complex type as input and returns the number of elements in the array.
> The service + services. xml is deployed and the WSDL is retrieved from the AxisServlet. (source + WSDL attached).
> I generate the stubs and ADB classes using :
> <target name="generate.client" depends="init">
> <exec executable="${axis2.wsdl2java.home}/bin/WSDL2Java.bat">
> <arg line="-uri ${wsdl.uri}"/> <!-- uri from which to get WSDL -->
> <arg line="-o ${build}"/> <!-- Output directory in which to generate files -->
> <arg line="-p ${generated.package.name}"/> <!-- package in which to generate classes -->
> <arg line="-pn ${port.name}"/> <!-- Specify the port to hit -->
> <arg value="-s"/> <!-- Synchronous style only -->
> <!--<arg value="-t"/>--> <!-- Generate a TestCase -->
> <arg value="-u"/> <!-- Unpacks the data-Binding classes from the Stub -->
> </exec>
> </target>
> I then have some TestCases that exercises the method.
> If 0 elements are specified it serializes OK but causes an AxisFault (I'll raise this as a separate issue)
> If 1 element then it succeeds OK.
> If 2 or more elements then it fails with a NullPointerException attempting to seriallize the Array.
--
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
[jira] Resolved: (AXIS2-958) NullPointerException serializing an
array of Complex type
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-958?page=all ]
Davanum Srinivas resolved AXIS2-958.
------------------------------------
Resolution: Invalid
closing as per reporter.
-- dims
> NullPointerException serializing an array of Complex type
> ---------------------------------------------------------
>
> Key: AXIS2-958
> URL: http://issues.apache.org/jira/browse/AXIS2-958
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.0
> Reporter: William Ferguson
> Attachments: ArrayService-client-source.jar, ArrayService-Source.jar, ArrayService.wsdl, TEST-au.com.hubbub.arrayws.ArrayService2Test.txt
>
>
> I have a service that accept an array of Complex type as input and returns the number of elements in the array.
> The service + services. xml is deployed and the WSDL is retrieved from the AxisServlet. (source + WSDL attached).
> I generate the stubs and ADB classes using :
> <target name="generate.client" depends="init">
> <exec executable="${axis2.wsdl2java.home}/bin/WSDL2Java.bat">
> <arg line="-uri ${wsdl.uri}"/> <!-- uri from which to get WSDL -->
> <arg line="-o ${build}"/> <!-- Output directory in which to generate files -->
> <arg line="-p ${generated.package.name}"/> <!-- package in which to generate classes -->
> <arg line="-pn ${port.name}"/> <!-- Specify the port to hit -->
> <arg value="-s"/> <!-- Synchronous style only -->
> <!--<arg value="-t"/>--> <!-- Generate a TestCase -->
> <arg value="-u"/> <!-- Unpacks the data-Binding classes from the Stub -->
> </exec>
> </target>
> I then have some TestCases that exercises the method.
> If 0 elements are specified it serializes OK but causes an AxisFault (I'll raise this as a separate issue)
> If 1 element then it succeeds OK.
> If 2 or more elements then it fails with a NullPointerException attempting to seriallize the Array.
--
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