You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Vadim Pesochinskiy (JIRA)" <ji...@apache.org> on 2007/02/22 18:52:03 UTC

[jira] Created: (AMQ-1169) java.lang.ClassCastException: org.apache.activemq.command.BrokerId

java.lang.ClassCastException: org.apache.activemq.command.BrokerId 
-------------------------------------------------------------------

                 Key: AMQ-1169
                 URL: https://issues.apache.org/activemq/browse/AMQ-1169
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 4.1.0
         Environment: winxp
            Reporter: Vadim Pesochinskiy
             Fix For: 4.1.1


There were a lot of ": Channel was inactive for too long" messages before and after the ClassCastException. I do not know if the system would recover from this by itself.

java.lang.ClassCastException: org.apache.activemq.command.BrokerId
at org.apache.activemq.openwire.v2.MessageDispatchMarshaller.tightUnmarshal(MessageDispatchMarshaller.java:70)
at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:347)
at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
at java.lang.Thread.run(Thread.java:595)

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


Re: [VOTE RESULT] [jira] Created: (AMQ-1169) java.lang.ClassCastException: org.apache.activemq.command.BrokerId

Posted by Vadim Pesochinsky <Va...@mscibarra.com>.
I am trying to evaluation the implications of this error. TcpTransport.run()
does not catch the ClassCastException and the TcpTransport will become
dormant. Does anyone know if AMQ will be able to recover from this state?

java.lang.ClassCastException: org.apache.activemq.command.BrokerId
at
org.apache.activemq.openwire.v2.MessageDispatchMarshaller.tightUnmarshal(MessageDispatchMarshaller.java:70)
at
org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:347)
at
org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
at
org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
at java.lang.Thread.run(Thread.java:595)

https://issues.apache.org/activemq/browse/AMQ-1169
-- 
View this message in context: http://www.nabble.com/-jira--Created%3A-%28AMQ-1169%29-java.lang.ClassCastException%3A-org.apache.activemq.command.BrokerId-tf3274183s2354.html#a9107214
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


[jira] Commented: (AMQ-1169) java.lang.ClassCastException: org.apache.activemq.command.BrokerId

Posted by "Lari Hotari (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-1169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40541 ] 

Lari Hotari commented on AMQ-1169:
----------------------------------

My problem went away after using backport-util-concurrent 2.1 on client (and server).

> java.lang.ClassCastException: org.apache.activemq.command.BrokerId 
> -------------------------------------------------------------------
>
>                 Key: AMQ-1169
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1169
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.1.0
>         Environment: winxp
>            Reporter: Vadim Pesochinskiy
>             Fix For: 4.1.1
>
>
> There were a lot of ": Channel was inactive for too long" messages before and after the ClassCastException. I do not know if the system would recover from this by itself.
> java.lang.ClassCastException: org.apache.activemq.command.BrokerId
> at org.apache.activemq.openwire.v2.MessageDispatchMarshaller.tightUnmarshal(MessageDispatchMarshaller.java:70)
> at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:347)
> at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
> at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
> at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
> at java.lang.Thread.run(Thread.java:595)

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


[jira] Issue Comment Edited: (AMQ-1169) java.lang.ClassCastException: org.apache.activemq.command.BrokerId

Posted by "Lari Hotari (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-1169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39970 ] 

lhotari edited comment on AMQ-1169 at 8/17/07 3:19 AM:
-----------------------------------------------------------

I'm experiencing the same problem. I think this problem is caused by using backport-util-concurrent 3.0 on the client side.
That's mentioned here:
https://issues.apache.org/jira/browse/GERONIMO-2995

Could AMQ client be made backport-util-concurrent 3.0 compatible?

I'm using ActiveMQ 4.1.1 which contains backport-util-concurrent 2.1.


      was (Author: lhotari):
    I'm experiencing the same problem. I think this problem is caused by using backport-util-concurrent 3.0 on the client side.
That's mentioned here:
https://issues.apache.org/jira/browse/GERONIMO-2995

Could AMQ client be made backport-util-concurrent 3.0 compatible?
  
> java.lang.ClassCastException: org.apache.activemq.command.BrokerId 
> -------------------------------------------------------------------
>
>                 Key: AMQ-1169
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1169
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.1.0
>         Environment: winxp
>            Reporter: Vadim Pesochinskiy
>             Fix For: 4.1.1
>
>
> There were a lot of ": Channel was inactive for too long" messages before and after the ClassCastException. I do not know if the system would recover from this by itself.
> java.lang.ClassCastException: org.apache.activemq.command.BrokerId
> at org.apache.activemq.openwire.v2.MessageDispatchMarshaller.tightUnmarshal(MessageDispatchMarshaller.java:70)
> at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:347)
> at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
> at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
> at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
> at java.lang.Thread.run(Thread.java:595)

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


