You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Christian Posta (JIRA)" <ji...@apache.org> on 2012/10/30 16:30:13 UTC

[jira] [Created] (AMQ-4145) IntrospectionSupport does not convert from primitive to Wrapper classes appropriately

Christian Posta created AMQ-4145:
------------------------------------

             Summary: IntrospectionSupport does not convert from primitive to Wrapper classes appropriately
                 Key: AMQ-4145
                 URL: https://issues.apache.org/jira/browse/AMQ-4145
             Project: ActiveMQ
          Issue Type: Bug
          Components: Transport
    Affects Versions: 5.7.0
            Reporter: Christian Posta


In the TcpTransportServer#handleSocket method, we see that the default values for certain options (among them, trace, maxInactivityDuration, soTimeout, etc) are converted to their wrapper equivalents. 

However in IntrospectionSupport#convert(Object value, Class to) the conversion is not done properly. It always throws the IllegalArgumentException. 

Found in this message trail, although can be seen in other attempts to set variables directly on the transport server.

Possibly related to changes for AMQ-3797 ??

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (AMQ-4145) IntrospectionSupport does not convert from primitive to Wrapper classes appropriately

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

Timothy Bish reassigned AMQ-4145:
---------------------------------

    Assignee: Christian Posta
    
> IntrospectionSupport does not convert from primitive to Wrapper classes appropriately
> -------------------------------------------------------------------------------------
>
>                 Key: AMQ-4145
>                 URL: https://issues.apache.org/jira/browse/AMQ-4145
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.7.0
>            Reporter: Christian Posta
>            Assignee: Christian Posta
>
> In the TcpTransportServer#handleSocket method, we see that the default values for certain options (among them, trace, maxInactivityDuration, soTimeout, etc) are converted to their wrapper equivalents. 
> However in IntrospectionSupport#convert(Object value, Class to) the conversion is not done properly. It always throws the IllegalArgumentException. 
> Found in this message trail, although can be seen in other attempts to set variables directly on the transport server.
> Possibly related to changes for AMQ-3797 ??

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQ-4145) IntrospectionSupport does not convert from primitive to Wrapper classes appropriately

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-4145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487747#comment-13487747 ] 

Timothy Bish commented on AMQ-4145:
-----------------------------------

Got a test case ?
                
> IntrospectionSupport does not convert from primitive to Wrapper classes appropriately
> -------------------------------------------------------------------------------------
>
>                 Key: AMQ-4145
>                 URL: https://issues.apache.org/jira/browse/AMQ-4145
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.7.0
>            Reporter: Christian Posta
>
> In the TcpTransportServer#handleSocket method, we see that the default values for certain options (among them, trace, maxInactivityDuration, soTimeout, etc) are converted to their wrapper equivalents. 
> However in IntrospectionSupport#convert(Object value, Class to) the conversion is not done properly. It always throws the IllegalArgumentException. 
> Found in this message trail, although can be seen in other attempts to set variables directly on the transport server.
> Possibly related to changes for AMQ-3797 ??

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQ-4145) IntrospectionSupport does not convert from primitive to Wrapper classes appropriately

Posted by "Christian Posta (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-4145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487750#comment-13487750 ] 

Christian Posta commented on AMQ-4145:
--------------------------------------

Yep, working on one right now :)
                
> IntrospectionSupport does not convert from primitive to Wrapper classes appropriately
> -------------------------------------------------------------------------------------
>
>                 Key: AMQ-4145
>                 URL: https://issues.apache.org/jira/browse/AMQ-4145
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.7.0
>            Reporter: Christian Posta
>
> In the TcpTransportServer#handleSocket method, we see that the default values for certain options (among them, trace, maxInactivityDuration, soTimeout, etc) are converted to their wrapper equivalents. 
> However in IntrospectionSupport#convert(Object value, Class to) the conversion is not done properly. It always throws the IllegalArgumentException. 
> Found in this message trail, although can be seen in other attempts to set variables directly on the transport server.
> Possibly related to changes for AMQ-3797 ??

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (AMQ-4145) IntrospectionSupport does not convert from primitive to Wrapper classes appropriately

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

Christian Posta resolved AMQ-4145.
----------------------------------

    Resolution: Fixed
    
> IntrospectionSupport does not convert from primitive to Wrapper classes appropriately
> -------------------------------------------------------------------------------------
>
>                 Key: AMQ-4145
>                 URL: https://issues.apache.org/jira/browse/AMQ-4145
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.7.0
>            Reporter: Christian Posta
>            Assignee: Christian Posta
>
> In the TcpTransportServer#handleSocket method, we see that the default values for certain options (among them, trace, maxInactivityDuration, soTimeout, etc) are converted to their wrapper equivalents. 
> However in IntrospectionSupport#convert(Object value, Class to) the conversion is not done properly. It always throws the IllegalArgumentException. 
> Found in this message trail, although can be seen in other attempts to set variables directly on the transport server.
> Possibly related to changes for AMQ-3797 ??

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQ-4145) IntrospectionSupport does not convert from primitive to Wrapper classes appropriately

Posted by "Christian Posta (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-4145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487815#comment-13487815 ] 

Christian Posta commented on AMQ-4145:
--------------------------------------

Fixed with commit r1404165

Tests added, TypeConverter updated
                
> IntrospectionSupport does not convert from primitive to Wrapper classes appropriately
> -------------------------------------------------------------------------------------
>
>                 Key: AMQ-4145
>                 URL: https://issues.apache.org/jira/browse/AMQ-4145
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.7.0
>            Reporter: Christian Posta
>            Assignee: Christian Posta
>
> In the TcpTransportServer#handleSocket method, we see that the default values for certain options (among them, trace, maxInactivityDuration, soTimeout, etc) are converted to their wrapper equivalents. 
> However in IntrospectionSupport#convert(Object value, Class to) the conversion is not done properly. It always throws the IllegalArgumentException. 
> Found in this message trail, although can be seen in other attempts to set variables directly on the transport server.
> Possibly related to changes for AMQ-3797 ??

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira