liquibase.exception.MigrationFailedException: Migration failed for change set changelog-8.0.0.0.xml::8.0.0.0-30::scriptura: Reason: changelog-master.xml : liquibase.precondition.core.PrimaryKeyExistsPrecondition@3b0ca4c5 : null

JIRA | Chris Vesters | 2 years ago
  1. 0

    I have the following precondition: <primaryKeyExists primaryKeyName="USERATTRS_PKEY" tableName="USERATTRIBUTES"/> The database does contain the primary key. But when the precondition is checked a NullPointerException occurs: {noformat} May 5, 2015 4:46:55 PM CEST [pool-1-thread-18] [SEVERE] changelog-master.xml: changelog-8.0.0.0.xml::8.0.0.0-30::scriptura: Change Set changelog-8.0.0.0.xml::8.0.0.0-30::scriptura failed. Error: Migration failed for change set changelog-8.0.0.0.xml::8.0.0.0-30::scriptura: Reason: changelog-master.xml : liquibase.precondition.core.PrimaryKeyExistsPrecondition@3b0ca4c5 : null liquibase.exception.MigrationFailedException: Migration failed for change set changelog-8.0.0.0.xml::8.0.0.0-30::scriptura: Reason: changelog-master.xml : liquibase.precondition.core.PrimaryKeyExistsPrecondition@3b0ca4c5 : null at liquibase.changelog.ChangeSet.execute(ChangeSet.java:316) 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 id.security.auth.config.common.AbstractSecurityDatabaseListener.checkUpgradeDatabase(AbstractSecurityDatabaseListener.java:388) at com.id.security.auth.realm.oauth.db.HibernateDataAccess.onDatabaseConnectionReady(HibernateDataAccess.java:137) at id.security.auth.config.common.AbstractSecurityDatabaseListener.initializeSecurityDatabase(AbstractSecurityDatabaseListener.java:169) at id.security.auth.config.common.AbstractSecurityDatabaseListener.configurationChanged(AbstractSecurityDatabaseListener.java:305) at com.id.security.auth.realm.oauth.db.HibernateDataAccess.configurationChanged(HibernateDataAccess.java:619) at com.id.internal.configuration.impl.AbstractLeveledConfigurationService.notifyListeners(AbstractLeveledConfigurationService.java:352) at com.id.internal.configuration.impl.AbstractLeveledConfigurationService.endCompositeChange(AbstractLeveledConfigurationService.java:413) at com.id.internal.configuration.impl.AbstractLeveledConfigurationService.endCompositeChange(AbstractLeveledConfigurationService.java:401) at com.id.configuration.plugin.AbstractPluginConfiguration.endCompositeChange(AbstractPluginConfiguration.java:2232) at com.id.webapp.system.administration.firstrun.SetupService.initial(SetupService.java:530) at com.id.webapp.system.administration.firstrun.SetupService.setInitialConfiguration(SetupService.java:631) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$VoidOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:136) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:406) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:350) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:106) at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:259) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:267) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:319) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:236) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1028) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:373) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:381) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:344) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:219) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1448) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61) at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383) at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:368) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: liquibase.exception.PreconditionErrorException: Precondition Error at liquibase.precondition.core.PrimaryKeyExistsPrecondition.check(PrimaryKeyExistsPrecondition.java:84) at liquibase.precondition.core.NotPrecondition.check(NotPrecondition.java:33) at liquibase.precondition.core.AndPrecondition.check(AndPrecondition.java:37) at liquibase.precondition.core.PreconditionContainer.check(PreconditionContainer.java:199) at liquibase.precondition.core.AndPrecondition.check(AndPrecondition.java:37) at liquibase.precondition.core.PreconditionContainer.check(PreconditionContainer.java:199) at liquibase.changelog.ChangeSet.execute(ChangeSet.java:273) ... 83 more Caused by: java.lang.NullPointerException at liquibase.structure.core.PrimaryKey.toString(PrimaryKey.java:103) at java.lang.String.valueOf(String.java:2981) at java.lang.StringBuilder.append(StringBuilder.java:131) at java.util.AbstractCollection.toString(AbstractCollection.java:462) at liquibase.structure.DatabaseObjectCollection$1.compare(DatabaseObjectCollection.java:100) at liquibase.structure.DatabaseObjectCollection$1.compare(DatabaseObjectCollection.java:95) at java.util.TreeMap.compare(TreeMap.java:1291) at java.util.TreeMap.put(TreeMap.java:538) at java.util.TreeSet.add(TreeSet.java:255) at liquibase.structure.DatabaseObjectCollection.get(DatabaseObjectCollection.java:109) at liquibase.snapshot.DatabaseSnapshot.get(DatabaseSnapshot.java:230) at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:138) at liquibase.snapshot.SnapshotGeneratorFactory.has(SnapshotGeneratorFactory.java:91) at liquibase.precondition.core.PrimaryKeyExistsPrecondition.check(PrimaryKeyExistsPrecondition.java:74) ... 89 more {noformat} I have looked into it a bit, and noticed that the primary key gets found, stored in a cache, but when it is taken from that cache to be used a moment later it has lost an attribute. Because the 'table' attribute has vanished (or null) the exception gets thrown.

    JIRA | 2 years ago | Chris Vesters
    liquibase.exception.MigrationFailedException: Migration failed for change set changelog-8.0.0.0.xml::8.0.0.0-30::scriptura: Reason: changelog-master.xml : liquibase.precondition.core.PrimaryKeyExistsPrecondition@3b0ca4c5 : null
  2. 0

    I have the following precondition: <primaryKeyExists primaryKeyName="USERATTRS_PKEY" tableName="USERATTRIBUTES"/> The database does contain the primary key. But when the precondition is checked a NullPointerException occurs: {noformat} May 5, 2015 4:46:55 PM CEST [pool-1-thread-18] [SEVERE] changelog-master.xml: changelog-8.0.0.0.xml::8.0.0.0-30::scriptura: Change Set changelog-8.0.0.0.xml::8.0.0.0-30::scriptura failed. Error: Migration failed for change set changelog-8.0.0.0.xml::8.0.0.0-30::scriptura: Reason: changelog-master.xml : liquibase.precondition.core.PrimaryKeyExistsPrecondition@3b0ca4c5 : null liquibase.exception.MigrationFailedException: Migration failed for change set changelog-8.0.0.0.xml::8.0.0.0-30::scriptura: Reason: changelog-master.xml : liquibase.precondition.core.PrimaryKeyExistsPrecondition@3b0ca4c5 : null at liquibase.changelog.ChangeSet.execute(ChangeSet.java:316) 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 id.security.auth.config.common.AbstractSecurityDatabaseListener.checkUpgradeDatabase(AbstractSecurityDatabaseListener.java:388) at com.id.security.auth.realm.oauth.db.HibernateDataAccess.onDatabaseConnectionReady(HibernateDataAccess.java:137) at id.security.auth.config.common.AbstractSecurityDatabaseListener.initializeSecurityDatabase(AbstractSecurityDatabaseListener.java:169) at id.security.auth.config.common.AbstractSecurityDatabaseListener.configurationChanged(AbstractSecurityDatabaseListener.java:305) at com.id.security.auth.realm.oauth.db.HibernateDataAccess.configurationChanged(HibernateDataAccess.java:619) at com.id.internal.configuration.impl.AbstractLeveledConfigurationService.notifyListeners(AbstractLeveledConfigurationService.java:352) at com.id.internal.configuration.impl.AbstractLeveledConfigurationService.endCompositeChange(AbstractLeveledConfigurationService.java:413) at com.id.internal.configuration.impl.AbstractLeveledConfigurationService.endCompositeChange(AbstractLeveledConfigurationService.java:401) at com.id.configuration.plugin.AbstractPluginConfiguration.endCompositeChange(AbstractPluginConfiguration.java:2232) at com.id.webapp.system.administration.firstrun.SetupService.initial(SetupService.java:530) at com.id.webapp.system.administration.firstrun.SetupService.setInitialConfiguration(SetupService.java:631) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$VoidOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:136) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:406) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:350) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:106) at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:259) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:267) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:319) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:236) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1028) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:373) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:381) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:344) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:219) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1448) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61) at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383) at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:368) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: liquibase.exception.PreconditionErrorException: Precondition Error at liquibase.precondition.core.PrimaryKeyExistsPrecondition.check(PrimaryKeyExistsPrecondition.java:84) at liquibase.precondition.core.NotPrecondition.check(NotPrecondition.java:33) at liquibase.precondition.core.AndPrecondition.check(AndPrecondition.java:37) at liquibase.precondition.core.PreconditionContainer.check(PreconditionContainer.java:199) at liquibase.precondition.core.AndPrecondition.check(AndPrecondition.java:37) at liquibase.precondition.core.PreconditionContainer.check(PreconditionContainer.java:199) at liquibase.changelog.ChangeSet.execute(ChangeSet.java:273) ... 83 more Caused by: java.lang.NullPointerException at liquibase.structure.core.PrimaryKey.toString(PrimaryKey.java:103) at java.lang.String.valueOf(String.java:2981) at java.lang.StringBuilder.append(StringBuilder.java:131) at java.util.AbstractCollection.toString(AbstractCollection.java:462) at liquibase.structure.DatabaseObjectCollection$1.compare(DatabaseObjectCollection.java:100) at liquibase.structure.DatabaseObjectCollection$1.compare(DatabaseObjectCollection.java:95) at java.util.TreeMap.compare(TreeMap.java:1291) at java.util.TreeMap.put(TreeMap.java:538) at java.util.TreeSet.add(TreeSet.java:255) at liquibase.structure.DatabaseObjectCollection.get(DatabaseObjectCollection.java:109) at liquibase.snapshot.DatabaseSnapshot.get(DatabaseSnapshot.java:230) at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:138) at liquibase.snapshot.SnapshotGeneratorFactory.has(SnapshotGeneratorFactory.java:91) at liquibase.precondition.core.PrimaryKeyExistsPrecondition.check(PrimaryKeyExistsPrecondition.java:74) ... 89 more {noformat} I have looked into it a bit, and noticed that the primary key gets found, stored in a cache, but when it is taken from that cache to be used a moment later it has lost an attribute. Because the 'table' attribute has vanished (or null) the exception gets thrown.

    JIRA | 2 years ago | Chris Vesters
    liquibase.exception.MigrationFailedException: Migration failed for change set changelog-8.0.0.0.xml::8.0.0.0-30::scriptura: Reason: changelog-master.xml : liquibase.precondition.core.PrimaryKeyExistsPrecondition@3b0ca4c5 : null
  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.structure.core.PrimaryKey.toString()
    2. Liquibase Core
      PrimaryKey.toString
      1. liquibase.structure.core.PrimaryKey.toString(PrimaryKey.java:103)
      1 frame
    3. Java RT
      AbstractCollection.toString
      1. java.lang.String.valueOf(String.java:2981)
      2. java.lang.StringBuilder.append(StringBuilder.java:131)
      3. java.util.AbstractCollection.toString(AbstractCollection.java:462)
      3 frames
    4. Liquibase Core
      DatabaseObjectCollection$1.compare
      1. liquibase.structure.DatabaseObjectCollection$1.compare(DatabaseObjectCollection.java:100)
      2. liquibase.structure.DatabaseObjectCollection$1.compare(DatabaseObjectCollection.java:95)
      2 frames
    5. Java RT
      TreeSet.add
      1. java.util.TreeMap.compare(TreeMap.java:1291)
      2. java.util.TreeMap.put(TreeMap.java:538)
      3. java.util.TreeSet.add(TreeSet.java:255)
      3 frames
    6. Liquibase Core
      Liquibase.update
      1. liquibase.structure.DatabaseObjectCollection.get(DatabaseObjectCollection.java:109)
      2. liquibase.snapshot.DatabaseSnapshot.get(DatabaseSnapshot.java:230)
      3. liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:138)
      4. liquibase.snapshot.SnapshotGeneratorFactory.has(SnapshotGeneratorFactory.java:91)
      5. liquibase.precondition.core.PrimaryKeyExistsPrecondition.check(PrimaryKeyExistsPrecondition.java:74)
      6. liquibase.precondition.core.NotPrecondition.check(NotPrecondition.java:33)
      7. liquibase.precondition.core.AndPrecondition.check(AndPrecondition.java:37)
      8. liquibase.precondition.core.PreconditionContainer.check(PreconditionContainer.java:199)
      9. liquibase.precondition.core.AndPrecondition.check(AndPrecondition.java:37)
      10. liquibase.precondition.core.PreconditionContainer.check(PreconditionContainer.java:199)
      11. liquibase.changelog.ChangeSet.execute(ChangeSet.java:273)
      12. liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:40)
      13. liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:64)
      14. liquibase.Liquibase.update(Liquibase.java:202)
      14 frames
    7. id.security.auth
      AbstractSecurityDatabaseListener.checkUpgradeDatabase
      1. id.security.auth.config.common.AbstractSecurityDatabaseListener.checkUpgradeDatabase(AbstractSecurityDatabaseListener.java:388)
      1 frame
    8. com.id.security
      HibernateDataAccess.onDatabaseConnectionReady
      1. com.id.security.auth.realm.oauth.db.HibernateDataAccess.onDatabaseConnectionReady(HibernateDataAccess.java:137)
      1 frame
    9. id.security.auth
      AbstractSecurityDatabaseListener.configurationChanged
      1. id.security.auth.config.common.AbstractSecurityDatabaseListener.initializeSecurityDatabase(AbstractSecurityDatabaseListener.java:169)
      2. id.security.auth.config.common.AbstractSecurityDatabaseListener.configurationChanged(AbstractSecurityDatabaseListener.java:305)
      2 frames
    10. com.id.security
      HibernateDataAccess.configurationChanged
      1. com.id.security.auth.realm.oauth.db.HibernateDataAccess.configurationChanged(HibernateDataAccess.java:619)
      1 frame
    11. com.id.internal
      AbstractLeveledConfigurationService.endCompositeChange
      1. com.id.internal.configuration.impl.AbstractLeveledConfigurationService.notifyListeners(AbstractLeveledConfigurationService.java:352)
      2. com.id.internal.configuration.impl.AbstractLeveledConfigurationService.endCompositeChange(AbstractLeveledConfigurationService.java:413)
      3. com.id.internal.configuration.impl.AbstractLeveledConfigurationService.endCompositeChange(AbstractLeveledConfigurationService.java:401)
      3 frames
    12. com.id.configuration
      AbstractPluginConfiguration.endCompositeChange
      1. com.id.configuration.plugin.AbstractPluginConfiguration.endCompositeChange(AbstractPluginConfiguration.java:2232)
      1 frame
    13. com.id.webapp
      SetupService.setInitialConfiguration
      1. com.id.webapp.system.administration.firstrun.SetupService.initial(SetupService.java:530)
      2. com.id.webapp.system.administration.firstrun.SetupService.setInitialConfiguration(SetupService.java:631)
      2 frames
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:483)
      4 frames
    15. jersey-core-server
      ServerRuntime$1.run
      1. org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
      2. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151)
      3. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171)
      4. org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$VoidOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:136)
      5. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)
      6. org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:406)
      7. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:350)
      8. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:106)
      9. org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:259)
      9 frames
    16. Jersey Core
      RequestScope.runInScope
      1. org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
      2. org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
      3. org.glassfish.jersey.internal.Errors.process(Errors.java:315)
      4. org.glassfish.jersey.internal.Errors.process(Errors.java:297)
      5. org.glassfish.jersey.internal.Errors.process(Errors.java:267)
      6. org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:319)
      6 frames
    17. jersey-core-server
      ApplicationHandler.handle
      1. org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:236)
      2. org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1028)
      2 frames
    18. jersey-container-servlet-core
      ServletContainer.service
      1. org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:373)
      2. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:381)
      3. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:344)
      4. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:219)
      4 frames
    19. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669)
      2. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1448)
      2 frames
    20. Shiro
      OncePerRequestFilter.doFilter
      1. org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
      2. org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
      3. org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
      4. org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
      5. org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
      6. org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
      7. org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
      8. org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
      9. org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
      10. org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
      11. org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
      12. org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
      13. org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
      14. org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
      15. org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
      16. org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
      16 frames
    21. Jetty
      AsyncHttpConnection.handle
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
      3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
      4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
      5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
      6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
      7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
      8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
      9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
      10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      11. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
      12. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
      13. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
      14. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      15. org.eclipse.jetty.server.Server.handle(Server.java:368)
      16. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
      17. org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953)
      18. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014)
      19. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
      20. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
      21. org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
      21 frames
    22. GWT dev
      SelectChannelEndPoint$1.run
      1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
      2. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
      2 frames
    23. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames