java.lang.NoClassDefFoundError: org/hibernate/sql/Alias

codedump.io | 5 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael and Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    Liquibase Hibernate Plugin Does Not Work

    Stack Overflow | 2 years ago | Jazzepi
    java.lang.NoClassDefFoundError: org/hibernate/sql/Alias
  2. 0

    Liquibase Hibernate Plugin Does Not Work (Java) - Codedump.io

    codedump.io | 5 months ago
    java.lang.NoClassDefFoundError: org/hibernate/sql/Alias
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    samebug tip
    This was caused by a failure to instantiate Kafka broker. Check your dependencies.
  5. 0
    samebug tip
    This exception normally means you either have to add the said class to your dependencies or you miswrote it. Look in the documentation of your library how to add it as a dependency.
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

    org.hibernate.sql.Alias

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    7. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    7 frames
  3. liquibase.ext.hibernate
    PrimaryKeySnapshotGenerator.<clinit>
    1. liquibase.ext.hibernate.snapshot.PrimaryKeySnapshotGenerator.<clinit>(PrimaryKeySnapshotGenerator.java:27)
    1 frame
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  5. Liquibase Core
    Main.main
    1. liquibase.snapshot.SnapshotGeneratorFactory.<init>(SnapshotGeneratorFactory.java:29)
    2. liquibase.snapshot.SnapshotGeneratorFactory.getInstance(SnapshotGeneratorFactory.java:43)
    3. liquibase.snapshot.SnapshotControl.addType(SnapshotControl.java:95)
    4. liquibase.snapshot.SnapshotControl.setTypes(SnapshotControl.java:88)
    5. liquibase.snapshot.SnapshotControl.<init>(SnapshotControl.java:25)
    6. liquibase.command.DiffCommand.createReferenceSnapshot(DiffCommand.java:185)
    7. liquibase.command.DiffCommand.createDiffResult(DiffCommand.java:140)
    8. liquibase.command.DiffToChangeLogCommand.run(DiffToChangeLogCommand.java:51)
    9. liquibase.command.AbstractCommand.execute(AbstractCommand.java:8)
    10. liquibase.integration.commandline.CommandLineUtils.doDiffToChangeLog(CommandLineUtils.java:121)
    11. liquibase.integration.commandline.Main.doMigration(Main.java:936)
    12. liquibase.integration.commandline.Main.run(Main.java:175)
    13. liquibase.integration.commandline.Main.main(Main.java:94)
    13 frames