java.lang.NoClassDefFoundError: liquibase/database/core/CacheDatabase

JIRA | Peter Butkovic | 3 years ago
  1. 0

    liquibase core 3.1.1 with liquibase-modify-column 3.0 results in: {code} java.lang.NoClassDefFoundError: liquibase/database/core/CacheDatabase at liquibase.ext.modifycolumn.ModifyColumnGenerator.getModifyString(ModifyColumnGenerator.java:159) at liquibase.ext.modifycolumn.ModifyColumnGenerator.generateSql(ModifyColumnGenerator.java:55) at liquibase.ext.modifycolumn.ModifyColumnGenerator.generateSql(ModifyColumnGenerator.java:19) at liquibase.sqlgenerator.SqlGeneratorChain.generateSql(SqlGeneratorChain.java:30) at liquibase.sqlgenerator.SqlGeneratorFactory.generateSql(SqlGeneratorFactory.java:198) at liquibase.executor.AbstractExecutor.applyVisitors(AbstractExecutor.java:22) at liquibase.executor.jvm.JdbcExecutor.access$500(JdbcExecutor.java:35) at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:284) at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:54) at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:106) at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1189) at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1172) at liquibase.changelog.ChangeSet.execute(ChangeSet.java:352) at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:40) at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:64) at liquibase.Liquibase.update(Liquibase.java:202) at liquibase.Liquibase.update(Liquibase.java:181) at liquibase.integration.ant.DatabaseUpdateTask.executeWithLiquibaseClassloader(DatabaseUpdateTask.java:45) at liquibase.integration.ant.BaseLiquibaseTask.execute(BaseLiquibaseTask.java:71) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [30/1985] at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) [0/1985] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.Main.runBuild(Main.java:809) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Caused by: java.lang.ClassNotFoundException: liquibase.database.core.CacheDatabase at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1361) at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1311) at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1064) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 74 more {code} The problem seems to be introduced with commit: https://github.com/liquibase/liquibase/commit/7333d99f256ee8465015fd20bf1411a35aead442 Not sure which extension holds the problematic class now. Solution should be trivial, still I'm stuck here. btw: well, it seems to be liquibase-extensions, rather than core bug, but jira didn't let me enter the bug in liquibase-extensions for liquibase-modify-column.

    JIRA | 3 years ago | Peter Butkovic
    java.lang.NoClassDefFoundError: liquibase/database/core/CacheDatabase
  2. 0

    Ant jar missing classes

    GitHub | 4 years ago | FroMage
    java.lang.NoClassDefFoundError: com/redhat/ceylon/cmr/api/Logger
  3. 0

    Reified generics and Java interop

    GitHub | 4 years ago | gavinking
    java.lang.NoClassDefFoundError: com/redhat/ceylon/cmr/api/Logger
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How Do I Configure Buildr to run ScalaTest 2.11?

    Stack Overflow | 2 years ago
    java.lang.NoClassDefFoundError: scala/xml/MetaData
  6. 0

    Did OSX Java changes remove some ant functionally?

    Stack Overflow | 5 years ago | Mike2012
    java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormat

    4 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.lang.ClassNotFoundException

      liquibase.database.core.CacheDatabase

      at org.apache.tools.ant.AntClassLoader.findClassInComponents()
    2. Ant
      AntClassLoader.loadClass
      1. org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1361)
      2. org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1311)
      3. org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1064)
      3 frames
    3. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      1 frame
    4. liquibase.ext.modifycolumn
      ModifyColumnGenerator.generateSql
      1. liquibase.ext.modifycolumn.ModifyColumnGenerator.getModifyString(ModifyColumnGenerator.java:159)
      2. liquibase.ext.modifycolumn.ModifyColumnGenerator.generateSql(ModifyColumnGenerator.java:55)
      3. liquibase.ext.modifycolumn.ModifyColumnGenerator.generateSql(ModifyColumnGenerator.java:19)
      3 frames
    5. Liquibase Core
      BaseLiquibaseTask.execute
      1. liquibase.sqlgenerator.SqlGeneratorChain.generateSql(SqlGeneratorChain.java:30)
      2. liquibase.sqlgenerator.SqlGeneratorFactory.generateSql(SqlGeneratorFactory.java:198)
      3. liquibase.executor.AbstractExecutor.applyVisitors(AbstractExecutor.java:22)
      4. liquibase.executor.jvm.JdbcExecutor.access$500(JdbcExecutor.java:35)
      5. liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:284)
      6. liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:54)
      7. liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:106)
      8. liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1189)
      9. liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1172)
      10. liquibase.changelog.ChangeSet.execute(ChangeSet.java:352)
      11. liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:40)
      12. liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:64)
      13. liquibase.Liquibase.update(Liquibase.java:202)
      14. liquibase.Liquibase.update(Liquibase.java:181)
      15. liquibase.integration.ant.DatabaseUpdateTask.executeWithLiquibaseClassloader(DatabaseUpdateTask.java:45)
      16. liquibase.integration.ant.BaseLiquibaseTask.execute(BaseLiquibaseTask.java:71)
      16 frames
    6. Ant
      UnknownElement.execute
      1. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    8. Ant
      UnknownElement.execute
      1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      2. org.apache.tools.ant.Task.perform(Task.java:348)
      3. org.apache.tools.ant.Target.execute(Target.java:390)
      4. org.apache.tools.ant.Target.performTasks(Target.java:411)
      5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
      6. org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
      7. org.apache.tools.ant.Project.executeTargets(Project.java:1251)
      8. org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
      9. org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
      10. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      10 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    10. Ant
      Sequential.execute
      1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      2. org.apache.tools.ant.Task.perform(Task.java:348)
      3. org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
      3 frames
    11. Ant-Contrib Tasks
      IfTask.execute
      1. net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
      1 frame
    12. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    13. Ant
      UnknownElement.execute
      1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      2. org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
      3. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      3 frames
    14. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    15. Ant
      UnknownElement.execute
      1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      2. org.apache.tools.ant.Task.perform(Task.java:348)
      3. org.apache.tools.ant.Target.execute(Target.java:390)
      4. org.apache.tools.ant.Target.performTasks(Target.java:411)
      5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
      6. org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
      7. org.apache.tools.ant.Project.executeTargets(Project.java:1251)
      8. org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
      9. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      9 frames
    16. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    17. Ant
      Main.startAnt
      1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      2. org.apache.tools.ant.Task.perform(Task.java:348)
      3. org.apache.tools.ant.Target.execute(Target.java:390)
      4. org.apache.tools.ant.Target.performTasks(Target.java:411)
      5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
      6. org.apache.tools.ant.Project.executeTarget(Project.java:1368)
      7. org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      8. org.apache.tools.ant.Project.executeTargets(Project.java:1251)
      9. org.apache.tools.ant.Main.runBuild(Main.java:809)
      10. org.apache.tools.ant.Main.startAnt(Main.java:217)
      10 frames
    18. Apache Ant Launcher
      Launcher.main
      1. org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
      2. org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
      2 frames