liquibase.exception.ServiceNotFoundException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • C:\!MyApp\build.xml:619: Could not create type updateDatabase due to liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: java.lang.NullPointerException at liquibase.logging.LogFactory.getLogger(LogFactory.java:19) at liquibase.logging.LogFactory.getLogger(LogFactory.java:30) at liquibase.integration.ant.BaseLiquibaseTask$LogRedirector.registerHandler(BaseLiquibaseTask.java:287) at liquibase.integration.ant.BaseLiquibaseTask$LogRedirector.redirectLogger(BaseLiquibaseTask.java:283) at liquibase.integration.ant.BaseLiquibaseTask.<init>(BaseLiquibaseTask.java:57) at liquibase.integration.ant.DatabaseUpdateTask.<init>(DatabaseUpdateTask.java:12) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.tools.ant.AntTypeDefinition.innerCreateAndSet(AntTypeDefinition.java:328) at org.apache.tools.ant.AntTypeDefinition.createAndSet(AntTypeDefinition.java:274) at org.apache.tools.ant.AntTypeDefinition.icreate(AntTypeDefinition.java:219) at org.apache.tools.ant.AntTypeDefinition.create(AntTypeDefinition.java:206) at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:285) at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:263) at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:417) at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:163) at org.apache.tools.ant.Task.perform(Task.java:347) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) at org.apache.tools.ant.Project.executeTarget(Project.java:1364) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1248) at org.apache.tools.ant.Main.runBuild(Main.java:851) at org.apache.tools.ant.Main.startAnt(Main.java:235) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Caused by: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: java.lang.NullPointerException at liquibase.servicelocator.ServiceLocator.newInstance(ServiceLocator.java:179) at liquibase.logging.LogFactory.getLogger(LogFactory.java:17) ... 28 more Caused by: liquibase.exception.ServiceNotFoundException: java.lang.NullPointerException at liquibase.servicelocator.ServiceLocator.findClasses(ServiceLocator.java:167) at liquibase.servicelocator.ServiceLocator.findClass(ServiceLocator.java:128) at liquibase.servicelocator.ServiceLocator.newInstance(ServiceLocator.java:177) ... 29 more Caused by: java.lang.NullPointerException at liquibase.servicelocator.DefaultPackageScanClassResolver.loadImplementationsInDirectory(DefaultPackageScanClassResolver.java:286) at liquibase.servicelocator.DefaultPackageScanClassResolver.loadImplementationsInDirectory(DefaultPackageScanClassResolver.java:295) at liquibase.servicelocator.DefaultPackageScanClassResolver.find(DefaultPackageScanClassResolver.java:203) at liquibase.servicelocator.DefaultPackageScanClassResolver.find(DefaultPackageScanClassResolver.java:113) at liquibase.servicelocator.DefaultPackageScanClassResolver.findImplementations(DefaultPackageScanClassResolver.java:83) at liquibase.servicelocator.ServiceLocator.findClassesImpl(ServiceLocator.java:189) at liquibase.servicelocator.ServiceLocator.findClasses(ServiceLocator.java:164) ... 31 more Total time: 10 seconds Note exclamation mark (!) in project path. It's a valid symbol for directory name. liquibase.servicelocator.DefaultPackageScanClassResolver lines 183-185: if (urlPath.indexOf('!') > 0) { urlPath = urlPath.substring(0, urlPath.indexOf('!')); } So with the example above it leaves just "C:\" and tries to search the whole drive for implementation.
    via by Anatoly Borodin,
  • C:\!MyApp\build.xml:619: Could not create type updateDatabase due to liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: java.lang.NullPointerException at liquibase.logging.LogFactory.getLogger(LogFactory.java:19) at liquibase.logging.LogFactory.getLogger(LogFactory.java:30) at liquibase.integration.ant.BaseLiquibaseTask$LogRedirector.registerHandler(BaseLiquibaseTask.java:287) at liquibase.integration.ant.BaseLiquibaseTask$LogRedirector.redirectLogger(BaseLiquibaseTask.java:283) at liquibase.integration.ant.BaseLiquibaseTask.<init>(BaseLiquibaseTask.java:57) at liquibase.integration.ant.DatabaseUpdateTask.<init>(DatabaseUpdateTask.java:12) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.tools.ant.AntTypeDefinition.innerCreateAndSet(AntTypeDefinition.java:328) at org.apache.tools.ant.AntTypeDefinition.createAndSet(AntTypeDefinition.java:274) at org.apache.tools.ant.AntTypeDefinition.icreate(AntTypeDefinition.java:219) at org.apache.tools.ant.AntTypeDefinition.create(AntTypeDefinition.java:206) at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:285) at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:263) at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:417) at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:163) at org.apache.tools.ant.Task.perform(Task.java:347) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) at org.apache.tools.ant.Project.executeTarget(Project.java:1364) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1248) at org.apache.tools.ant.Main.runBuild(Main.java:851) at org.apache.tools.ant.Main.startAnt(Main.java:235) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Caused by: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: java.lang.NullPointerException at liquibase.servicelocator.ServiceLocator.newInstance(ServiceLocator.java:179) at liquibase.logging.LogFactory.getLogger(LogFactory.java:17) ... 28 more Caused by: liquibase.exception.ServiceNotFoundException: java.lang.NullPointerException at liquibase.servicelocator.ServiceLocator.findClasses(ServiceLocator.java:167) at liquibase.servicelocator.ServiceLocator.findClass(ServiceLocator.java:128) at liquibase.servicelocator.ServiceLocator.newInstance(ServiceLocator.java:177) ... 29 more Caused by: java.lang.NullPointerException at liquibase.servicelocator.DefaultPackageScanClassResolver.loadImplementationsInDirectory(DefaultPackageScanClassResolver.java:286) at liquibase.servicelocator.DefaultPackageScanClassResolver.loadImplementationsInDirectory(DefaultPackageScanClassResolver.java:295) at liquibase.servicelocator.DefaultPackageScanClassResolver.find(DefaultPackageScanClassResolver.java:203) at liquibase.servicelocator.DefaultPackageScanClassResolver.find(DefaultPackageScanClassResolver.java:113) at liquibase.servicelocator.DefaultPackageScanClassResolver.findImplementations(DefaultPackageScanClassResolver.java:83) at liquibase.servicelocator.ServiceLocator.findClassesImpl(ServiceLocator.java:189) at liquibase.servicelocator.ServiceLocator.findClasses(ServiceLocator.java:164) ... 31 more Total time: 10 seconds Note exclamation mark (!) in project path. It's a valid symbol for directory name. liquibase.servicelocator.DefaultPackageScanClassResolver lines 183-185: if (urlPath.indexOf('!') > 0) { urlPath = urlPath.substring(0, urlPath.indexOf('!')); } So with the example above it leaves just "C:\" and tries to search the whole drive for implementation.
    via by Anatoly Borodin,
    • liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: java.lang.NullPointerException at liquibase.logging.LogFactory.getLogger(LogFactory.java:19) at liquibase.logging.LogFactory.getLogger(LogFactory.java:30) at liquibase.integration.ant.BaseLiquibaseTask$LogRedirector.registerHandler(BaseLiquibaseTask.java:287) at liquibase.integration.ant.BaseLiquibaseTask$LogRedirector.redirectLogger(BaseLiquibaseTask.java:283) at liquibase.integration.ant.BaseLiquibaseTask.<init>(BaseLiquibaseTask.java:57) at liquibase.integration.ant.DatabaseUpdateTask.<init>(DatabaseUpdateTask.java:12) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.tools.ant.AntTypeDefinition.innerCreateAndSet(AntTypeDefinition.java:328) at org.apache.tools.ant.AntTypeDefinition.createAndSet(AntTypeDefinition.java:274) at org.apache.tools.ant.AntTypeDefinition.icreate(AntTypeDefinition.java:219) at org.apache.tools.ant.AntTypeDefinition.create(AntTypeDefinition.java:206) at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:285) at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:263) at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:417) at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:163) at org.apache.tools.ant.Task.perform(Task.java:347) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) at org.apache.tools.ant.Project.executeTarget(Project.java:1364) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1248) at org.apache.tools.ant.Main.runBuild(Main.java:851) at org.apache.tools.ant.Main.startAnt(Main.java:235) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Caused by: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: java.lang.NullPointerException at liquibase.servicelocator.ServiceLocator.newInstance(ServiceLocator.java:179) at liquibase.logging.LogFactory.getLogger(LogFactory.java:17) ... 28 more Caused by: liquibase.exception.ServiceNotFoundException: java.lang.NullPointerException at liquibase.servicelocator.ServiceLocator.findClasses(ServiceLocator.java:167) at liquibase.servicelocator.ServiceLocator.findClass(ServiceLocator.java:128) at liquibase.servicelocator.ServiceLocator.newInstance(ServiceLocator.java:177) ... 29 more Caused by: java.lang.NullPointerException at liquibase.servicelocator.DefaultPackageScanClassResolver.loadImplementationsInDirectory(DefaultPackageScanClassResolver.java:286) at liquibase.servicelocator.DefaultPackageScanClassResolver.loadImplementationsInDirectory(DefaultPackageScanClassResolver.java:295) at liquibase.servicelocator.DefaultPackageScanClassResolver.find(DefaultPackageScanClassResolver.java:203) at liquibase.servicelocator.DefaultPackageScanClassResolver.find(DefaultPackageScanClassResolver.java:113) at liquibase.servicelocator.DefaultPackageScanClassResolver.findImplementations(DefaultPackageScanClassResolver.java:83) at liquibase.servicelocator.ServiceLocator.findClassesImpl(ServiceLocator.java:189) at liquibase.servicelocator.ServiceLocator.findClasses(ServiceLocator.java:164) ... 31 more
    No Bugmate found.