Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
DB connection problems when deploying ServiceBuilder
I have a scheduled task which uses a service builder module connected to a external database.
Each time we deploy the service builder module, we get a bunch of exceptions in the scheduled task.
e.g.
com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.GenericJDBCException: Cannot open connection
Caused by: java.sql.SQLException: com.mchange.v2.c3p0.ComboPooledDataSource[ identityToken -> fXTwF6h3, dataSourceName -> fXTwF6h3 ] has been closed() -- you can no longer use it.
After a while, the task recovers from this but during the time we get the exceptions, the scheduled task can't perform successfully.
Anyone with a way to avoid this.
Liferay CE 7.4