<?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>Service Builder: cleanServiceBuilder throws  "The url cannot be null"</title>
  <link rel="self" href="https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110843871" />
  <subtitle>Service Builder: cleanServiceBuilder throws  "The url cannot be null"</subtitle>
  <id>https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110843871</id>
  <updated>2026-08-02T07:56:21Z</updated>
  <dc:date>2026-08-02T07:56:21Z</dc:date>
  <entry>
    <title>RE: Service Builder: cleanServiceBuilder throws  "The url cannot be null"</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119357755" />
    <author>
      <name>Mirto Silvio Busico</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119357755</id>
    <updated>2020-06-10T10:21:39Z</updated>
    <published>2020-06-10T10:21:39Z</published>
    <summary type="html">Hi, I gave up with this problem because of new Lifereay releases.&lt;br /&gt;Asap I&amp;#39;ll try to use the latest version I&amp;#39;ll try to replicate the isssue.&lt;br /&gt;&lt;br /&gt;Thanks</summary>
    <dc:creator>Mirto Silvio Busico</dc:creator>
    <dc:date>2020-06-10T10:21:39Z</dc:date>
  </entry>
  <entry>
    <title>RE: Service Builder: cleanServiceBuilder throws  "The url cannot be null"</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118874830" />
    <author>
      <name>Alejandro Alvarez</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118874830</id>
    <updated>2020-04-07T17:23:47Z</updated>
    <published>2020-04-07T17:23:47Z</published>
    <summary type="html">Hi, were you able to solve the issue, how?</summary>
    <dc:creator>Alejandro Alvarez</dc:creator>
    <dc:date>2020-04-07T17:23:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: Service Builder: cleanServiceBuilder throws  "The url cannot be null"</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110886209" />
    <author>
      <name>Mirto Silvio Busico</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110886209</id>
    <updated>2018-09-05T06:44:55Z</updated>
    <published>2018-09-05T06:44:55Z</published>
    <summary type="html">&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;I'll try asap&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Mirto Silvio Busico</dc:creator>
    <dc:date>2018-09-05T06:44:55Z</dc:date>
  </entry>
  <entry>
    <title>RE: Service Builder: cleanServiceBuilder throws  "The url cannot be null"</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110854754" />
    <author>
      <name>Minhchau Dang</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110854754</id>
    <updated>2018-08-31T16:49:49Z</updated>
    <published>2018-08-31T16:49:49Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;Mirto Silvio Busico:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;
      &lt;p&gt;This file contains&lt;/p&gt;
      &lt;pre&gt;
dependencies {
    compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bndlib", version: "3.5.0"
    compileOnly group: "com.liferay", name: "com.liferay.portal.spring.extender", version: "2.0.0"
    compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "3.0.0"
    compileOnly project(":modules:msb-db:msb-db-api")
}

buildService {
    apiDir = "../msb-db-api/src/main/java"
}

group = "msb.db"&lt;/pre&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;p&gt;About&amp;nbsp;jdbc.properties file, I cannot find this file in the
        directory tree and I didn't create this file.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;It doesn't look like you've configured anything for
  &lt;strong&gt;cleanServiceBuilder&lt;/strong&gt; at all. At a minimum, I would
  have expected to see the &lt;code&gt;dbSupport&lt;/code&gt; dependencies, as
  mentioned in the &lt;a href="https://dev.liferay.com/develop/reference/-/knowledge_base/7-1/db-support-gradle-plugin"&gt;DB
    Support Gradle Plugin&lt;/a&gt; documentation, since that tells the plugin
  which JDBC driver to use.&lt;/p&gt;
&lt;p&gt;So to summarize, based on what I see in your configuration right now,
  the Gradle tooling doesn't know which database to look at or where to
  find its database driver, and that's where your error is coming from.
  You have to manually modify your &lt;code&gt;build.gradle&lt;/code&gt; to set at
  least some of the properties described in the DB Support Gradle Plugin
  documentation to tell it what to do and where to find its dependencies.&lt;/p&gt;
&lt;p&gt;If you have no idea where to start, unfortunately there isn't any
  official documentation on how to configure and use that task, and
  there aren't any public-facing examples (most of the examples I know
  about are in private repositories), so you're mostly on your own.
  However, you can model the changes after the code sample that was
  provided to our QA team in order to test &lt;a href="https://issues.liferay.com/browse/LPS-76854"&gt;LPS-76854&lt;/a&gt;. It
  was created for 7.0, but it might work for 7.1.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Minhchau Dang</dc:creator>
    <dc:date>2018-08-31T16:49:49Z</dc:date>
  </entry>
  <entry>
    <title>RE: Service Builder: cleanServiceBuilder throws  "The url cannot be null"</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110848413" />
    <author>
      <name>Mirto Silvio Busico</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110848413</id>
    <updated>2018-08-31T08:10:12Z</updated>
    <published>2018-08-31T08:10:12Z</published>
    <summary type="html">&lt;p&gt;Well, I suppose you mean the the build.gradle file in the service
  directory tree (see screenshot below).&lt;/p&gt;
