[
http://jira.jboss.com/jira/browse/JBAS-3750?page=all ]
Dimitris Andreadis closed JBAS-3750.
------------------------------------
Fix Version/s: JBossAS-5.0.0.Beta
Resolution: Done
Assignee: Dimitris Andreadis (was: Luc Texier)
The code now reads:
...
// JBAS-3750 - Help debug integration with foreign JMS providers
if (t instanceof JMSException)
{
Exception le = ((JMSException)t).getLinkedException();
if (le != null)
log.debug("Linked exception: " + le + ", cause: " +
le.getCause());
}
...
Also, if you want the full stacktrace + cause, we could have
log.debug("Linked exception: ", le);
in which case, please re-open.
I don't know if we are allowed to add a toString() to javax.jms.JMSException and do
some more detailed error reporting there, rather than adding extra logs all over the
place.
log of JMS LinkedException when handling provider failure
---------------------------------------------------------
Key: JBAS-3750
URL:
http://jira.jboss.com/jira/browse/JBAS-3750
Project: JBoss Application Server
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Reporter: Luc Texier
Assigned To: Dimitris Andreadis
Priority: Minor
Fix For: JBossAS-4.0.5.GA, JBossAS-5.0.0.Beta
the JMSException's linked exception data is quite useful to log when debugging issues
related to integration with forein jms provider.
here a possible version of the required change in
org.jboss.ejb.plugins.jms.JMSContainerInvoker:handleFailure()
public void handleFailure(Throwable t)
{
log.warn("JMS provider failure detected: ", t);
failure = t;
// Helpful to debug issues when WSMQ is the jms provider
if(t instanceof JMSException) {
Exception le = ((JMSException)t).getLinkedException();
if (le != null) {
log.trace("Linked exception: "+le);
log.trace("Linked exception: cause: "+le.getCause() );
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira