You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Laws (JIRA)" <de...@tuscany.apache.org> on 2009/06/26 17:21:07 UTC

[jira] Resolved: (TUSCANY-3099) NumberFormatException occurs when parsing a JMSPriority attribute with string value

     [ https://issues.apache.org/jira/browse/TUSCANY-3099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Laws resolved TUSCANY-3099.
---------------------------------

       Resolution: Fixed
    Fix Version/s: Java-SCA-Next

Validation added at revision: 788735  


> NumberFormatException occurs when parsing a JMSPriority attribute with string value
> -----------------------------------------------------------------------------------
>
>                 Key: TUSCANY-3099
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3099
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA JMS Binding Extension
>    Affects Versions: Java-SCA-1.5
>            Reporter: Andrew Mak
>            Assignee: Simon Laws
>             Fix For: Java-SCA-Next
>
>
> When a JMS binding has a headers/@JMSPriority attribute with a string value, a NumberFormatException occurs when parsing the composite.  Looking at the JMS binding spec, @JMSPriority has type string so I don't think it should throw an exception in this case.
> The stacktrace:
> java.lang.NumberFormatException: For input string: "medium"
>         at java.lang.NumberFormatException.forInputString(Unknown Source)
>         at java.lang.Integer.parseInt(Unknown Source)
>         at java.lang.Integer.parseInt(Unknown Source)
>         at org.apache.tuscany.sca.binding.jms.impl.JMSBindingProcessor.parseOperationHeaders(Unknown Source)
>         at org.apache.tuscany.sca.binding.jms.impl.JMSBindingProcessor.parseOperationProperties(Unknown Source)
>         at org.apache.tuscany.sca.binding.jms.impl.JMSBindingProcessor.read(Unknown Source)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.