You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2010/07/21 07:14:51 UTC

[jira] Commented: (SMX4-564) stacktrace dumped on console when shutdown smx

    [ https://issues.apache.org/activemq/browse/SMX4-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60813#action_60813 ] 

Freeman Fang commented on SMX4-564:
-----------------------------------

This is from activemq ./activemq-pool/src/main/java/org/apache/activemq/pool/ConnectionPool.java
// Add a transport Listener so that we can notice if this connection
        // should be expired due to
        // a connection failure.
        connection.addTransportListener(new TransportListener() {
            public void onCommand(Object command) {
            }

            public void onException(IOException error) {
                synchronized (ConnectionPool.this) {
                    System.err.println("HasFaile=true on :" + error);
                    Thread.dumpStack();
                    hasFailed = true;
                }
            }

and get introduced since activemq 5.4-SNAPSHOT.

I think if we can't avoid jms connection failure on smx side when shutdown smx, then we need patch activemq, probably just put
System.err.println("HasFaile=true on :" + error);
                    Thread.dumpStack();
to log, but not print out the stacktrace on console.

> stacktrace dumped on console when shutdown smx
> ----------------------------------------------
>
>                 Key: SMX4-564
>                 URL: https://issues.apache.org/activemq/browse/SMX4-564
>             Project: ServiceMix 4
>          Issue Type: Bug
>            Reporter: Freeman Fang
>             Fix For: 4.4.0
>
>
> when shutdown servicemix will get dumpStack on console like
> karaf@root> shutdown 
> karaf@root> HasFaile=true on :java.io.EOFException
> java.lang.Exception: Stack trace
> 	at java.lang.Thread.dumpStack(Thread.java:1230)
> 	at org.apache.activemq.pool.ConnectionPool$1.onException(ConnectionPool.java:64)
> 	at org.apache.activemq.ActiveMQConnection$5.run(ActiveMQConnection.java:1863)
> 	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:637)
> HasFaile=true on :java.io.EOFException
> java.lang.Exception: Stack trace
> 	at java.lang.Thread.dumpStack(Thread.java:1230)
> 	at org.apache.activemq.pool.ConnectionPool$1.onException(ConnectionPool.java:64)
> 	at org.apache.activemq.ActiveMQConnection$5.run(ActiveMQConnection.java:1863)
> 	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:637)
> HasFaile=true on :java.io.EOFException
> java.lang.Exception: Stack trace
> 	at java.lang.Thread.dumpStack(Thread.java:1230)
> 	at org.apache.activemq.pool.ConnectionPool$1.onException(ConnectionPool.java:64)
> 	at org.apache.activemq.ActiveMQConnection$5.run(ActiveMQConnection.java:1863)
> 	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:637)
>  

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