[jira] Closed: (AMQ-1169) java.lang.ClassCastException: org.apache.activemq.command.BrokerId

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

Vadim Pesochinskiy closed AMQ-1169.
-----------------------------------

    Resolution: Won't Fix

this is most likely result of having different version of amq jars on the client and server sides

> java.lang.ClassCastException: org.apache.activemq.command.BrokerId 
> -------------------------------------------------------------------
>
>                 Key: AMQ-1169
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1169
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.1.0
>         Environment: winxp
>            Reporter: Vadim Pesochinskiy
>             Fix For: 4.1.1
>
>
> There were a lot of ": Channel was inactive for too long" messages before and after the ClassCastException. I do not know if the system would recover from this by itself.
> java.lang.ClassCastException: org.apache.activemq.command.BrokerId
> at org.apache.activemq.openwire.v2.MessageDispatchMarshaller.tightUnmarshal(MessageDispatchMarshaller.java:70)
> at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:347)
> at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
> at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
> at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
> at java.lang.Thread.run(Thread.java:595)

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


[jira] Commented: (AMQ-1169) java.lang.ClassCastException: org.apache.activemq.command.BrokerId

Posted by "Lari Hotari (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-1169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39979 ] 

Lari Hotari commented on AMQ-1169:
----------------------------------

This issue has probably nothing to do with backport-util-concurrent version...

I'm getting ClassCastExceptions in my test environment several times a week. The ActiveMQ version is 4.1.1 running on Sun Java 1.5.0_11

It's hard to understand why this exception is possible:
Exception in thread "ActiveMQ Transport: tcp://localhost/127.0.0.1:61616" java.lang.ClassCastException: org.apache.activemq.command.BrokerId
at org.apache.activemq.openwire.v2.MessageMarshaller.looseUnmarshal(MessageMarshaller.java:193)
at org.apache.activemq.openwire.v2.ActiveMQMessageMarshaller.looseUnmarshal(ActiveMQMessageMarshaller.java:101)
at org.apache.activemq.openwire.v2.ActiveMQStreamMessageMarshaller.looseUnmarshal(ActiveMQStreamMessageMarshaller.java:101)
at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:349)
at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
at java.lang.Thread.run(Thread.java:595)

It's expecting a ProducerId object, but it receives a BrokerId object.


> java.lang.ClassCastException: org.apache.activemq.command.BrokerId 
> -------------------------------------------------------------------
>
>                 Key: AMQ-1169
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1169
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.1.0
>         Environment: winxp
>            Reporter: Vadim Pesochinskiy
>             Fix For: 4.1.1
>
>
> There were a lot of ": Channel was inactive for too long" messages before and after the ClassCastException. I do not know if the system would recover from this by itself.
> java.lang.ClassCastException: org.apache.activemq.command.BrokerId
> at org.apache.activemq.openwire.v2.MessageDispatchMarshaller.tightUnmarshal(MessageDispatchMarshaller.java:70)
> at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:347)
> at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
> at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
> at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
> at java.lang.Thread.run(Thread.java:595)

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


[jira] Reopened: (AMQ-1169) java.lang.ClassCastException: org.apache.activemq.command.BrokerId

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

Lari Hotari reopened AMQ-1169:
------------------------------


This problem exists in 4.1.1 , please make client backport-util-concurrent 3.0 compatible. more details in the comments I've just added to this issue.

> java.lang.ClassCastException: org.apache.activemq.command.BrokerId 
> -------------------------------------------------------------------
>
>                 Key: AMQ-1169
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1169
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.1.0
>         Environment: winxp
>            Reporter: Vadim Pesochinskiy
>             Fix For: 4.1.1
>
>
> There were a lot of ": Channel was inactive for too long" messages before and after the ClassCastException. I do not know if the system would recover from this by itself.
> java.lang.ClassCastException: org.apache.activemq.command.BrokerId
> at org.apache.activemq.openwire.v2.MessageDispatchMarshaller.tightUnmarshal(MessageDispatchMarshaller.java:70)
> at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:347)
> at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
> at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
> at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
> at java.lang.Thread.run(Thread.java:595)

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


[jira] Resolved: (AMQ-1169) java.lang.ClassCastException: org.apache.activemq.command.BrokerId

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

Rob Davies resolved AMQ-1169.
-----------------------------

    Fix Version/s: 5.1.0
                       (was: 4.1.1)
       Resolution: Fixed

> java.lang.ClassCastException: org.apache.activemq.command.BrokerId 
> -------------------------------------------------------------------
>
>                 Key: AMQ-1169
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1169
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.1.0
>         Environment: winxp
>            Reporter: Vadim Pesochinskiy
>            Assignee: Rob Davies
>             Fix For: 5.1.0
>
>
> There were a lot of ": Channel was inactive for too long" messages before and after the ClassCastException. I do not know if the system would recover from this by itself.
> java.lang.ClassCastException: org.apache.activemq.command.BrokerId
> at org.apache.activemq.openwire.v2.MessageDispatchMarshaller.tightUnmarshal(MessageDispatchMarshaller.java:70)
> at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:347)
> at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
> at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
> at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
> at java.lang.Thread.run(Thread.java:595)

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


