<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mdeinum" rel="nofollow">Marten Deinum</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4293?redirect=false" rel="nofollow">SPR-4293</a></strong> and commented</p>
<p dir="auto">java.lang.NoSuchMethodError: java.lang.Integer.valueOf(I)Ljava/lang/Integer;<br>
at org.springframework.jdbc.core.JdbcTemplate.extract ReturnedResults(JdbcTemplate.java:1018)<br>
at org.springframework.jdbc.core.JdbcTemplate$5.doInC allableStatement(JdbcTemplate.java:970)<br>
at org.springframework.jdbc.core.JdbcTemplate.execute (JdbcTemplate.java:911)<br>
at org.springframework.jdbc.core.JdbcTemplate.call(Jd bcTemplate.java:960)<br>
at org.springframework.jdbc.object.StoredProcedure.ex ecute(StoredProcedure.java:113)<br>
at com.lehman.ftg.reg.basel.database.ProcessUIJobRequ estImpl.processJob(ProcessUIJobRequestImpl.java:64 )<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:324)<br>
at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:301)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:182)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :149)<br>
at org.springframework.aop.framework.adapter.AfterRet urningAdviceInterceptor.invoke(AfterReturningAdvic eInterceptor.java:50)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)<br>
at org.springframework.aop.framework.adapter.MethodBe foreAdviceInterceptor.invoke(MethodBeforeAdviceInt erceptor.java:50)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)<br>
at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)<br>
at $Proxy380.processJob(Unknown Source)<br>
at com.lehman.ftg.reg.basel.database.FeedUploadDaoImp l.requestFeedFileProcessing(FeedUploadDaoImpl.java :28)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:324)<br>
at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:301)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:182)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :149)<br>
at org.springframework.aop.framework.adapter.AfterRet urningAdviceInterceptor.invoke(AfterReturningAdvic eInterceptor.java:50)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)<br>
at org.springframework.aop.framework.adapter.MethodBe foreAdviceInterceptor.invoke(MethodBeforeAdviceInt erceptor.java:50)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)<br>
at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)<br>
at $Proxy381.requestFeedFileProcessing(Unknown Source)<br>
at com.lehman.ftg.reg.basel.bizlogic.FeedsUploadManag erImpl.requestFeedFileProcessing(FeedsUploadManage rImpl.java:141)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:324)<br>
at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:301)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:182)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :149)<br>
at org.springframework.aop.framework.adapter.AfterRet urningAdviceInterceptor.invoke(AfterReturningAdvic eInterceptor.java:50)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)<br>
at org.springframework.aop.framework.adapter.MethodBe foreAdviceInterceptor.invoke(MethodBeforeAdviceInt erceptor.java:50)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)<br>
at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)<br>
at $Proxy383.requestFeedFileProcessing(Unknown Source)</p>
<p dir="auto">JdbcTemplate usejava.lang.NoSuchMethodError: java.lang.Integer.valueOf(I)Ljava/lang/Integer;<br>
at org.springframework.jdbc.core.JdbcTemplate.extract ReturnedResults(JdbcTemplate.java:1018)<br>
at org.springframework.jdbc.core.JdbcTemplate$5.doInC allableStatement(JdbcTemplate.java:970)<br>
at org.springframework.jdbc.core.JdbcTemplate.execute (JdbcTemplate.java:911)<br>
at org.springframework.jdbc.core.JdbcTemplate.call(Jd bcTemplate.java:960)<br>
at org.springframework.jdbc.object.StoredProcedure.ex ecute(StoredProcedure.java:113)<br>
at com.lehman.ftg.reg.basel.database.ProcessUIJobRequ estImpl.processJob(ProcessUIJobRequestImpl.java:64 )<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:324)<br>
at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:301)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:182)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :149)<br>
at org.springframework.aop.framework.adapter.AfterRet urningAdviceInterceptor.invoke(AfterReturningAdvic eInterceptor.java:50)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)<br>
at org.springframework.aop.framework.adapter.MethodBe foreAdviceInterceptor.invoke(MethodBeforeAdviceInt erceptor.java:50)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)<br>
at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)<br>
at $Proxy380.processJob(Unknown Source)<br>
at com.lehman.ftg.reg.basel.database.FeedUploadDaoImp l.requestFeedFileProcessing(FeedUploadDaoImpl.java :28)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:324)<br>
at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:301)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:182)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :149)<br>
at org.springframework.aop.framework.adapter.AfterRet urningAdviceInterceptor.invoke(AfterReturningAdvic eInterceptor.java:50)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)<br>
at org.springframework.aop.framework.adapter.MethodBe foreAdviceInterceptor.invoke(MethodBeforeAdviceInt erceptor.java:50)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)<br>
at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)<br>
at $Proxy381.requestFeedFileProcessing(Unknown Source)<br>
at com.lehman.ftg.reg.basel.bizlogic.FeedsUploadManag erImpl.requestFeedFileProcessing(FeedsUploadManage rImpl.java:141)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:324)<br>
at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:301)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:182)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :149)<br>
at org.springframework.aop.framework.adapter.AfterRet urningAdviceInterceptor.invoke(AfterReturningAdvic eInterceptor.java:50)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)<br>
at org.springframework.aop.framework.adapter.MethodBe foreAdviceInterceptor.invoke(MethodBeforeAdviceInt erceptor.java:50)<br>
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)<br>
at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)<br>
at $Proxy383.requestFeedFileProcessing(Unknown Source)</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5 final</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="398083512" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8893" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8893/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8893">#8893</a> JdbcTemplate extractReturnedResults uses Java 5 method of Integer class (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=eugenparaschiv" rel="nofollow">Eugen Paraschiv</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9791?redirect=false" rel="nofollow">SPR-9791</a></strong> and commented</p>
<p dir="auto">For the following (non-standard but not prohibited) usage of parameters in an URI:<br>
<code class="notranslate">http://localhost:8080/rest-sec/api/privilege?q=name=value</code><br>
Where the parameter should be (and indeed, both the browser as well as other libraries to parse it correctly like this):<br>
name = <code class="notranslate">q</code><br>
value = <code class="notranslate">name=jDiedXRD</code></p>
<p dir="auto">Instead of identifying the one parameter, <code class="notranslate">RestTemplate</code> incorrectly identifies two:<br>
<code class="notranslate">q=name</code><br>
<code class="notranslate">value=null</code><br>
This happens regardless of the fact that there isn't even a <code class="notranslate">&amp;</code> delimiter in the entire URI.</p>
<p dir="auto">This is because HttpUrlTemplate is used to parse the URI into <code class="notranslate">UriComponents</code>:<br>
<code class="notranslate">UriComponentsBuilder.fromUriString(uriTemplate).build();</code><br>
This essentially fails to properly break out the parameter the regex.</p>
<p dir="auto">Note: escaping the <code class="notranslate">=</code> character before using the template doesn't work either - the template escapes the entire URI again - which results in an invalid URI)</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.2</p>
<p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?129138-Possible-bug-in-RestTemplate-double-checking-before-opening-a-JIRA&amp;p=421494" rel="nofollow">http://forum.springsource.org/showthread.php?129138-Possible-bug-in-RestTemplate-double-checking-before-opening-a-JIRA&amp;p=421494</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="398153675" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14465" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14465/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14465">#14465</a> Erroneous "0" returned where empty string expected in call through the RestTemplate (<em><strong>"duplicates"</strong></em>)</li>
</ul>