&lt;p&gt;This file contains&lt;/p&gt;
&lt;pre&gt;
dependencies {
    compileOnly group: &amp;quot;biz.aQute.bnd&amp;quot;, name: &amp;quot;biz.aQute.bndlib&amp;quot;, version: &amp;quot;3.5.0&amp;quot;
    compileOnly group: &amp;quot;com.liferay&amp;quot;, name: &amp;quot;com.liferay.portal.spring.extender&amp;quot;, version: &amp;quot;2.0.0&amp;quot;
    compileOnly group: &amp;quot;com.liferay.portal&amp;quot;, name: &amp;quot;com.liferay.portal.kernel&amp;quot;, version: &amp;quot;3.0.0&amp;quot;
    compileOnly project(&amp;quot;:modules:msb-db:msb-db-api&amp;quot;)
}

buildService {
    apiDir = &amp;quot;../msb-db-api/src/main/java&amp;quot;
}

group = &amp;quot;msb.db&amp;quot;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;About jdbc.properties file, I cannot find this file in the directory
  tree and I didn't create this file.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Mirto Silvio Busico</dc:creator>
    <dc:date>2018-08-31T08:10:12Z</dc:date>
  </entry>
  <entry>
    <title>RE: Service Builder: cleanServiceBuilder throws  "The url cannot be null"</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110847578" />
    <author>
      <name>Minhchau Dang</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110847578</id>
    <updated>2018-08-30T21:48:46Z</updated>
    <published>2018-08-30T21:48:46Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;Mirto Silvio Busico:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;
      &lt;p&gt;in LR 7.1 CE GA 1 using Liferay IDE, trying to use the gradle
        task&amp;nbsp;&lt;strong&gt;cleanServiceBuilder&lt;/strong&gt;&amp;nbsp;gives the error
          "&lt;strong&gt;The url cannot be null&lt;/strong&gt;"&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;Can you provide your &lt;code&gt;build.gradle&lt;/code&gt; and your
  &lt;code&gt;jdbc.properties&lt;/code&gt; (if you're using a properties file to
  configure the JDBC connection for &lt;strong&gt;cleanServiceBuilder&lt;/strong&gt;)?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Minhchau Dang</dc:creator>
    <dc:date>2018-08-30T21:48:46Z</dc:date>
  </entry>
  <entry>
    <title>Service Builder: cleanServiceBuilder throws  "The url cannot be null"</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110843870" />
    <author>
      <name>Mirto Silvio Busico</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110843870</id>
    <updated>2018-08-30T11:10:59Z</updated>
    <published>2018-08-30T11:10:59Z</published>
    <summary type="html">&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;in LR 7.1 CE GA 1 using Liferay IDE, trying to use the gradle
  task &lt;strong&gt;cleanServiceBuilder&lt;/strong&gt; gives the error
    &amp;quot;&lt;strong&gt;The url cannot be null&lt;/strong&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;pre&gt;
Working Directory: C:\appoggio\liferay\eclipse\wslr71ga1\msb\modules\msb-db\msb-db-service
Gradle User Home: C:\Users\mbusico\.gradle
Gradle Distribution: Gradle wrapper from target build
Gradle Version: 3.0
Java Home: C:\Program Files\Java\jdk1.8.0_171
JVM Arguments: None
Program Arguments: None
Build Scans Enabled: false
Offline Mode Enabled: false
Gradle Tasks: cleanServiceBuilder

:modules:msb-db:msb-db-service:cleanServiceBuilderException in thread &amp;quot;main&amp;quot; java.sql.SQLException: The url cannot be null
    at java.sql.DriverManager.getConnection(DriverManager.java:649)
    at java.sql.DriverManager.getConnection(DriverManager.java:247)
    at com.liferay.portal.tools.db.support.commands.BaseCommand.execute(BaseCommand.java:32)
    at com.liferay.portal.tools.db.support.DBSupport.main(DBSupport.java:75)
 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':modules:msb-db:msb-db-service:cleanServiceBuilder'.
&amp;gt; Process 'command 'C:\Program Files\Java\jdk1.8.0_171\bin\java.exe'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.89 secs
&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;What can I do?&lt;/p&gt;</summary>
    <dc:creator>Mirto Silvio Busico</dc:creator>
    <dc:date>2018-08-30T11:10:59Z</dc:date>
  </entry>
</feed>
