<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>DB connection problems when deploying ServiceBuilder</title>
  <link rel="self" href="https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121384522" />
  <subtitle>DB connection problems when deploying ServiceBuilder</subtitle>
  <id>https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121384522</id>
  <updated>2026-08-02T11:30:20Z</updated>
  <dc:date>2026-08-02T11:30:20Z</dc:date>
  <entry>
    <title>DB connection problems when deploying ServiceBuilder</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121384521" />
    <author>
      <name>Marc-Andre Gauthier</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121384521</id>
    <updated>2022-03-23T15:29:13Z</updated>
    <published>2022-03-23T15:29:13Z</published>
    <summary type="html">&lt;p&gt;I have a scheduled task which uses a service builder module connected
  to a external database. &lt;/p&gt;
&lt;p&gt;Each time we deploy the service builder module, we get a bunch of
  exceptions in the scheduled task. &lt;/p&gt;
&lt;p&gt;e.g. &lt;/p&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;p&gt;Caused by: java.sql.SQLException:
  com.mchange.v2.c3p0.ComboPooledDataSource[ identityToken -&amp;gt;
  fXTwF6h3, dataSourceName -&amp;gt; fXTwF6h3 ] has been closed() -- you can
  no longer use it.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;After a while, the task recovers from this but during the time we get
  the exceptions, the scheduled task can't perform successfully. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Anyone with a way to avoid this.&lt;/p&gt;
&lt;p&gt;Liferay CE 7.4&lt;/p&gt;</summary>
    <dc:creator>Marc-Andre Gauthier</dc:creator>
    <dc:date>2022-03-23T15:29:13Z</dc:date>
  </entry>
</feed>
