DB connection problems when deploying ServiceBuilderDB connection problems when deploying ServiceBuilderhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1213845222024-03-29T02:30:34Z2024-03-29T02:30:34ZDB connection problems when deploying ServiceBuilderMarc-Andre Gauthierhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1213845212022-03-23T15:29:13Z2022-03-23T15:29:13Z<p>I have a scheduled task which uses a service builder module connected
to a external database. </p>
<p>Each time we deploy the service builder module, we get a bunch of
exceptions in the scheduled task. </p>
<p>e.g. </p>
<p>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</p>
<p>Caused by: java.sql.SQLException:
com.mchange.v2.c3p0.ComboPooledDataSource[ identityToken ->
fXTwF6h3, dataSourceName -> fXTwF6h3 ] has been closed() -- you can
no longer use it.</p>
<p> </p>
<p>After a while, the task recovers from this but during the time we get
the exceptions, the scheduled task can't perform successfully. </p>
<p> </p>
<p>Anyone with a way to avoid this.</p>
<p>Liferay CE 7.4</p