Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Dizzfire
Contributor III
Contributor III

AMC/KARAF - Error Invalid or Stale Connection found in the Connection

Hi,
Since 2 days, I wish activate AMC database on my Job.
In TOS, I configurated my project settings to define AMC parameter database. 
In TOS environnement, my job works fine. I can see data in my AMC database.
However, when i deployed and executed my job in KARAF, I got this error message:
Error Invalid or Stale Connection found in the Connection
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Closed Connection: OraclePooledConnection.getConnection() - SQLException Ocurred:Invalid or Stale Connection found in the Connection Cache
        at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)         at org.springframework.jdbc.support.incrementer.AbstractSequenceMaxValueIncrementer.getNextKey(AbstractSequenceMaxValueI

To see the whole post, download it here
Labels (5)
1 Reply
Anonymous
Not applicable

The problem here is in the karaf container all database connections should be Datasources.
I suggest you build a data source to the AMC database.