activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoitx <beno...@yahoo.com>
Subject Re: Many many "java.lang.Object cannot be cast to org.apache.activemq.command.Command"
Date Tue, 12 May 2009 18:19:46 GMT

Hi Gary,

Thanks for doing this.

Could you confirm where the overnight builds are?  it seems that I only have
a snapshot from April 30 on the repo where I look (We build under m1...so
I'll have to copy it)

Thanks

Benoit.


Gary Tully wrote:
> 
> Hi Benoit,
> I just committed a change (r773986)  that will output the object that
> cannot be cast to a Command which should help track this down. This
> change will be in tonight's snapshot if that is of help to you.
> 
> 
> 
> 2009/5/12 Benoitx <benoitx@yahoo.com>:
>>
>> Hi
>>
>> We seem to receive an awful lot of "Object cannot be cast to Command"
>> exceptions, basically every minute or so.
>>
>> It seems to be chaotic on Ubuntu 8.10 32b and a bit less frequent on XP
>> or
>> so..
>>
>> This still happens even with 5.3-SNAPSHOT (April 17)
>>
>> What is the root cause of this?
>>
>> Any suggestion would be greatly appreciated...
>>
>> 1/ What is the root cause of that problem?
>> 2/ Is there a patch?
>> 3/ If the app was not logging an ERROR for each of those... would it work
>> when all apps are running?
>>
>> Thanks!
>>
>> Benoit
>>
>> 2009-04-23 13:03:53,776 INFO  [network.DiscoveryNetworkConnector#?]
>> (Simple
>> Discovery Agent: java.util.concurrent.ThreadPoolExecutor$Worker@139d891:)
>> Establishing network connection from vm://appendium-jboss-server to
>> tcp://localhost:27000
>> 2009-04-23 13:03:53,778 DEBUG [tcp.TcpTransport#?] (Simple Discovery
>> Agent:
>> java.util.concurrent.ThreadPoolExecutor$Worker@139d891:) Stopping
>> transport
>> tcp://null:0
>> 2009-04-23 13:03:53,779 DEBUG [broker.TransportConnection#?] (ActiveMQ
>> Transport Initiator: vm://appendium-jboss-server#18:) stop() called in
>> the
>> middle of start(). Delaying...
>> 2009-04-23 13:03:53,792 WARN  [network.DiscoveryNetworkConnector#?]
>> (Simple
>> Discovery Agent: java.util.concurrent.ThreadPoolExecutor$Worker@139d891:)
>> Could not start network bridge between: vm://appendium-jboss-server and:
>> tcp://localhost:27000 due to: java.net.ConnectException: Connection
>> refused
>> 2009-04-23 13:03:53,792 DEBUG [network.DiscoveryNetworkConnector#?]
>> (Simple
>> Discovery Agent: java.util.concurrent.ThreadPoolExecutor$Worker@139d891:)
>> Start failure exception: java.net.ConnectException: Connection refused
>> java.net.ConnectException: Connection refused
>>        at java.net.PlainSocketImpl.socketConnect(Native Method)
>>        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>>        at
>> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>>        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>>        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>>        at java.net.Socket.connect(Socket.java:519)
>>        at
>> org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:435)
>>        at
>> org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:401)
>>        at
>> org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
>>        at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
>>        at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
>>        at
>> org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
>>        at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
>>        at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
>>        at
>> org.apache.activemq.network.DemandForwardingBridgeSupport.start(DemandForwardingBridgeSupport.java:225)
>>        at
>> org.apache.activemq.network.DiscoveryNetworkConnector.onServiceAdd(DiscoveryNetworkConnector.java:114)
>>        at
>> org.apache.activemq.transport.discovery.simple.SimpleDiscoveryAgent$1.run(SimpleDiscoveryAgent.java:165)
>>        at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>        at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>        at java.lang.Thread.run(Thread.java:619)
>> 2009-04-23 13:03:53,792 DEBUG [network.DemandForwardingBridge#?] (Simple
>> Discovery Agent: java.util.concurrent.ThreadPoolExecutor$Worker@139d891:)
>> stopping appendium-jboss-server bridge to Unknown is disposed already ?
>> false
>> 2009-04-23 13:03:53,793 DEBUG [network.DemandForwardingBridge#?]
>> (NetworkBridge:) Caught exception sending shutdown
>> org.apache.activemq.transport.TransportDisposedIOException: Transport
>> disposed.
>>        at
>> org.apache.activemq.transport.vm.VMTransport.oneway(VMTransport.java:74)
>>        at
>> org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40)
>>        at
>> org.apache.activemq.transport.ResponseCorrelator.oneway(ResponseCorrelator.java:60)
>>        at
>> org.apache.activemq.network.DemandForwardingBridgeSupport$5.run(DemandForwardingBridgeSupport.java:371)
>>        at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>        at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>        at java.lang.Thread.run(Thread.java:619)
>> 2009-04-23 13:03:53,795 INFO  [network.DemandForwardingBridge#?] (Simple
>> Discovery Agent: java.util.concurrent.ThreadPoolExecutor$Worker@139d891:)
>> appendium-jboss-server bridge to Unknown stopped
>> 2009-04-23 13:03:53,793 DEBUG [broker.TransportConnection#?] (ActiveMQ
>> Transport Initiator: vm://appendium-jboss-server#18:) Calling the delayed
>> stop()
>> 2009-04-23 13:03:53,797 DEBUG [simple.SimpleDiscoveryAgent#?] (Simple
>> Discovery Agent: java.util.concurrent.ThreadPoolExecutor$Worker@32cd7f:)
>> Failure occured soon after the discovery event was generated.  It will be
>> clasified as a connection failure:
>> org.apache.activemq.transport.discovery.simple.SimpleDiscoveryAgent$SimpleDiscoveryEvent@122e0b3
>> 2009-04-23 13:03:53,824 DEBUG [simple.SimpleDiscoveryAgent#?] (Simple
>> Discovery Agent: java.util.concurrent.ThreadPoolExecutor$Worker@32cd7f:)
>> Waiting 30000 ms before attepting to reconnect.
>> 2009-04-23 13:03:53,824 DEBUG [broker.TransportConnection#?] (ActiveMQ
>> Transport Stopper: vm://appendium-jboss-server#18:) Stopping connection:
>> vm://appendium-jboss-server#18
>> 2009-04-23 13:03:53,859 DEBUG [broker.TransportConnection#?] (ActiveMQ
>> Transport Stopper: vm://appendium-jboss-server#18:) Stopped transport:
>> vm://appendium-jboss-server#18
>> 2009-04-23 13:03:53,862 DEBUG [broker.TransportConnection#?] (ActiveMQ
>> Transport Stopper: vm://appendium-jboss-server#18:) Connection Stopped:
>> vm://appendium-jboss-server#18
>> 2009-04-23 13:03:53,863 ERROR [broker.TransportConnector#?] (ActiveMQ
>> Transport Initiator: vm://appendium-jboss-server#18:) Could not accept
>> connection : java.lang.Object cannot be cast to
>> org.apache.activemq.command.Command
>> 2009-04-23 13:03:53,863 DEBUG [broker.TransportConnector#?] (ActiveMQ
>> Transport Initiator: vm://appendium-jboss-server#18:) Reason:
>> java.lang.Object cannot be cast to org.apache.activemq.command.Command
>> java.lang.ClassCastException: java.lang.Object cannot be cast to
>> org.apache.activemq.command.Command
>>        at
>> org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:89)
>>        at
>> org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68)
>>        at
>> org.apache.activemq.transport.vm.VMTransport.start(VMTransport.java:126)
>>        at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
>>        at
>> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
>>        at
>> org.apache.activemq.broker.TransportConnection.start(TransportConnection.java:880)
>>        at
>> org.apache.activemq.broker.TransportConnector$1$1.run(TransportConnector.java:213)
>>
>>
>>
>>
>> -----
>> Thanks & Regards,
>>
>> Benoit
>>
>> http://www.Appendium.com   http://objectlab.blogspot.com
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Many-many-%22java.lang.Object-cannot-be-cast-to-org.apache.activemq.command.Command%22-tp23504988p23504988.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> http://blog.garytully.com
> 
> Open Source SOA
> http://FUSESource.com
> 
> 


-----
Thanks & Regards,

Benoit

http://www.Appendium.com   http://objectlab.blogspot.com

-- 
View this message in context: http://www.nabble.com/Many-many-%22java.lang.Object-cannot-be-cast-to-org.apache.activemq.command.Command%22-tp23504988p23507699.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message