You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Ulrich (JIRA)" <ji...@apache.org> on 2007/09/07 09:29:22 UTC

[jira] Created: (AMQ-1383) org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed

org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed
--------------------------------------------------------------------------------------------------------------------------

                 Key: AMQ-1383
                 URL: https://issues.apache.org/activemq/browse/AMQ-1383
             Project: ActiveMQ
          Issue Type: Bug
          Components: Transport
    Affects Versions: 4.1.1
         Environment: MS Vista, JDK 1.6, ActiveMq 4.1.1
            Reporter: Ulrich


Came back  into office this morning and spotted this, can't tell if my application continued as usual as i have only very little activity in the application. 


Exception in thread "ActiveMQ Transport: tcp://XXX/YYY:61616" java.lang.ClassCastException: org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed
      at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.compareTo(ScheduledThreadPoolExecutor.java:189)
      at edu.emory.mathcs.backport.java.util.PriorityQueue.remove(PriorityQueue.java:507)
      at edu.emory.mathcs.backport.java.util.concurrent.DelayQueue.remove(DelayQueue.java:379)
      at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.remove(ScheduledThreadPoolExecutor.java:707)
      at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.remove(ThreadPoolExecutor.java:1582)
      at org.apache.activemq.thread.Scheduler.cancel(Scheduler.java:55)
      at org.apache.activemq.transport.InactivityMonitor.stopMonitorThreads(InactivityMonitor.java:176)
      at org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:149)
      at org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:97)
      at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:150)
      at java.lang.Thread.run(Unknown Source)


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


Re: [jira] Commented: (AMQ-1383) org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed

Posted by Motl <mo...@orcsoftware.com>.

Yes, I have already added the below info to the issue.


