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
In what version(s) of Spring Integration are you seeing this issue?
6.2.3
Describe the bug
We use the spring integration distribution lock feature on our DB2 database. The lock table is created on DB2. Previously it was working well with spring boot 2.7.x and spring integration 5.5.x. But lately we upgrade springboot from 2.7.x to 3.x, the spring integration also got upgraded to 6.2.x, then when we run our application, we notice this issue - the update to the lock table is failed with 'bad SQL GRAMMER' error. Dig further,w e can see the log shows 'Invalida data conversion: Parameter instance instance 2024-03-25T07:43:xxxx is invalid for the requested conversion. ERRORCODE = -4461, SQLSTATE = 42851.
We digged the issue a bit, and found that the issue has nothing to do with spring-integration-core, but caused by spring-integration-jdbc. Because when we change our pom file, keep spring-integration-core at version 6.2.x, only downgrade spring-integration-jdbc to previous 5.5.x version, the issue was gone.
To Reproduce
The reproduce step is quite straightforward, prepare the DB2 environment, create the lock table, then write a springboot application with version 3.x to call the lock-obtaining method, then the issue will occur.
Expected behavior
Obtain the lock successfully.
Sample
The text was updated successfully, but these errors were encountered:
Fixes: #9050
Turns out not all JDBC drivers support a `LocalDateTime` type conversion.
* Use `Timestamp.valueOf(LocalDateTime)` for `TIMESTAMP` params of the queries
in the `DefaultLockRepository`
(cherry picked from commit f71a223)
Fixes: #9050
Turns out not all JDBC drivers support a `LocalDateTime` type conversion.
* Use `Timestamp.valueOf(LocalDateTime)` for `TIMESTAMP` params of the queries
in the `DefaultLockRepository`
(cherry picked from commit f71a223)
In what version(s) of Spring Integration are you seeing this issue?
6.2.3
Describe the bug
We use the spring integration distribution lock feature on our DB2 database. The lock table is created on DB2. Previously it was working well with spring boot 2.7.x and spring integration 5.5.x. But lately we upgrade springboot from 2.7.x to 3.x, the spring integration also got upgraded to 6.2.x, then when we run our application, we notice this issue - the update to the lock table is failed with 'bad SQL GRAMMER' error. Dig further,w e can see the log shows 'Invalida data conversion: Parameter instance instance 2024-03-25T07:43:xxxx is invalid for the requested conversion. ERRORCODE = -4461, SQLSTATE = 42851.
We digged the issue a bit, and found that the issue has nothing to do with spring-integration-core, but caused by spring-integration-jdbc. Because when we change our pom file, keep spring-integration-core at version 6.2.x, only downgrade spring-integration-jdbc to previous 5.5.x version, the issue was gone.
To Reproduce
The reproduce step is quite straightforward, prepare the DB2 environment, create the lock table, then write a springboot application with version 3.x to call the lock-obtaining method, then the issue will occur.
Expected behavior
Obtain the lock successfully.
Sample
The text was updated successfully, but these errors were encountered: