<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=gchen77" rel="nofollow">Tim Chen</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3180?redirect=false" rel="nofollow">SPR-3180</a></strong> and commented</p>
<p dir="auto">I have a PropertyPlaceholderConfigurer that is prefixed with #{<br>
I can use it for any spring definition except those that are using namespaces.<br>
For example:<br>
Code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;tx:advice id=&quot;txAdvice&quot; transaction-manager=&quot;jtaTxManager&quot;&gt;
    &lt;tx:attributes&gt;
        &lt;tx:method name=&quot;*&quot; propagation=&quot;REQUIRED&quot; timeout=&quot;#{operational:jtaTimeout}&quot;/&gt;
    &lt;/tx:attributes&gt;
&lt;/tx:advice&gt;"><pre class="notranslate"><code class="notranslate">&lt;tx:advice id="txAdvice" transaction-manager="jtaTxManager"&gt;
    &lt;tx:attributes&gt;
        &lt;tx:method name="*" propagation="REQUIRED" timeout="#{operational:jtaTimeout}"/&gt;
    &lt;/tx:attributes&gt;
&lt;/tx:advice&gt;
</code></pre></div>
<p dir="auto">It wont process the value and I get exceptions that the value must be an integer.<br>
How can I use PropertyPlaceholderConfigurer with namespaces?</p>
<p dir="auto">The forum link is <a href="http://forum.springframework.org/showthread.php?p=101823#post101823" rel="nofollow">http://forum.springframework.org/showthread.php?p=101823#post101823</a></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.2</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="398088593" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9523" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9523/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9523">#9523</a> PropertyPlaceholderConfigurer doesn't work on beans defined in own schema e.g. tx:* (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto">3 votes, 11 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jmbaker" rel="nofollow">John Baker</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6052?redirect=false" rel="nofollow">SPR-6052</a></strong> and commented</p>
<p dir="auto">The following exception has been noted when the WL JMS drivers failed to connect:</p>
<p dir="auto">Exception in thread "jms.jobs.messageListenerContainer.SRUpdateFromSiebel-1" java.lang.NullPointerException<br>
at java.lang.String.indexOf(String.java:1564)<br>
at java.lang.String.indexOf(String.java:1546)<br>
at org.springframework.jms.support.JmsUtils.buildExceptionMessage(JmsUtils.java:255)<br>
at org.springframework.jms.listener.DefaultMessageListenerContainer.handleListenerSetupFailure(DefaultMessageListenerContainer.java:745)<br>
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:897)<br>
at java.lang.Thread.run(Thread.java:595)</p>
<p dir="auto">The problem is this line of code in JmsUtils.buildException:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if (linkedEx != null &amp;&amp; message.indexOf(linkedEx.getMessage()) == -1) {"><pre class="notranslate"><code class="notranslate">if (linkedEx != null &amp;&amp; message.indexOf(linkedEx.getMessage()) == -1) {
</code></pre></div>
<p dir="auto">linkedEx may not be null, but the message can be null, so it simply need to be:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if (linkedEx != null &amp;&amp; linkedEx.getMessage() != null &amp;&amp; message.indexOf(linkedEx.getMessage()) == -1) {"><pre class="notranslate"><code class="notranslate">if (linkedEx != null &amp;&amp; linkedEx.getMessage() != null &amp;&amp; message.indexOf(linkedEx.getMessage()) == -1) {
</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="398091774" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9948" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9948/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9948">#9948</a> JmsUtils.buildExceptionMessage throws NPE if the linked exception doesn't have a message (<em><strong>"duplicates"</strong></em>)</li>
</ul>