JIRA jira@apache.org wrote:
> 
> 
>     [
> https://issues.apache.org/activemq/browse/AMQ-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40379
> ] 
> 
> Matvey Aizenshtat commented on AMQ-1383:
> ----------------------------------------
> 
> I have pretty the same error with ActiveMQ 4.1.0, JDK 1.5.0, WinXP SP2.
> 
> The only difference seems to be in the error msg:
> 
> 15.10.2007 11:10:15 org.apache.activemq.broker.BrokerService stop
> INFO: ActiveMQ Message Broker (localhost,
> ID:sunrise-1826-1192432151093-1:0) is shutting down
> 15.10.2007 11:10:16 org.apache.activemq.broker.TransportConnector stop
> INFO: Connector tcp://sunrise:61616 Stopped
> 15.10.2007 11:10:16 org.apache.activemq.broker.TransportConnector stop
> INFO: Connector vm://localhost Stopped
> 15.10.2007 11:10:16 org.apache.activemq.util.ServiceStopper logError
> SEVERE: Could not stop service:
> org.apache.activemq.store.journal.JournalPersistenceAdapter@15fb38.
> Reason: java.lang.ClassCastException:
> org.apache.activemq.store.journal.JournalPersistenceAdapter$1
> java.lang.ClassCastException:
> org.apache.activemq.store.journal.JournalPersistenceAdapter$1
>         at
> edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.compareTo(ScheduledThreadPoolExecutor.java:189)
>         at
> edu.emory.mathcs.backport.java.util.PriorityQueue.remove(PriorityQueue.java:507)
>         at
> edu.emory.mathcs.backport.java.util.concurrent.DelayQueue.remove(DelayQueue.java:379)
>         at
> edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.remove(ScheduledThreadPoolExecutor.java:707)
>         at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.remove(ThreadPoolExecutor.java:1582)
>         at org.apache.activemq.thread.Scheduler.cancel(Scheduler.java:55)
>         at
> org.apache.activemq.store.journal.JournalPersistenceAdapter.stop(JournalPersistenceAdapter.java:238)
>         at
> org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:42)
>         at
> org.apache.activemq.broker.BrokerService.stop(BrokerService.java:443)
>         at src.EmbeddedBrokerTest.stopBroker(EmbeddedBrokerTest.java:19)
>         at src.EmbeddedBrokerTest.main(EmbeddedBrokerTest.java:53)
> 15.10.2007 11:10:16 org.apache.activemq.broker.BrokerService stop
> INFO: ActiveMQ JMS Message Broker (localhost,
> ID:sunrise-1826-1192432151093-1:0) stopped
> error occured:
> org.apache.activemq.store.journal.JournalPersistenceAdapter$1
> 
> 
>> org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to
>> edu.emory.mathcs.backport.java.util.concurrent.Delayed
>> --------------------------------------------------------------------------------------------------------------------------
>>
>>                 Key: AMQ-1383
>>                 URL: https://issues.apache.org/activemq/browse/AMQ-1383
>>             Project: ActiveMQ
>>          Issue Type: Bug
>>          Components: Transport
>>    Affects Versions: 4.1.1
>>         Environment: MS Vista, JDK 1.6, ActiveMq 4.1.1
>>            Reporter: Ulrich
>>
>> Came back  into office this morning and spotted this, can't tell if my
>> application continued as usual as i have only very little activity in the
>> application. 
>> Exception in thread "ActiveMQ Transport: tcp://XXX/YYY:61616"
>> java.lang.ClassCastException:
>> org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to
>> edu.emory.mathcs.backport.java.util.concurrent.Delayed
>>       at
>> edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.compareTo(ScheduledThreadPoolExecutor.java:189)
>>       at
>> edu.emory.mathcs.backport.java.util.PriorityQueue.remove(PriorityQueue.java:507)
>>       at
>> edu.emory.mathcs.backport.java.util.concurrent.DelayQueue.remove(DelayQueue.java:379)
>>       at
>> edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.remove(ScheduledThreadPoolExecutor.java:707)
>>       at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.remove(ThreadPoolExecutor.java:1582)
>>       at org.apache.activemq.thread.Scheduler.cancel(Scheduler.java:55)
>>       at
>> org.apache.activemq.transport.InactivityMonitor.stopMonitorThreads(InactivityMonitor.java:176)
>>       at
>> org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:149)
>>       at
>> org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:97)
>>       at
>> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:150)
>>       at java.lang.Thread.run(Unknown Source)
> 
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-jira--Created%3A-%28AMQ-1383%29-org.apache.activemq.transport.InactivityMonitor%241-cannot-be-cast-to-edu.emory.mathcs.backport.java.util.concurrent.Delayed-tf4396636s2354.html#a13214341
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Re: [jira] Commented: (AMQ-1383) org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed

Posted by Motl <mo...@orcsoftware.com>.
Hi,
I have pretty the same error with ActiveMQ 4.1.0, JDK 1.5.0, WinXP SP2.
The only difference seems to be in the error msg:

http://www.nabble.com/error-stopping-broker-tf4625679s2354.html



JIRA jira@apache.org wrote:
> 
> 
>     [
> https://issues.apache.org/activemq/browse/AMQ-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40177
> ] 
> 
> Xavier Hanin commented on AMQ-1383:
> -----------------------------------
> 
> I have exactly the same issue in the exact same environment (MS Vista, JDK
> 1.6, ActiveMq 4.1.1). It seems to happen when I kill abruptly a client
> connected to the broker.
> 
>> org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to
>> edu.emory.mathcs.backport.java.util.concurrent.Delayed
>> --------------------------------------------------------------------------------------------------------------------------
>>
>>                 Key: AMQ-1383
>>                 URL: https://issues.apache.org/activemq/browse/AMQ-1383
>>             Project: ActiveMQ
>>          Issue Type: Bug
>>          Components: Transport
>>    Affects Versions: 4.1.1
>>         Environment: MS Vista, JDK 1.6, ActiveMq 4.1.1
>>            Reporter: Ulrich
>>
>> Came back  into office this morning and spotted this, can't tell if my
>> application continued as usual as i have only very little activity in the
>> application. 
>> Exception in thread "ActiveMQ Transport: tcp://XXX/YYY:61616"
>> java.lang.ClassCastException:
>> org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to
>> edu.emory.mathcs.backport.java.util.concurrent.Delayed
>>       at
>> edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.compareTo(ScheduledThreadPoolExecutor.java:189)
>>       at
>> edu.emory.mathcs.backport.java.util.PriorityQueue.remove(PriorityQueue.java:507)
>>       at
>> edu.emory.mathcs.backport.java.util.concurrent.DelayQueue.remove(DelayQueue.java:379)
>>       at
>> edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.remove(ScheduledThreadPoolExecutor.java:707)
>>       at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.remove(ThreadPoolExecutor.java:1582)
>>       at org.apache.activemq.thread.Scheduler.cancel(Scheduler.java:55)
>>       at
>> org.apache.activemq.transport.InactivityMonitor.stopMonitorThreads(InactivityMonitor.java:176)
>>       at
>> org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:149)
>>       at
>> org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:97)
>>       at
>> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:150)
>>       at java.lang.Thread.run(Unknown Source)
> 
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-jira--Created%3A-%28AMQ-1383%29-org.apache.activemq.transport.InactivityMonitor%241-cannot-be-cast-to-edu.emory.mathcs.backport.java.util.concurrent.Delayed-tf4396636s2354.html#a13210891
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


