liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: java.lang.NullPointerException

JIRA | Anatoly Borodin | 3 years ago
  1. 0

    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.

    JIRA | 3 years ago | Anatoly Borodin
    liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: java.lang.NullPointerException
  2. 0

    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.

    JIRA | 3 years ago | Anatoly Borodin
    liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.NullPointerException

      No message provided

      at liquibase.servicelocator.DefaultPackageScanClassResolver.loadImplementationsInDirectory()
    2. Liquibase Core
      DatabaseUpdateTask.<init>
      1. liquibase.servicelocator.DefaultPackageScanClassResolver.loadImplementationsInDirectory(DefaultPackageScanClassResolver.java:286)
      2. liquibase.servicelocator.DefaultPackageScanClassResolver.loadImplementationsInDirectory(DefaultPackageScanClassResolver.java:295)
      3. liquibase.servicelocator.DefaultPackageScanClassResolver.find(DefaultPackageScanClassResolver.java:203)
      4. liquibase.servicelocator.DefaultPackageScanClassResolver.find(DefaultPackageScanClassResolver.java:113)
      5. liquibase.servicelocator.DefaultPackageScanClassResolver.findImplementations(DefaultPackageScanClassResolver.java:83)
      6. liquibase.servicelocator.ServiceLocator.findClassesImpl(ServiceLocator.java:189)
      7. liquibase.servicelocator.ServiceLocator.findClasses(ServiceLocator.java:164)
      8. liquibase.servicelocator.ServiceLocator.findClass(ServiceLocator.java:128)
      9. liquibase.servicelocator.ServiceLocator.newInstance(ServiceLocator.java:177)
      10. liquibase.logging.LogFactory.getLogger(LogFactory.java:17)
      11. liquibase.logging.LogFactory.getLogger(LogFactory.java:30)
      12. liquibase.integration.ant.BaseLiquibaseTask$LogRedirector.registerHandler(BaseLiquibaseTask.java:287)
      13. liquibase.integration.ant.BaseLiquibaseTask$LogRedirector.redirectLogger(BaseLiquibaseTask.java:283)
      14. liquibase.integration.ant.BaseLiquibaseTask.<init>(BaseLiquibaseTask.java:57)
      15. liquibase.integration.ant.DatabaseUpdateTask.<init>(DatabaseUpdateTask.java:12)
      15 frames
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      4 frames
    4. Ant
      Main.startAnt
      1. org.apache.tools.ant.AntTypeDefinition.innerCreateAndSet(AntTypeDefinition.java:328)
      2. org.apache.tools.ant.AntTypeDefinition.createAndSet(AntTypeDefinition.java:274)
      3. org.apache.tools.ant.AntTypeDefinition.icreate(AntTypeDefinition.java:219)
      4. org.apache.tools.ant.AntTypeDefinition.create(AntTypeDefinition.java:206)
      5. org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:285)
      6. org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:263)
      7. org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:417)
      8. org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:163)
      9. org.apache.tools.ant.Task.perform(Task.java:347)
      10. org.apache.tools.ant.Target.execute(Target.java:435)
      11. org.apache.tools.ant.Target.performTasks(Target.java:456)
      12. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
      13. org.apache.tools.ant.Project.executeTarget(Project.java:1364)
      14. org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      15. org.apache.tools.ant.Project.executeTargets(Project.java:1248)
      16. org.apache.tools.ant.Main.runBuild(Main.java:851)
      17. org.apache.tools.ant.Main.startAnt(Main.java:235)
      17 frames
    5. 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