[jira] Commented: (AMQ-1169) java.lang.ClassCastException: org.apache.activemq.command.BrokerId

Posted by "Lari Hotari (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-1169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39970 ] 

Lari Hotari commented on AMQ-1169:
----------------------------------

I'm experiencing the same problem. I think this problem is caused by using backport-util-concurrent 3.0 on the client side.
That's mentioned here:
https://issues.apache.org/jira/browse/GERONIMO-2995

Could AMQ client be made backport-util-concurrent 3.0 compatible?

> java.lang.ClassCastException: org.apache.activemq.command.BrokerId 
> -------------------------------------------------------------------
>
>                 Key: AMQ-1169
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1169
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.1.0
>         Environment: winxp
>            Reporter: Vadim Pesochinskiy
>             Fix For: 4.1.1
>
>
> There were a lot of ": Channel was inactive for too long" messages before and after the ClassCastException. I do not know if the system would recover from this by itself.
> java.lang.ClassCastException: org.apache.activemq.command.BrokerId
> at org.apache.activemq.openwire.v2.MessageDispatchMarshaller.tightUnmarshal(MessageDispatchMarshaller.java:70)
> at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:347)
> at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
> at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
> at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
> at java.lang.Thread.run(Thread.java:595)

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


[jira] Assigned: (AMQ-1169) java.lang.ClassCastException: org.apache.activemq.command.BrokerId

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

Rob Davies reassigned AMQ-1169:
-------------------------------

    Assignee: Rob Davies

> java.lang.ClassCastException: org.apache.activemq.command.BrokerId 
> -------------------------------------------------------------------
>
>                 Key: AMQ-1169
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1169
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.1.0
>         Environment: winxp
>            Reporter: Vadim Pesochinskiy
>            Assignee: Rob Davies
>             Fix For: 5.1.0
>
>
> There were a lot of ": Channel was inactive for too long" messages before and after the ClassCastException. I do not know if the system would recover from this by itself.
> java.lang.ClassCastException: org.apache.activemq.command.BrokerId
> at org.apache.activemq.openwire.v2.MessageDispatchMarshaller.tightUnmarshal(MessageDispatchMarshaller.java:70)
> at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:347)
> at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
> at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
> at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
> at java.lang.Thread.run(Thread.java:595)

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


[jira] Issue Comment Edited: (AMQ-1169) java.lang.ClassCastException: org.apache.activemq.command.BrokerId

Posted by "Lari Hotari (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-1169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39970 ] 

lhotari edited comment on AMQ-1169 at 8/17/07 3:23 AM:
-----------------------------------------------------------

I'm experiencing the same problem on the client side. 

Exception in thread "ActiveMQ Transport: tcp://localhost/127.0.0.1:61616" java.lang.ClassCastException: org.apache.activemq.command.BrokerId
	at org.apache.activemq.openwire.v2.MessageMarshaller.looseUnmarshal(MessageMarshaller.java:193)
	at org.apache.activemq.openwire.v2.ActiveMQMessageMarshaller.looseUnmarshal(ActiveMQMessageMarshaller.java:101)
	at org.apache.activemq.openwire.v2.ActiveMQStreamMessageMarshaller.looseUnmarshal(ActiveMQStreamMessageMarshaller.java:101)
	at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:349)
	at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
	at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
	at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
	at java.lang.Thread.run(Thread.java:595)

I think this problem is caused by using backport-util-concurrent 3.0 on the client side.
That's mentioned here:
https://issues.apache.org/jira/browse/GERONIMO-2995

Could AMQ client be made backport-util-concurrent 3.0 compatible?

I'm using ActiveMQ 4.1.1 . On the client side there's backport-util-concurrent 3.0 (server has backport-util-concurrent 2.1).


      was (Author: lhotari):
    I'm experiencing the same problem on the client side. 

Exception in thread "ActiveMQ Transport: tcp://localhost/127.0.0.1:61616" java.lang.ClassCastException: org.apache.activemq.command.BrokerId
	at org.apache.activemq.openwire.v2.MessageMarshaller.looseUnmarshal(MessageMarshaller.java:193)
	at org.apache.activemq.openwire.v2.ActiveMQMessageMarshaller.looseUnmarshal(ActiveMQMessageMarshaller.java:101)
	at org.apache.activemq.openwire.v2.ActiveMQStreamMessageMarshaller.looseUnmarshal(ActiveMQStreamMessageMarshaller.java:101)
	at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:349)
	at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
	at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
	at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
	at java.lang.Thread.run(Thread.java:595)

