You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SimpleJdbcCall can't access synonyms in Oracle database [SPR-16478] #21022
in: dataIssues in data modules (jdbc, orm, oxm, tx)status: backportedAn issue that has been backported to maintenance branchestype: regressionA bug that is also a regression
After upgrading the Spring framework from <4.2.2.RELEASE> to <5.0.2.RELEASE> it is not possible to call a stored procedure with SimpleJdbcCall if it is behind a synonym in an Oracle database. I did not find any possibility to switch handling of synonyms on, so the only workaround was to use JdbcTemplate where everything worked.
Any chance you could test this against 4.3.14 as well? It'd be great to narrow the source of the regression a bit. I suspect it's between 4.3 and 5.0 since there were quite a few JDBC-related refactorings there, but it could also be a side effect of a change between 4.2.x and 4.3.x...
In general, any hint to what might go wrong here would be much appreciated. Specifically, what kind of syntax are you using on SimpleJdbcCall versus your direct JdbcTemplate usage?
in: dataIssues in data modules (jdbc, orm, oxm, tx)status: backportedAn issue that has been backported to maintenance branchestype: regressionA bug that is also a regression
Activity
spring-projects-issues commentedon Feb 8, 2018
Juergen Hoeller commented
Any chance you could test this against 4.3.14 as well? It'd be great to narrow the source of the regression a bit. I suspect it's between 4.3 and 5.0 since there were quite a few JDBC-related refactorings there, but it could also be a side effect of a change between 4.2.x and 4.3.x...
spring-projects-issues commentedon Feb 8, 2018
Juergen Hoeller commented
In general, any hint to what might go wrong here would be much appreciated. Specifically, what kind of syntax are you using on
SimpleJdbcCallversus your directJdbcTemplateusage?spring-projects-issues commentedon Feb 8, 2018
Ewgenij Sokolovski commented
Hello. I tested with <4.3.14.RELEASE> just now. It does not work. I get the
Unable to determine the correct call signature - no procedure/function/signature for 'STORED_PROCEDURE_NAME'
exception. The syntax of my call is quite simple :-)
With <4.2.2.RELEASE> everything is fine, I retested that also.
spring-projects-issues commentedon Feb 8, 2018
Juergen Hoeller commented
This seems to be caused by #18244. I suppose we'll have to relax that check again.
spring-projects-issues commentedon Feb 9, 2018
Juergen Hoeller commented
I've relaxed that check to just log a debug message on Oracle, assuming a non-exposed synonym.
Please give the upcoming
5.0.4.BUILD-SNAPSHOTa try and let me know whether it works for you! I'll backport the change to the 4.3.x branch ASAP.spring-projects-issues commentedon Feb 9, 2018
Ewgenij Sokolovski commented
That sounds great :-) Where can I get this 5.0.4.BUILD-SNAPSHOT?
I'll test it probably next week wednesday or thursday, since I leave for holiday now and will not have access to my project.
spring-projects-issues commentedon Feb 9, 2018
Juergen Hoeller commented
The easiest way to get snapshot guidance is on https://projects.spring.io/spring-framework/, choosing 5.0.4 snapshot from the "Quick Start" dropdown box. Simply speaking, you just need to add the https://repo.spring.io/libs-snapshot repository to your Maven setup and choose "5.0.4.BUILD-SNAPSHOT" as your version.
It'd be great to have your feedback late next week at least. We are going to release 5.0.4 in the morning of Monday February 19th.
spring-projects-issues commentedon Feb 14, 2018
Ewgenij Sokolovski commented
Hello, I tested with 5.0.4.BUILD-SNAPSHOT today. It worked out with synonyms! Thank you a lot for the prompt fix :-)