Liquibase attempting to load unrelated classes

I am using the Java Liquibase API with some deployment scripts written in Groovy. The groovy scripts and all dependencies are packaged together into a fat jar.

For some reason when we run this jar we get some weird errors. These do not block anything from happening. Everything works but we have tons of errors in the log where it looks like Liquibase is attempting to load the various groovy classes. We see multiple of the following error for each groovy class:

    [java] SEVERE 7/16/14 12:32 PM: liquibase: Cannot load class ‘bounce.class’ in classloader: sun.misc.Launcher$AppClassLoader@4af6ae1c.  Reason: java.lang.NullPointerException
    12:32:07      [java] java.lang.NullPointerException
    12:32:07      [java]     at liquibase.servicelocator.DefaultPackageScanClassResolver.loadClass(
    12:32:07      [java]     at liquibase.servicelocator.DefaultPackageScanClassResolver.loadImplementationsInJar(
    12:32:07      [java]     at liquibase.servicelocator.DefaultPackageScanClassResolver.findAllClasses(
    12:32:07      [java]     at liquibase.servicelocator.DefaultPackageScanClassResolver.find(
    12:32:07      [java]     at liquibase.servicelocator.DefaultPackageScanClassResolver.findImplementations(
    12:32:07      [java]     at liquibase.servicelocator.ServiceLocator.findClassesImpl(
    12:32:07      [java]     at liquibase.servicelocator.ServiceLocator.findClasses(
    12:32:07      [java]     at liquibase.changelog.ChangeLogHistoryServiceFactory.(
    12:32:07      [java]     at liquibase.changelog.ChangeLogHistoryServiceFactory.getInstance(
    12:32:07      [java]     at liquibase.changelog.ChangeLogHistoryServiceFactory$ Source)
    12:32:07      [java]     at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(
    12:32:07      [java]     at
    12:32:07      [java]     at
    12:32:07      [java]     at com.derp.LiquidbaseRunner.hasliquibaseTables(LiquidBaseRunner.groovy:46)

Liquibase’s extension system scans the jar files for classes that could be used by Liquibase. There is a list of packages to look in, however, that should limit the search.

There was a fix in the upcoming 3.2.1 around fat jars that may help. It should be out by the end of the week. If you are still having errors, could you run with logLevel=debug and post the output?