BoneCP connection closed unexpectedly

1k Views Asked by At

I'm integrating DataNucleus with BoneCP-0.8.0-rc2 and I'm getting this exception, randomly:

javax.jdo.JDODataStoreException: No operations allowed after connection closed.
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:421)
at org.datanucleus.api.jdo.JDOQuery.execute(JDOQuery.java:230)

After reading this post, I have set

  • datanucleus.connectionPool.maxConnectionAgeInSeconds = 170 (seconds)

Other properties that I use:

  • datanucleus.connectionPool.minPoolSize=0
  • datanucleus.connectionPool.maxPoolSize=8

The local MySQL server where I tested this property has wait_timeout=28800 (seconds).

Since I added this new property, I'm getting the above exception more often than before.

Since the exception doesn't explicitly specify that the connection is closed by the driver, I assume it was closed by the connection manager.

Do you have any other clue what might cause this exception?

0

There are 0 best solutions below