import javax.jms.JMSException; import com.adeptia.indigo.services.ServiceException; Throwable nestedException = exception; while(nestedException != null && nestedException instanceof ServiceException) { ServiceException se = (ServiceException)nestedException; nestedException = se.getNested(); } if(nestedException != null && nestedException instanceof JMSException){ JMSException jmse = (JMSException)nestedException; log.error("JMS Linked Exception :: " + jmse.getLinkedException().getMessage(), jmse.getLinkedException()); }