I think this problem is caused by using backport-util-concurrent 3.0 on the client side.
That's mentioned here:
https://issues.apache.org/jira/browse/GERONIMO-2995

Could AMQ client be made backport-util-concurrent 3.0 compatible?

I'm using ActiveMQ 4.1.1 which contains backport-util-concurrent 2.1.

  
> java.lang.ClassCastException: org.apache.activemq.command.BrokerId 
> -------------------------------------------------------------------
>
>                 Key: AMQ-1169
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1169
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.1.0
>         Environment: winxp
>            Reporter: Vadim Pesochinskiy
>             Fix For: 4.1.1
>
>
> There were a lot of ": Channel was inactive for too long" messages before and after the ClassCastException. I do not know if the system would recover from this by itself.
> java.lang.ClassCastException: org.apache.activemq.command.BrokerId
> at org.apache.activemq.openwire.v2.MessageDispatchMarshaller.tightUnmarshal(MessageDispatchMarshaller.java:70)
> at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:347)
> at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
> at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
> at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
> at java.lang.Thread.run(Thread.java:595)

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


[jira] Issue Comment Edited: (AMQ-1169) java.lang.ClassCastException: org.apache.activemq.command.BrokerId

Posted by "Lari Hotari (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-1169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39970 ] 

lhotari edited comment on AMQ-1169 at 8/17/07 3:22 AM:
-----------------------------------------------------------

I'm experiencing the same problem on the client side. 

Exception in thread "ActiveMQ Transport: tcp://localhost/127.0.0.1:61616" java.lang.ClassCastException: org.apache.activemq.command.BrokerId
	at org.apache.activemq.openwire.v2.MessageMarshaller.looseUnmarshal(MessageMarshaller.java:193)
	at org.apache.activemq.openwire.v2.ActiveMQMessageMarshaller.looseUnmarshal(ActiveMQMessageMarshaller.java:101)
	at org.apache.activemq.openwire.v2.ActiveMQStreamMessageMarshaller.looseUnmarshal(ActiveMQStreamMessageMarshaller.java:101)
	at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:349)
	at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
	at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
	at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
	at java.lang.Thread.run(Thread.java:595)

I think this problem is caused by using backport-util-concurrent 3.0 on the client side.
That's mentioned here:
https://issues.apache.org/jira/browse/GERONIMO-2995

Could AMQ client be made backport-util-concurrent 3.0 compatible?

I'm using ActiveMQ 4.1.1 which contains backport-util-concurrent 2.1.


      was (Author: lhotari):
    I'm experiencing the same problem. I think this problem is caused by using backport-util-concurrent 3.0 on the client side.
That's mentioned here:
https://issues.apache.org/jira/browse/GERONIMO-2995

Could AMQ client be made backport-util-concurrent 3.0 compatible?

I'm using ActiveMQ 4.1.1 which contains backport-util-concurrent 2.1.

  
> java.lang.ClassCastException: org.apache.activemq.command.BrokerId 
> -------------------------------------------------------------------
>
>                 Key: AMQ-1169
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1169
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.1.0
>         Environment: winxp
>            Reporter: Vadim Pesochinskiy
>             Fix For: 4.1.1
>
>
> There were a lot of ": Channel was inactive for too long" messages before and after the ClassCastException. I do not know if the system would recover from this by itself.
> java.lang.ClassCastException: org.apache.activemq.command.BrokerId
> at org.apache.activemq.openwire.v2.MessageDispatchMarshaller.tightUnmarshal(MessageDispatchMarshaller.java:70)
> at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:347)
> at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
> at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
> at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
> at java.lang.Thread.run(Thread.java:595)

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


[jira] Commented: (AMQ-1169) java.lang.ClassCastException: org.apache.activemq.command.BrokerId

Posted by "Lari Hotari (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-1169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39973 ] 

Lari Hotari commented on AMQ-1169:
----------------------------------

backport-util-concurrent 3.0 works on server and client, but it doesn't seem to perform as well as 2.1 version.

> java.lang.ClassCastException: org.apache.activemq.command.BrokerId 
> -------------------------------------------------------------------
>
>                 Key: AMQ-1169
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1169
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.1.0
>         Environment: winxp
>            Reporter: Vadim Pesochinskiy
>             Fix For: 4.1.1
>
>
> There were a lot of ": Channel was inactive for too long" messages before and after the ClassCastException. I do not know if the system would recover from this by itself.
> java.lang.ClassCastException: org.apache.activemq.command.BrokerId
> at org.apache.activemq.openwire.v2.MessageDispatchMarshaller.tightUnmarshal(MessageDispatchMarshaller.java:70)
> at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:347)
> at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
> at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
> at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
> at java.lang.Thread.run(Thread.java:595)

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