java.io.FileNotFoundException: class path resource [etl/2015/04/] cannot be resolved to URL because it does not exist

JIRA | Nick Verhelst | 2 years ago
  1. 0

    Following exception occurs when using 'includeAll' in the changelogfile, setting 'relativeToChangelogFile' to false & running liquibase from inside a jar: {code} 08:39:10,000 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 49) JBWEB000289: Servlet spring-dispatcher threw load() exception: java.lang.NullPointerException at liquibase.integration.spring.SpringLiquibase$SpringResourceOpener.isPrefixPresent(SpringLiquibase.java:173) [liquibase-core-3.3.3.jar:] at liquibase.integration.spring.SpringLiquibase$SpringResourceOpener.adjustClasspath(SpringLiquibase.java:169) [liquibase-core-3.3.3.jar:] at liquibase.integration.spring.SpringLiquibase$SpringResourceOpener.list(SpringLiquibase.java:135) [liquibase-core-3.3.3.jar:] at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:316) [liquibase-core-3.3.3.jar:] {code} If we set 'relativeToChangelogFile' to true, we get: {code} 08:43:06,108 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 17) JBWEB000289: Servlet spring-dispatcher threw load() exception: java.io.FileNotFoundException: class path resource [etl/2015/04/] cannot be resolved to URL because it does not exist at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:187) [spring-core-4.1.4.RELEASE.jar:4.1.4.RELEASE] at liquibase.integration.spring.SpringLiquibase$SpringResourceOpener.list(SpringLiquibase.java:138) [liquibase-core-3.3.3.jar:] at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:316) [liquibase-core-3.3.3.jar:] {code} In contrast, specifying the changeset-files manually by means of 'includes' in the changelog xml works correctly, so the directory/files are definitely included in the jar.

    JIRA | 2 years ago | Nick Verhelst
    java.io.FileNotFoundException: class path resource [etl/2015/04/] cannot be resolved to URL because it does not exist
  2. 0

    Following exception occurs when using 'includeAll' in the changelogfile, setting 'relativeToChangelogFile' to false & running liquibase from inside a jar: {code} 08:39:10,000 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 49) JBWEB000289: Servlet spring-dispatcher threw load() exception: java.lang.NullPointerException at liquibase.integration.spring.SpringLiquibase$SpringResourceOpener.isPrefixPresent(SpringLiquibase.java:173) [liquibase-core-3.3.3.jar:] at liquibase.integration.spring.SpringLiquibase$SpringResourceOpener.adjustClasspath(SpringLiquibase.java:169) [liquibase-core-3.3.3.jar:] at liquibase.integration.spring.SpringLiquibase$SpringResourceOpener.list(SpringLiquibase.java:135) [liquibase-core-3.3.3.jar:] at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:316) [liquibase-core-3.3.3.jar:] {code} If we set 'relativeToChangelogFile' to true, we get: {code} 08:43:06,108 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 17) JBWEB000289: Servlet spring-dispatcher threw load() exception: java.io.FileNotFoundException: class path resource [etl/2015/04/] cannot be resolved to URL because it does not exist at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:187) [spring-core-4.1.4.RELEASE.jar:4.1.4.RELEASE] at liquibase.integration.spring.SpringLiquibase$SpringResourceOpener.list(SpringLiquibase.java:138) [liquibase-core-3.3.3.jar:] at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:316) [liquibase-core-3.3.3.jar:] {code} In contrast, specifying the changeset-files manually by means of 'includes' in the changelog xml works correctly, so the directory/files are definitely included in the jar.

    JIRA | 2 years ago | Nick Verhelst
    java.io.FileNotFoundException: class path resource [etl/2015/04/] cannot be resolved to URL because it does not exist
  3. 0

    LocalContainerEntityManagerFactoryBean with Karaf, Spring, and JPA

    Stack Overflow | 1 year ago | Randy Leonard
    javax.persistence.PersistenceException: Unable to resolve persistence unit root URL
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Running maven liquidbase command on a new projects fails

    GitHub | 2 years ago | shacharsol
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.liquibase:liquibase-maven-plugin:3.3.2:diff (default-cli) on project jeces: Error setting up or running Liquibase: javax.persistence.PersistenceException: Unable to resolve persistence unit root URL
  6. 0

    Error running Liquibase-Hibernate with Spring Data JPA (and no persistence.xml file)

    GitHub | 2 years ago | jdubois
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.liquibase:liquibase-maven-plugin:3.3.0:diff (default-cli) on project jhipster: Error setting up or running Liquibase: javax.persistence.PersistenceException: Unable to resolve persistence unit root URL

    9 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.FileNotFoundException

      class path resource [etl/2015/04/] cannot be resolved to URL because it does not exist

      at org.springframework.core.io.ClassPathResource.getURL()
    2. Spring Core
      ClassPathResource.getURL
      1. org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:187)[spring-core-4.1.4.RELEASE.jar:4.1.4.RELEASE]
      1 frame
    3. Liquibase Core
      DatabaseChangeLog.includeAll
      1. liquibase.integration.spring.SpringLiquibase$SpringResourceOpener.list(SpringLiquibase.java:138)[liquibase-core-3.3.3.jar:]
      2. liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:316)[liquibase-core-3.3.3.jar:]
      2 frames