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 "Sagara Gunathunga (Created) (JIRA)" <ji...@apache.org> on 2012/04/19 14:54:42 UTC
[jira] [Created] (AXIS2-5293) Axis2 should not generate
minOccurs="0" for java primitive types.
Axis2 should not generate minOccurs="0" for java primitive types.
-------------------------------------------------------------------
Key: AXIS2-5293
URL: https://issues.apache.org/jira/browse/AXIS2-5293
Project: Axis2
Issue Type: Bug
Components: kernel
Affects Versions: 1.6.1, 1.5.6
Reporter: Sagara Gunathunga
Assignee: Sagara Gunathunga
Priority: Critical
Axis2 POJO support generate minOccurs="0" elements for java primitive parameters that will allows to omit relevant XML element from request messages. During the unmarshallings process null value is used to represent values of those omitted request elements. Finally this will result into IllegalArgumentException when it try to pass null value for primitive parameters through Java reflection. As a solution Axis2 should not generate minOccurs="0" for primitive parameters.
java.lang.IllegalArgumentException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:256)
at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Commented] (AXIS2-5293) Axis2 should not generate
minOccurs="0" for java primitive types.
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258184#comment-13258184 ]
Hudson commented on AXIS2-5293:
-------------------------------
Integrated in Axis2 #1366 (See [https://builds.apache.org/job/Axis2/1366/])
Further test resources correction for AXIS2-5293. (Revision 1328293)
Result = SUCCESS
sagara :
Files :
* /axis/axis2/java/core/trunk/modules/integration/test-resources/ComplexDataTypes/ComplexDataTypes.wsdl
> Axis2 should not generate minOccurs="0" for java primitive types.
> -------------------------------------------------------------------
>
> Key: AXIS2-5293
> URL: https://issues.apache.org/jira/browse/AXIS2-5293
> Project: Axis2
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.5.6, 1.6.1
> Reporter: Sagara Gunathunga
> Assignee: Sagara Gunathunga
> Priority: Critical
> Fix For: 1.7.0, 1.6.3
>
>
> Axis2 POJO support generate minOccurs="0" elements for java primitive parameters that will allows to omit relevant XML element from request messages. During the unmarshallings process null value is used to represent values of those omitted request elements. Finally this will result into IllegalArgumentException when it try to pass null value for primitive parameters through Java reflection. As a solution Axis2 should not generate minOccurs="0" for primitive parameters.
> java.lang.IllegalArgumentException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:256)
> at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
> at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Commented] (AXIS2-5293) Axis2 should not generate
minOccurs="0" for java primitive types.
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258099#comment-13258099 ]
Hudson commented on AXIS2-5293:
-------------------------------
Integrated in Axis2 #1365 (See [https://builds.apache.org/job/Axis2/1365/])
Fixed AXIS2-5293. (Revision 1328228)
Result = UNSTABLE
sagara :
Files :
* /axis/axis2/java/core/trunk/modules/integration/test-resources/BaseDataTypes.wsdl
* /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java
* /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java
> Axis2 should not generate minOccurs="0" for java primitive types.
> -------------------------------------------------------------------
>
> Key: AXIS2-5293
> URL: https://issues.apache.org/jira/browse/AXIS2-5293
> Project: Axis2
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.5.6, 1.6.1
> Reporter: Sagara Gunathunga
> Assignee: Sagara Gunathunga
> Priority: Critical
> Fix For: 1.7.0, 1.6.3
>
>
> Axis2 POJO support generate minOccurs="0" elements for java primitive parameters that will allows to omit relevant XML element from request messages. During the unmarshallings process null value is used to represent values of those omitted request elements. Finally this will result into IllegalArgumentException when it try to pass null value for primitive parameters through Java reflection. As a solution Axis2 should not generate minOccurs="0" for primitive parameters.
> java.lang.IllegalArgumentException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:256)
> at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
> at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Resolved] (AXIS2-5293) Axis2 should not generate
minOccurs="0" for java primitive types.
Posted by "Sagara Gunathunga (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sagara Gunathunga resolved AXIS2-5293.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.6.3
1.7.0
Fixed in r1328228.
> Axis2 should not generate minOccurs="0" for java primitive types.
> -------------------------------------------------------------------
>
> Key: AXIS2-5293
> URL: https://issues.apache.org/jira/browse/AXIS2-5293
> Project: Axis2
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.5.6, 1.6.1
> Reporter: Sagara Gunathunga
> Assignee: Sagara Gunathunga
> Priority: Critical
> Fix For: 1.7.0, 1.6.3
>
>
> Axis2 POJO support generate minOccurs="0" elements for java primitive parameters that will allows to omit relevant XML element from request messages. During the unmarshallings process null value is used to represent values of those omitted request elements. Finally this will result into IllegalArgumentException when it try to pass null value for primitive parameters through Java reflection. As a solution Axis2 should not generate minOccurs="0" for primitive parameters.
> java.lang.IllegalArgumentException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:256)
> at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
> at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org