<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=narada" rel="nofollow">Narada Sage</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6652?redirect=false" rel="nofollow">SPR-6652</a></strong> and commented</p>
<p dir="auto">Hi,</p>
<p dir="auto">As mentioned in forum post there is a bug in the spel documentation where a method is used on the interface that in fact only exists on the concrete class. More details on the forum post.</p>
<p dir="auto">Many thanks.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 GA</p>
<p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?t=82258" rel="nofollow">http://forum.springsource.org/showthread.php?t=82258</a></p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398102044" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11380" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11380/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11380">#11380</a> Wrong example of SpEL in chapter 6.3 in reference documentation (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=anders" rel="nofollow">Anders Wallgren</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5275?redirect=false" rel="nofollow">SPR-5275</a></strong> and commented</p>
<p dir="auto">This method throws an exception if the linked exception's message is null.  I've patched it locally as follow:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/**
 * Build a descriptive exception message for the given JMSException,
 * incorporating a linked exception's message if appropriate.
 * @param ex the JMSException to build a message for
 * @return the descriptive message String
 * @see javax.jms.JMSException#getLinkedException()
 */
public static String buildExceptionMessage(JMSException ex) {
	String message = ex.getMessage();
	Exception linkedEx = ex.getLinkedException();
	if (linkedEx != null &amp;&amp; (linkedEx.getMessage() == null || message.indexOf(linkedEx.getMessage()) == -1)) {
		message = message + &quot;; nested exception is &quot; + linkedEx;
	}
	return message;
}"><pre class="notranslate"><code class="notranslate">/**
 * Build a descriptive exception message for the given JMSException,
 * incorporating a linked exception's message if appropriate.
 * @param ex the JMSException to build a message for
 * @return the descriptive message String
 * @see javax.jms.JMSException#getLinkedException()
 */
public static String buildExceptionMessage(JMSException ex) {
	String message = ex.getMessage();
	Exception linkedEx = ex.getLinkedException();
	if (linkedEx != null &amp;&amp; (linkedEx.getMessage() == null || message.indexOf(linkedEx.getMessage()) == -1)) {
		message = message + "; nested exception is " + linkedEx;
	}
	return message;
}
</code></pre></div>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.6</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398092193" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10005" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10005/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10005">#10005</a> JmsException.getMessage throws NPE if a cause doesn't have a message (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398092677" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10075" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10075/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10075">#10075</a> NullPointerException in JmsException (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398095277" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10455" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10455/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10455">#10455</a> NullPointerException in JmsUtils.buildExceptionMessage (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398096435" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10626" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10626/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10626">#10626</a> NullPointerException in JmsUtils.buildExceptionMessage() (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398097159" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10721" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10721/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10721">#10721</a> NullPointerException can occur from JmsUtils.buildException (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398093140" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10143" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10143/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10143">#10143</a> Possible NPE in JmsUtils.buildExceptionMessage and JmsException.getMessage (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>