Kevin Conner created JBESB-3790:
-----------------------------------
Summary: MRG invokes EndpointProxy from multiple threads
Key: JBESB-3790
URL:
https://issues.jboss.org/browse/JBESB-3790
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Transports
Affects Versions: 4.10 CP2
Reporter: Kevin Conner
The MRG JCA adapter is invoking the endpoint proxy from multiple threads during teardown,
initially as a toString invocation on the proxy.
This causes the following error to be raised.
Caused by: java.lang.IllegalStateException: This message endpoint + category:
QueueNotificationService service: SimpleQueueNotifier jca adapter: qpid-ra.rar is already
in use by another thread Thread[Dispatcher-Channel-0,5,JBoss Pooled Threads]
at org.jboss.soa.esb.listeners.jca.EndpointProxy.invoke(EndpointProxy.java:127)
at $Proxy475.toString(Unknown Source)
at java.lang.String.valueOf(String.java:2826)
at java.lang.StringBuilder.append(StringBuilder.java:115)
at
org.apache.qpid.ra.inflow.QpidMessageHandler.teardown(QpidMessageHandler.java:144)
We should allow toString, hashCode and equals to be invoked from any thread.
As an aside, the QpidMessageHandler will continue to invoke close on the connection,
followed by release on the proxy. This may cause additional problems not intended to be
covered by this issue.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira