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 "Shameera Rathnayaka (JIRA)" <ji...@apache.org> on 2011/09/09 12:01:09 UTC

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

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
             Fix For: 1.7.0


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.
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] [Updated] (AXIS2-5141) An error is thrown when pass null value as the Enum parameter

Posted by "Shameera Rathnayaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shameera Rathnayaka updated AXIS2-5141:
---------------------------------------

    Attachment: AXIS2-5141.patch

HI, you can find the patch to this issue 

> 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
>              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.
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-5141) An error is thrown when pass null value as the Enum parameter

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ 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


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

Posted by "Sagara Gunathunga (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sagara Gunathunga  reassigned AXIS2-5141:
-----------------------------------------

    Assignee: Shameera Rathnayaka

> 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.
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-5141) An error is thrown when pass null value as the Enum parameter

Posted by "Sagara Gunathunga (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sagara Gunathunga  resolved AXIS2-5141.
---------------------------------------

    Resolution: Fixed

Fixed in r1178758.
                
> 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