Issue 1:
Marten Deinum opened SPR-4293 and commented

java.lang.NoSuchMethodError: java.lang.Integer.valueOf(I)Ljava/lang/Integer;

at org.springframework.jdbc.core.JdbcTemplate.extract ReturnedResults(JdbcTemplate.java:1018)

at org.springframework.jdbc.core.JdbcTemplate$5.doInC allableStatement(JdbcTemplate.java:970)

at org.springframework.jdbc.core.JdbcTemplate.execute (JdbcTemplate.java:911)

at org.springframework.jdbc.core.JdbcTemplate.call(Jd bcTemplate.java:960)

at org.springframework.jdbc.object.StoredProcedure.ex ecute(StoredProcedure.java:113)

at com.lehman.ftg.reg.basel.database.ProcessUIJobRequ estImpl.processJob(ProcessUIJobRequestImpl.java:64 )

at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:301)

at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:182)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :149)

at org.springframework.aop.framework.adapter.AfterRet urningAdviceInterceptor.invoke(AfterReturningAdvic eInterceptor.java:50)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)

at org.springframework.aop.framework.adapter.MethodBe foreAdviceInterceptor.invoke(MethodBeforeAdviceInt erceptor.java:50)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)

at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)

at $Proxy380.processJob(Unknown Source)

at com.lehman.ftg.reg.basel.database.FeedUploadDaoImp l.requestFeedFileProcessing(FeedUploadDaoImpl.java :28)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:301)

at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:182)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :149)

at org.springframework.aop.framework.adapter.AfterRet urningAdviceInterceptor.invoke(AfterReturningAdvic eInterceptor.java:50)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)

at org.springframework.aop.framework.adapter.MethodBe foreAdviceInterceptor.invoke(MethodBeforeAdviceInt erceptor.java:50)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)

at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)

at $Proxy381.requestFeedFileProcessing(Unknown Source)

at com.lehman.ftg.reg.basel.bizlogic.FeedsUploadManag erImpl.requestFeedFileProcessing(FeedsUploadManage rImpl.java:141)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:301)

at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:182)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :149)

at org.springframework.aop.framework.adapter.AfterRet urningAdviceInterceptor.invoke(AfterReturningAdvic eInterceptor.java:50)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)

at org.springframework.aop.framework.adapter.MethodBe foreAdviceInterceptor.invoke(MethodBeforeAdviceInt erceptor.java:50)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)

at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)

at $Proxy383.requestFeedFileProcessing(Unknown Source)

JdbcTemplate usejava.lang.NoSuchMethodError: java.lang.Integer.valueOf(I)Ljava/lang/Integer;

at org.springframework.jdbc.core.JdbcTemplate.extract ReturnedResults(JdbcTemplate.java:1018)

at org.springframework.jdbc.core.JdbcTemplate$5.doInC allableStatement(JdbcTemplate.java:970)

at org.springframework.jdbc.core.JdbcTemplate.execute (JdbcTemplate.java:911)

at org.springframework.jdbc.core.JdbcTemplate.call(Jd bcTemplate.java:960)

at org.springframework.jdbc.object.StoredProcedure.ex ecute(StoredProcedure.java:113)

at com.lehman.ftg.reg.basel.database.ProcessUIJobRequ estImpl.processJob(ProcessUIJobRequestImpl.java:64 )

at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:301)

at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:182)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :149)

at org.springframework.aop.framework.adapter.AfterRet urningAdviceInterceptor.invoke(AfterReturningAdvic eInterceptor.java:50)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)

at org.springframework.aop.framework.adapter.MethodBe foreAdviceInterceptor.invoke(MethodBeforeAdviceInt erceptor.java:50)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)

at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)

at $Proxy380.processJob(Unknown Source)

at com.lehman.ftg.reg.basel.database.FeedUploadDaoImp l.requestFeedFileProcessing(FeedUploadDaoImpl.java :28)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:301)

at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:182)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :149)

at org.springframework.aop.framework.adapter.AfterRet urningAdviceInterceptor.invoke(AfterReturningAdvic eInterceptor.java:50)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)

at org.springframework.aop.framework.adapter.MethodBe foreAdviceInterceptor.invoke(MethodBeforeAdviceInt erceptor.java:50)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)

at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)

at $Proxy381.requestFeedFileProcessing(Unknown Source)

at com.lehman.ftg.reg.basel.bizlogic.FeedsUploadManag erImpl.requestFeedFileProcessing(FeedsUploadManage rImpl.java:141)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:301)

at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:182)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :149)

at org.springframework.aop.framework.adapter.AfterRet urningAdviceInterceptor.invoke(AfterReturningAdvic eInterceptor.java:50)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)

at org.springframework.aop.framework.adapter.MethodBe foreAdviceInterceptor.invoke(MethodBeforeAdviceInt erceptor.java:50)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)

at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)

at $Proxy383.requestFeedFileProcessing(Unknown Source)

Affects: 2.5 final

Issue Links:

#8893 JdbcTemplate extractReturnedResults uses Java 5 method of Integer class ("duplicates")

Issue 2:
Eugen Paraschiv opened SPR-9791 and commented

For the following (non-standard but not prohibited) usage of parameters in an URI:

http://localhost:8080/rest-sec/api/privilege?q=name=value

Where the parameter should be (and indeed, both the browser as well as other libraries to parse it correctly like this):

name = q

value = name=jDiedXRD

Instead of identifying the one parameter, RestTemplate incorrectly identifies two:

q=name

value=null

This happens regardless of the fact that there isn't even a & delimiter in the entire URI.

This is because HttpUrlTemplate is used to parse the URI into UriComponents:

UriComponentsBuilder.fromUriString(uriTemplate).build();

This essentially fails to properly break out the parameter the regex.

Note: escaping the = character before using the template doesn't work either - the template escapes the entire URI again - which results in an invalid URI)

Affects: 3.1.2

Reference URL: http://forum.springsource.org/showthread.php?129138-Possible-bug-in-RestTemplate-double-checking-before-opening-a-JIRA&p=421494

Issue Links:

#14465 Erroneous "0" returned where empty string expected in call through the RestTemplate ("duplicates")