[jira] Commented: (AMQ-1383) org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed

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

Xavier Hanin commented on AMQ-1383:
-----------------------------------

I have exactly the same issue in the exact same environment (MS Vista, JDK 1.6, ActiveMq 4.1.1). It seems to happen when I kill abruptly a client connected to the broker.

> org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-1383
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1383
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 4.1.1
>         Environment: MS Vista, JDK 1.6, ActiveMq 4.1.1
>            Reporter: Ulrich
>
> Came back  into office this morning and spotted this, can't tell if my application continued as usual as i have only very little activity in the application. 
> Exception in thread "ActiveMQ Transport: tcp://XXX/YYY:61616" java.lang.ClassCastException: org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed
>       at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.compareTo(ScheduledThreadPoolExecutor.java:189)
>       at edu.emory.mathcs.backport.java.util.PriorityQueue.remove(PriorityQueue.java:507)
>       at edu.emory.mathcs.backport.java.util.concurrent.DelayQueue.remove(DelayQueue.java:379)
>       at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.remove(ScheduledThreadPoolExecutor.java:707)
>       at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.remove(ThreadPoolExecutor.java:1582)
>       at org.apache.activemq.thread.Scheduler.cancel(Scheduler.java:55)
>       at org.apache.activemq.transport.InactivityMonitor.stopMonitorThreads(InactivityMonitor.java:176)
>       at org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:149)
>       at org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:97)
>       at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:150)
>       at java.lang.Thread.run(Unknown Source)

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


[jira] Resolved: (AMQ-1383) org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed

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

Rob Davies resolved AMQ-1383.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 5.1.0

> org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-1383
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1383
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 4.1.1
>         Environment: MS Vista, JDK 1.6, ActiveMq 4.1.1
>            Reporter: Ulrich
>            Assignee: Rob Davies
>             Fix For: 5.1.0
>
>
> Came back  into office this morning and spotted this, can't tell if my application continued as usual as i have only very little activity in the application. 
> Exception in thread "ActiveMQ Transport: tcp://XXX/YYY:61616" java.lang.ClassCastException: org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed
>       at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.compareTo(ScheduledThreadPoolExecutor.java:189)
>       at edu.emory.mathcs.backport.java.util.PriorityQueue.remove(PriorityQueue.java:507)
>       at edu.emory.mathcs.backport.java.util.concurrent.DelayQueue.remove(DelayQueue.java:379)
>       at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.remove(ScheduledThreadPoolExecutor.java:707)
>       at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.remove(ThreadPoolExecutor.java:1582)
>       at org.apache.activemq.thread.Scheduler.cancel(Scheduler.java:55)
>       at org.apache.activemq.transport.InactivityMonitor.stopMonitorThreads(InactivityMonitor.java:176)
>       at org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:149)
>       at org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:97)
>       at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:150)
>       at java.lang.Thread.run(Unknown Source)

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


