[ 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-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org