[
https://issues.apache.org/jira/browse/GERONIMO-4512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664077#action_12664077
]
Ivan commented on GERONIMO-4512:
--------------------------------
It is caused by a thread deadlock ActiveMQEndpointWorker class.
It will happen when one thread is in a loop to try to connect the broker, in
the meanwhile another thread calls the stop action.
Thread A (in the run() method) holds the connectWork, and requires the
shutdownMutex.
Thread B (in the stop() method) holds the shutdownMutex, and requires the
connectWork in the disconnect method.
I move the disconnect() invocation out of the synchronized (shutdownMutex)
block, it will works well. When I try to open a JIRA in the ActiveMQ community,
it does not allow me to login with the user name and password in the Geronimo
community.
Could anyone give a hand to open a JIRA to the ActiveMQ community ?
thanks !
> Wrong JMS resource deployment plan causes server down
> -----------------------------------------------------
>
> Key: GERONIMO-4512
> URL: https://issues.apache.org/jira/browse/GERONIMO-4512
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: ActiveMQ
> Affects Versions: 2.2
> Environment: JDK 1.6
> Ubuntu 8.04
> Reporter: Forrest Xia
> Assignee: Ivan
> Attachments: daytrader-derby-plan.xml, daytrader-ear-2.1.1.1.ear
>
>
> Steps:
> 1. Use the attached daytrader application and the wrong deployment plan to
> deploy to the default geronimo server instance.
> 2. The admin console responses the deployment and start is OK
> 3. Check the geronimo.log and geronimo.out
> 4. Try to uninstall the daytrader application
> 5. Try to stop the server
> Problems:
> 1. The log endlessly prints errors like this:
> 2009-01-14 13:38:22,241 ERROR [ActiveMQEndpointWorker] Failed to connect to
> broker [tcp://localhost:61636]: Could not connect to broker URL:
> tcp://localhost:61636. Reason: java.net.ConnectException: 连接被拒绝
> javax.jms.JMSException: Could not connect to broker URL:
> tcp://localhost:61636. Reason: java.net.ConnectException: 连接被拒绝
> at
> org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:280)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:179)
> at
> org.apache.activemq.ra.ActiveMQResourceAdapter.makeConnection(ActiveMQResourceAdapter.java:128)
> at
> org.apache.activemq.ra.ActiveMQEndpointWorker$1.run(ActiveMQEndpointWorker.java:106)
> at
> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:290)
> at
> org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
> at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
> at
> org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
> at java.lang.Thread.run(Thread.java:735)
> 2. daytrader application cannot be stopped or restarted.
> 3. The default server instance cannot be stopped gracefully, unless use kill
> process method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.