[jira] Commented: (AMQ-1383) org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed

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

Matvey Aizenshtat commented on AMQ-1383:
----------------------------------------

I have pretty the same error with ActiveMQ 4.1.0, JDK 1.5.0, WinXP SP2.

The only difference seems to be in the error msg:

15.10.2007 11:10:15 org.apache.activemq.broker.BrokerService stop
INFO: ActiveMQ Message Broker (localhost, ID:sunrise-1826-1192432151093-1:0) is shutting down
15.10.2007 11:10:16 org.apache.activemq.broker.TransportConnector stop
INFO: Connector tcp://sunrise:61616 Stopped
15.10.2007 11:10:16 org.apache.activemq.broker.TransportConnector stop
INFO: Connector vm://localhost Stopped
15.10.2007 11:10:16 org.apache.activemq.util.ServiceStopper logError
SEVERE: Could not stop service: org.apache.activemq.store.journal.JournalPersistenceAdapter@15fb38. Reason: java.lang.ClassCastException: org.apache.activemq.store.journal.JournalPersistenceAdapter$1
java.lang.ClassCastException: org.apache.activemq.store.journal.JournalPersistenceAdapter$1
        at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.compareTo(ScheduledThreadPoolExecutor.java:189)
        at edu.emory.mathcs.backport.java.util.PriorityQueue.remove(PriorityQueue.java:507)
        at edu.emory.mathcs.backport.java.util.concurrent.DelayQueue.remove(DelayQueue.java:379)
        at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.remove(ScheduledThreadPoolExecutor.java:707)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.remove(ThreadPoolExecutor.java:1582)
        at org.apache.activemq.thread.Scheduler.cancel(Scheduler.java:55)
        at org.apache.activemq.store.journal.JournalPersistenceAdapter.stop(JournalPersistenceAdapter.java:238)
        at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:42)
        at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:443)
        at src.EmbeddedBrokerTest.stopBroker(EmbeddedBrokerTest.java:19)
        at src.EmbeddedBrokerTest.main(EmbeddedBrokerTest.java:53)
15.10.2007 11:10:16 org.apache.activemq.broker.BrokerService stop
INFO: ActiveMQ JMS Message Broker (localhost, ID:sunrise-1826-1192432151093-1:0) stopped
error occured: org.apache.activemq.store.journal.JournalPersistenceAdapter$1


> org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-1383
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1383
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 4.1.1
>         Environment: MS Vista, JDK 1.6, ActiveMq 4.1.1
>            Reporter: Ulrich
>
> Came back  into office this morning and spotted this, can't tell if my application continued as usual as i have only very little activity in the application. 
> Exception in thread "ActiveMQ Transport: tcp://XXX/YYY:61616" java.lang.ClassCastException: org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed
>       at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.compareTo(ScheduledThreadPoolExecutor.java:189)
>       at edu.emory.mathcs.backport.java.util.PriorityQueue.remove(PriorityQueue.java:507)
>       at edu.emory.mathcs.backport.java.util.concurrent.DelayQueue.remove(DelayQueue.java:379)
>       at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.remove(ScheduledThreadPoolExecutor.java:707)
>       at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.remove(ThreadPoolExecutor.java:1582)
>       at org.apache.activemq.thread.Scheduler.cancel(Scheduler.java:55)
>       at org.apache.activemq.transport.InactivityMonitor.stopMonitorThreads(InactivityMonitor.java:176)
>       at org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:149)
>       at org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:97)
>       at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:150)
>       at java.lang.Thread.run(Unknown Source)

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


[jira] Assigned: (AMQ-1383) org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed

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

Rob Davies reassigned AMQ-1383:
-------------------------------

    Assignee: Rob Davies

