You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Dejan Bosanac (JIRA)" <ji...@apache.org> on 2009/02/02 10:29:08 UTC

[jira] Created: (AMQ-2092) Throw an error freindly message incase of corrupted connection creation command

Throw an error freindly message incase of corrupted connection creation command
-------------------------------------------------------------------------------

                 Key: AMQ-2092
                 URL: https://issues.apache.org/activemq/browse/AMQ-2092
             Project: ActiveMQ
          Issue Type: Improvement
          Components: Broker
    Affects Versions: 5.2.0
            Reporter: Dejan Bosanac
            Assignee: Dejan Bosanac
            Priority: Minor
             Fix For: 5.3.0


Instead of class cast exception like

Could not accept connection : java.lang.Object cannot be cast to org.apache.activemq.command.Command

throw more user friendly exception

Could not accept connection : Protocol violation - Command corrupted


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


[jira] Commented: (AMQ-2092) Throw an error freindly message incase of corrupted connection creation command

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-2092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49085#action_49085 ] 

Gary Tully commented on AMQ-2092:
---------------------------------

just wondering when this occurs, would it make sense to spit out the toString() of the object? Is it something got to do with how TransportConnection is shutdown?

> Throw an error freindly message incase of corrupted connection creation command
> -------------------------------------------------------------------------------
>
>                 Key: AMQ-2092
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2092
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.2.0
>            Reporter: Dejan Bosanac
>            Assignee: Dejan Bosanac
>            Priority: Minor
>             Fix For: 5.3.0
>
>
> Instead of class cast exception like
> Could not accept connection : java.lang.Object cannot be cast to org.apache.activemq.command.Command
> throw more user friendly exception
> Could not accept connection : Protocol violation - Command corrupted

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


[jira] Commented: (AMQ-2092) Throw an error freindly message incase of corrupted connection creation command

Posted by "Dejan Bosanac (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-2092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49086#action_49086 ] 

Dejan Bosanac commented on AMQ-2092:
------------------------------------

Added o.toString() for better clarity of the error. Thanks

> Throw an error freindly message incase of corrupted connection creation command
> -------------------------------------------------------------------------------
>
>                 Key: AMQ-2092
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2092
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.2.0
>            Reporter: Dejan Bosanac
>            Assignee: Dejan Bosanac
>            Priority: Minor
>             Fix For: 5.3.0
>
>
> Instead of class cast exception like
> Could not accept connection : java.lang.Object cannot be cast to org.apache.activemq.command.Command
> throw more user friendly exception
> Could not accept connection : Protocol violation - Command corrupted

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


[jira] Resolved: (AMQ-2092) Throw an error freindly message incase of corrupted connection creation command

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

Dejan Bosanac resolved AMQ-2092.
--------------------------------

    Resolution: Fixed

fixed in svn revision 739950

> Throw an error freindly message incase of corrupted connection creation command
> -------------------------------------------------------------------------------
>
>                 Key: AMQ-2092
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2092
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.2.0
>            Reporter: Dejan Bosanac
>            Assignee: Dejan Bosanac
>            Priority: Minor
>             Fix For: 5.3.0
>
>
> Instead of class cast exception like
> Could not accept connection : java.lang.Object cannot be cast to org.apache.activemq.command.Command
> throw more user friendly exception
> Could not accept connection : Protocol violation - Command corrupted

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