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 "Hudson (Commented) (JIRA)" <ji...@apache.org> on 2011/10/04 15:01:34 UTC

[jira] [Commented] (AXIS2-5141) An error is thrown when pass null value as the Enum parameter

    [ https://issues.apache.org/jira/browse/AXIS2-5141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13120045#comment-13120045 ] 

Hudson commented on AXIS2-5141:
-------------------------------

Integrated in Axis2 #1019 (See [https://builds.apache.org/job/Axis2/1019/])
    Applied patch for AXIS2-5141.

sagara : 
Files : 
* /axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
* /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java

                
> An error is thrown when pass null value as the Enum parameter 
> --------------------------------------------------------------
>
>                 Key: AXIS2-5141
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5141
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, kernel
>    Affects Versions: 1.7.0
>            Reporter: Shameera Rathnayaka
>            Assignee: Shameera Rathnayaka
>              Labels: Enum
>             Fix For: 1.7.0
>
>         Attachments: AXIS2-5141.patch
>
>
> When pass null as parameter to the method which requires Enum as the method parameter it throws following Exception 
> [ERROR] No enum const class org.apache.axis2.axis2userguide.EnumService$Status.
> java.lang.IllegalArgumentException: No enum const class org.apache.axis2.axis2userguide.EnumService$Status.
> 	at java.lang.Enum.valueOf(Enum.java:196)
> 	at org.apache.axis2.databinding.utils.BeanUtil.processEnumObject(BeanUtil.java:1088)
> 	at org.apache.axis2.databinding.utils.BeanUtil.processElement(BeanUtil.java:945)
> 	at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:818)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.processRequest(RPCUtil.java:182)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:235)

--
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