> org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-1383
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1383
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 4.1.1
>         Environment: MS Vista, JDK 1.6, ActiveMq 4.1.1
>            Reporter: Ulrich
>            Assignee: Rob Davies
>             Fix For: 5.1.0
>
>
> Came back  into office this morning and spotted this, can't tell if my application continued as usual as i have only very little activity in the application. 
> Exception in thread "ActiveMQ Transport: tcp://XXX/YYY:61616" java.lang.ClassCastException: org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed
>       at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.compareTo(ScheduledThreadPoolExecutor.java:189)
>       at edu.emory.mathcs.backport.java.util.PriorityQueue.remove(PriorityQueue.java:507)
>       at edu.emory.mathcs.backport.java.util.concurrent.DelayQueue.remove(DelayQueue.java:379)
>       at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.remove(ScheduledThreadPoolExecutor.java:707)
>       at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.remove(ThreadPoolExecutor.java:1582)
>       at org.apache.activemq.thread.Scheduler.cancel(Scheduler.java:55)
>       at org.apache.activemq.transport.InactivityMonitor.stopMonitorThreads(InactivityMonitor.java:176)
>       at org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:149)
>       at org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:97)
>       at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:150)
>       at java.lang.Thread.run(Unknown Source)

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


[jira] Commented: (AMQ-1383) org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed

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

Ulrich commented on AMQ-1383:
-----------------------------

Actually, after investigating a bit further,  i found out that my client seems to loose connection to the broker,too. (Due to some network problems). 

However, i have added an exception listener to my application, but i don't receive this exception through my exception listener?!

> org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-1383
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1383
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 4.1.1
>         Environment: MS Vista, JDK 1.6, ActiveMq 4.1.1
>            Reporter: Ulrich
>
> Came back  into office this morning and spotted this, can't tell if my application continued as usual as i have only very little activity in the application. 
> Exception in thread "ActiveMQ Transport: tcp://XXX/YYY:61616" java.lang.ClassCastException: org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed
>       at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.compareTo(ScheduledThreadPoolExecutor.java:189)
>       at edu.emory.mathcs.backport.java.util.PriorityQueue.remove(PriorityQueue.java:507)
>       at edu.emory.mathcs.backport.java.util.concurrent.DelayQueue.remove(DelayQueue.java:379)
>       at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.remove(ScheduledThreadPoolExecutor.java:707)
>       at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.remove(ThreadPoolExecutor.java:1582)
>       at org.apache.activemq.thread.Scheduler.cancel(Scheduler.java:55)
>       at org.apache.activemq.transport.InactivityMonitor.stopMonitorThreads(InactivityMonitor.java:176)
>       at org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:149)
>       at org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:97)
>       at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:150)
>       at java.lang.Thread.run(Unknown Source)

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


[jira] Commented: (AMQ-1383) org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed

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

Jason Anderson commented on AMQ-1383:
-------------------------------------

I can reproduce this by stopping the server while clients are still connected

> org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-1383
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1383
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 4.1.1
>         Environment: MS Vista, JDK 1.6, ActiveMq 4.1.1
>            Reporter: Ulrich
>
> Came back  into office this morning and spotted this, can't tell if my application continued as usual as i have only very little activity in the application. 
> Exception in thread "ActiveMQ Transport: tcp://XXX/YYY:61616" java.lang.ClassCastException: org.apache.activemq.transport.InactivityMonitor$1 cannot be cast to edu.emory.mathcs.backport.java.util.concurrent.Delayed
>       at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.compareTo(ScheduledThreadPoolExecutor.java:189)
>       at edu.emory.mathcs.backport.java.util.PriorityQueue.remove(PriorityQueue.java:507)
>       at edu.emory.mathcs.backport.java.util.concurrent.DelayQueue.remove(DelayQueue.java:379)
>       at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.remove(ScheduledThreadPoolExecutor.java:707)
>       at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.remove(ThreadPoolExecutor.java:1582)
>       at org.apache.activemq.thread.Scheduler.cancel(Scheduler.java:55)
>       at org.apache.activemq.transport.InactivityMonitor.stopMonitorThreads(InactivityMonitor.java:176)
>       at org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:149)
>       at org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:97)
>       at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:150)
>       at java.lang.Thread.run(Unknown Source)

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