java.lang.NullPointerException: null

JIRA | Charlie Sharpsteen | 2 years ago
  1. 0

    Console Services dies if it cannot establish a connection to PostgreSQL during startup. This means that a transient database outage can take down the classifier and require manual intervention to restart {{pe-console-services}} as the agent will no longer recieve the {{puppet_enterprise::profile::console}} class which manages the state of this service. As a point of comparison, PuppetDB handles PostgreSQL outages gracefully by waiting for the database to come back online and then re-establishing a connection. h2. Reproduction Case Install a PE 3.7.1 all-in-one master, stop the PostgreSQL database and restart both the PuppetDB and Console Services daemons: {code} # service pe-postgresql stop Stopping pe-postgresql service: [ OK ] # service pe-puppetdb restart Stopping pe-puppetdb: [ OK ] Starting pe-puppetdb: [ OK ] # service pe-console-services restart Stopping pe-console-services: [ OK ] Starting pe-console-services: [ OK ] {code} h3. Outcome PuppetDB will be running, however Console Services will be dead: {code} # service pe-puppetdb status pe-puppetdb (pid 17346) is running... # service pe-console-services status pe-console-services dead but pid file exists {code} The {{/var/log/pe-console-services/console-services.log}} file will show an unhandled exception occurred during initialization which causes the service to proceed to shutdown: {code} 2015-01-07 19:15:17,882 ERROR [p.t.internal] Error during service init!!! org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:207) ~[console-services-release.jar:na] at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64) ~[console-services-release.jar:na] at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:136) ~[console-services-release.jar:na] at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:29) ~[console-services-release.jar:na] at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:21) ~[console-services-release.jar:na] at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:31) ~[console-services-release.jar:na] at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24) ~[console-services-release.jar:na] at org.postgresql.Driver.makeConnection(Driver.java:410) ~[console-services-release.jar:na] at org.postgresql.Driver.connect(Driver.java:280) ~[console-services-release.jar:na] at java.sql.DriverManager.getConnection(DriverManager.java:571) ~[na:1.7.0_71-icedtea] at java.sql.DriverManager.getConnection(DriverManager.java:187) ~[na:1.7.0_71-icedtea] at clojure.java.jdbc.deprecated$get_connection.invoke(deprecated.clj:182) ~[na:na] at clojure.java.jdbc.deprecated$with_connection_STAR_.invoke(deprecated.clj:305) ~[na:na] at migratus.database$eval24631$fn__24632.invoke(database.clj:196) ~[na:na] at clojure.lang.MultiFn.invoke(MultiFn.java:227) ~[console-services-release.jar:na] at migratus.core$migrate.invoke(core.clj:56) ~[na:na] at puppetlabs.rbac.db_utils$migrate_BANG_.invoke(db_utils.clj:37) ~[na:na] at puppetlabs.rbac.services.rbac$reify__22438$service_fnk__5284__auto___positional$reify__22445.init(rbac.clj:92) ~[na:na] at puppetlabs.trapperkeeper.services$eval5120$fn__5121$G__5112__5124.invoke(services.clj:12) ~[na:na] at puppetlabs.trapperkeeper.services$eval5120$fn__5121$G__5111__5128.invoke(services.clj:12) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:145) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fns.invoke(internal.clj:173) ~[na:na] at puppetlabs.trapperkeeper.internal$build_app_STAR_$reify__5977.init(internal.clj:437) [na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_$fn__5989.invoke(internal.clj:463) [na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_.invoke(internal.clj:462) [na:na] at puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke(core.clj:113) [na:na] at puppetlabs.trapperkeeper.core$run.invoke(core.clj:144) [na:na] at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:159) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:457) [console-services-release.jar:na] at clojure.lang.Var.invoke(Var.java:394) [console-services-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:165) [console-services-release.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [console-services-release.jar:na] at clojure.core$apply.invoke(core.clj:624) [console-services-release.jar:na] at puppetlabs.trapperkeeper.main$_main.doInvoke(main.clj:7) [console-services-release.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [console-services-release.jar:na] at puppetlabs.trapperkeeper.main.main(Unknown Source) [console-services-release.jar:na] Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.7.0_71-icedtea] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) ~[na:1.7.0_71-icedtea] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) ~[na:1.7.0_71-icedtea] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) ~[na:1.7.0_71-icedtea] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.7.0_71-icedtea] at java.net.Socket.connect(Socket.java:579) ~[na:1.7.0_71-icedtea] at java.net.Socket.connect(Socket.java:528) ~[na:1.7.0_71-icedtea] at org.postgresql.core.PGStream.<init>(PGStream.java:60) ~[console-services-release.jar:na] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:101) ~[console-services-release.jar:na] ... 35 common frames omitted 2015-01-07 19:15:17,893 INFO [p.t.internal] Beginning shutdown sequence 2015-01-07 19:15:17,901 ERROR [p.t.internal] Encountered error during shutdown sequence java.lang.IllegalStateException: Lifecycle function 'stop' for service 'puppetlabs.classifier.main/classifier-service' must return a context map (got: nil) at puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:152) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_BANG_$fn__5941.invoke(internal.clj:313) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_BANG_.invoke(internal.clj:312) [na:na] at puppetlabs.trapperkeeper.core$run_app.invoke(core.clj:133) [na:na] at puppetlabs.trapperkeeper.core$run.invoke(core.clj:148) [na:na] at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:159) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:457) [console-services-release.jar:na] at clojure.lang.Var.invoke(Var.java:394) [console-services-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:165) [console-services-release.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [console-services-release.jar:na] at clojure.core$apply.invoke(core.clj:624) [console-services-release.jar:na] at puppetlabs.trapperkeeper.main$_main.doInvoke(main.clj:7) [console-services-release.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [console-services-release.jar:na] at puppetlabs.trapperkeeper.main.main(Unknown Source) [console-services-release.jar:na] 2015-01-07 19:15:17,907 INFO [p.t.s.w.jetty9-service] Shutting down web server(s). 2015-01-07 19:15:17,909 ERROR [p.t.internal] Encountered error during shutdown sequence java.lang.NullPointerException: null at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:301) ~[console-services-release.jar:na] at puppetlabs.rbac.services.rbac$reify__22438$service_fnk__5284__auto___positional$reify__22445.stop(rbac.clj:113) ~[na:na] at puppetlabs.trapperkeeper.services$eval5120$fn__5147$G__5108__5150.invoke(services.clj:12) ~[na:na] at puppetlabs.trapperkeeper.services$eval5120$fn__5147$G__5107__5154.invoke(services.clj:12) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:145) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_BANG_$fn__5941.invoke(internal.clj:313) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_BANG_.invoke(internal.clj:312) [na:na] at puppetlabs.trapperkeeper.core$run_app.invoke(core.clj:133) [na:na] at puppetlabs.trapperkeeper.core$run.invoke(core.clj:148) [na:na] at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:159) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:457) [console-services-release.jar:na] at clojure.lang.Var.invoke(Var.java:394) [console-services-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:165) [console-services-release.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [console-services-release.jar:na] at clojure.core$apply.invoke(core.clj:624) [console-services-release.jar:na] at puppetlabs.trapperkeeper.main$_main.doInvoke(main.clj:7) [console-services-release.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [console-services-release.jar:na] at puppetlabs.trapperkeeper.main.main(Unknown Source) [console-services-release.jar:na] 2015-01-07 19:15:17,911 INFO [p.t.internal] Finished shutdown sequence {code} By contrast, PuppetDB stays up and waits for the database to come up. The {{/var/log/pe-puppetdb/pe-puppetdb.log}} log file shows: {code} 2015-01-07 19:24:32,947 ERROR [c.j.b.h.AbstractConnectionHook] Failed to acquire connection Sleeping for 7000ms and trying again. Attempts left: 3. Exception: java.net.ConnectException: Connection refused {code} h3. Expected Outcome Console Services behaves similar to PuppetDB and successfully starts up if PostgreSQL is not running. Instead of shutting down, Console Services should remain up and wait for the database.

    JIRA | 2 years ago | Charlie Sharpsteen
    java.lang.NullPointerException: null
  2. 0

    Console Services dies if it cannot establish a connection to PostgreSQL during startup. This means that a transient database outage can take down the classifier and require manual intervention to restart {{pe-console-services}} as the agent will no longer recieve the {{puppet_enterprise::profile::console}} class which manages the state of this service. As a point of comparison, PuppetDB handles PostgreSQL outages gracefully by waiting for the database to come back online and then re-establishing a connection. h2. Reproduction Case Install a PE 3.7.1 all-in-one master, stop the PostgreSQL database and restart both the PuppetDB and Console Services daemons: {code} # service pe-postgresql stop Stopping pe-postgresql service: [ OK ] # service pe-puppetdb restart Stopping pe-puppetdb: [ OK ] Starting pe-puppetdb: [ OK ] # service pe-console-services restart Stopping pe-console-services: [ OK ] Starting pe-console-services: [ OK ] {code} h3. Outcome PuppetDB will be running, however Console Services will be dead: {code} # service pe-puppetdb status pe-puppetdb (pid 17346) is running... # service pe-console-services status pe-console-services dead but pid file exists {code} The {{/var/log/pe-console-services/console-services.log}} file will show an unhandled exception occurred during initialization which causes the service to proceed to shutdown: {code} 2015-01-07 19:15:17,882 ERROR [p.t.internal] Error during service init!!! org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:207) ~[console-services-release.jar:na] at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64) ~[console-services-release.jar:na] at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:136) ~[console-services-release.jar:na] at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:29) ~[console-services-release.jar:na] at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:21) ~[console-services-release.jar:na] at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:31) ~[console-services-release.jar:na] at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24) ~[console-services-release.jar:na] at org.postgresql.Driver.makeConnection(Driver.java:410) ~[console-services-release.jar:na] at org.postgresql.Driver.connect(Driver.java:280) ~[console-services-release.jar:na] at java.sql.DriverManager.getConnection(DriverManager.java:571) ~[na:1.7.0_71-icedtea] at java.sql.DriverManager.getConnection(DriverManager.java:187) ~[na:1.7.0_71-icedtea] at clojure.java.jdbc.deprecated$get_connection.invoke(deprecated.clj:182) ~[na:na] at clojure.java.jdbc.deprecated$with_connection_STAR_.invoke(deprecated.clj:305) ~[na:na] at migratus.database$eval24631$fn__24632.invoke(database.clj:196) ~[na:na] at clojure.lang.MultiFn.invoke(MultiFn.java:227) ~[console-services-release.jar:na] at migratus.core$migrate.invoke(core.clj:56) ~[na:na] at puppetlabs.rbac.db_utils$migrate_BANG_.invoke(db_utils.clj:37) ~[na:na] at puppetlabs.rbac.services.rbac$reify__22438$service_fnk__5284__auto___positional$reify__22445.init(rbac.clj:92) ~[na:na] at puppetlabs.trapperkeeper.services$eval5120$fn__5121$G__5112__5124.invoke(services.clj:12) ~[na:na] at puppetlabs.trapperkeeper.services$eval5120$fn__5121$G__5111__5128.invoke(services.clj:12) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:145) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fns.invoke(internal.clj:173) ~[na:na] at puppetlabs.trapperkeeper.internal$build_app_STAR_$reify__5977.init(internal.clj:437) [na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_$fn__5989.invoke(internal.clj:463) [na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_.invoke(internal.clj:462) [na:na] at puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke(core.clj:113) [na:na] at puppetlabs.trapperkeeper.core$run.invoke(core.clj:144) [na:na] at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:159) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:457) [console-services-release.jar:na] at clojure.lang.Var.invoke(Var.java:394) [console-services-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:165) [console-services-release.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [console-services-release.jar:na] at clojure.core$apply.invoke(core.clj:624) [console-services-release.jar:na] at puppetlabs.trapperkeeper.main$_main.doInvoke(main.clj:7) [console-services-release.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [console-services-release.jar:na] at puppetlabs.trapperkeeper.main.main(Unknown Source) [console-services-release.jar:na] Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.7.0_71-icedtea] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) ~[na:1.7.0_71-icedtea] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) ~[na:1.7.0_71-icedtea] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) ~[na:1.7.0_71-icedtea] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.7.0_71-icedtea] at java.net.Socket.connect(Socket.java:579) ~[na:1.7.0_71-icedtea] at java.net.Socket.connect(Socket.java:528) ~[na:1.7.0_71-icedtea] at org.postgresql.core.PGStream.<init>(PGStream.java:60) ~[console-services-release.jar:na] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:101) ~[console-services-release.jar:na] ... 35 common frames omitted 2015-01-07 19:15:17,893 INFO [p.t.internal] Beginning shutdown sequence 2015-01-07 19:15:17,901 ERROR [p.t.internal] Encountered error during shutdown sequence java.lang.IllegalStateException: Lifecycle function 'stop' for service 'puppetlabs.classifier.main/classifier-service' must return a context map (got: nil) at puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:152) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_BANG_$fn__5941.invoke(internal.clj:313) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_BANG_.invoke(internal.clj:312) [na:na] at puppetlabs.trapperkeeper.core$run_app.invoke(core.clj:133) [na:na] at puppetlabs.trapperkeeper.core$run.invoke(core.clj:148) [na:na] at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:159) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:457) [console-services-release.jar:na] at clojure.lang.Var.invoke(Var.java:394) [console-services-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:165) [console-services-release.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [console-services-release.jar:na] at clojure.core$apply.invoke(core.clj:624) [console-services-release.jar:na] at puppetlabs.trapperkeeper.main$_main.doInvoke(main.clj:7) [console-services-release.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [console-services-release.jar:na] at puppetlabs.trapperkeeper.main.main(Unknown Source) [console-services-release.jar:na] 2015-01-07 19:15:17,907 INFO [p.t.s.w.jetty9-service] Shutting down web server(s). 2015-01-07 19:15:17,909 ERROR [p.t.internal] Encountered error during shutdown sequence java.lang.NullPointerException: null at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:301) ~[console-services-release.jar:na] at puppetlabs.rbac.services.rbac$reify__22438$service_fnk__5284__auto___positional$reify__22445.stop(rbac.clj:113) ~[na:na] at puppetlabs.trapperkeeper.services$eval5120$fn__5147$G__5108__5150.invoke(services.clj:12) ~[na:na] at puppetlabs.trapperkeeper.services$eval5120$fn__5147$G__5107__5154.invoke(services.clj:12) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:145) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_BANG_$fn__5941.invoke(internal.clj:313) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_BANG_.invoke(internal.clj:312) [na:na] at puppetlabs.trapperkeeper.core$run_app.invoke(core.clj:133) [na:na] at puppetlabs.trapperkeeper.core$run.invoke(core.clj:148) [na:na] at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:159) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:457) [console-services-release.jar:na] at clojure.lang.Var.invoke(Var.java:394) [console-services-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:165) [console-services-release.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [console-services-release.jar:na] at clojure.core$apply.invoke(core.clj:624) [console-services-release.jar:na] at puppetlabs.trapperkeeper.main$_main.doInvoke(main.clj:7) [console-services-release.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [console-services-release.jar:na] at puppetlabs.trapperkeeper.main.main(Unknown Source) [console-services-release.jar:na] 2015-01-07 19:15:17,911 INFO [p.t.internal] Finished shutdown sequence {code} By contrast, PuppetDB stays up and waits for the database to come up. The {{/var/log/pe-puppetdb/pe-puppetdb.log}} log file shows: {code} 2015-01-07 19:24:32,947 ERROR [c.j.b.h.AbstractConnectionHook] Failed to acquire connection Sleeping for 7000ms and trying again. Attempts left: 3. Exception: java.net.ConnectException: Connection refused {code} h3. Expected Outcome Console Services behaves similar to PuppetDB and successfully starts up if PostgreSQL is not running. Instead of shutting down, Console Services should remain up and wait for the database.

    JIRA | 2 years ago | Charlie Sharpsteen
    java.lang.NullPointerException: null
  3. 0

    this isn't necessarily unexpected, but we should either wrap it in a nicer error or default to always gc or never gc. {code} 2015-06-08 17:02:10,848 INFO [o.a.a.s.k.MessageDatabase] Recovery replayed 39 operations from the journal in 0.011 seconds. 2015-06-08 17:02:11,066 INFO [p.p.c.services] Starting query server 2015-06-08 17:02:11,085 INFO [o.e.j.s.h.ContextHandler] Started o.e.j.s.h.ContextHandler@751ccb10{/pdb/query,null,AVAILABLE} 2015-06-08 17:02:11,092 ERROR [p.t.internal] Error during service start!!! java.lang.IllegalArgumentException: null at java.util.concurrent.ScheduledThreadPoolExecutor.scheduleWithFixedDelay(ScheduledThreadPoolExecutor.java:586) ~[na:1.7.0_60] at overtone.at_at$schedule_job.invoke(at_at.clj:68) ~[na:na] at overtone.at_at$interspaced.doInvoke(at_at.clj:200) ~[na:na] at clojure.lang.RestFn.invoke(RestFn.java:445) [clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.cli.services$start_puppetdb$gc_task__26428.invoke(services.clj:313) ~[na:na] at puppetlabs.puppetdb.cli.services$start_puppetdb.invoke(services.clj:326) ~[na:na] at puppetlabs.puppetdb.cli.services$reify__26487$service_fnk__20134__auto___positional$reify__26498.start(services.clj:351) ~[na:na] at puppetlabs.trapperkeeper.services$eval19970$fn__19984$G__19960__19987.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.services$eval19970$fn__19984$G__19959__19991.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:152) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fns.invoke(internal.clj:180) ~[na:na] at puppetlabs.trapperkeeper.internal$build_app_STAR_$reify__20580.start(internal.clj:447) [na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_$fn__20592.invoke(internal.clj:471) [na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_.invoke(internal.clj:469) [na:na] at puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke(core.clj:115) [na:na] at puppetlabs.trapperkeeper.core$run.invoke(core.clj:144) [na:na] at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:161) [na:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) [clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.cli.services$fn__26524.doInvoke(services.clj:371) [na:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) [clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.utils$wrap_main$fn__6942$fn__6944.invoke(utils.clj:201) [na:na] at puppetlabs.puppetdb.utils$wrap_main$fn__6942.doInvoke(utils.clj:200) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:383) [clojure-1.7.0-RC1.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:156) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) [clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.core$run_command.invoke(core.clj:83) [na:na] at puppetlabs.puppetdb.core$_main.doInvoke(core.clj:91) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:436) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:388) [clojure-1.7.0-RC1.jar:na] at user$eval796.invoke(form-init8180642857868429837.clj:1) [na:na] at clojure.lang.Compiler.eval(Compiler.java:6792) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.eval(Compiler.java:6782) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.load(Compiler.java:7237) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.loadFile(Compiler.java:7175) [clojure-1.7.0-RC1.jar:na] at clojure.main$load_script.invoke(main.clj:275) [clojure-1.7.0-RC1.jar:na] at clojure.main$init_opt.invoke(main.clj:280) [clojure-1.7.0-RC1.jar:na] at clojure.main$initialize.invoke(main.clj:308) [clojure-1.7.0-RC1.jar:na] at clojure.main$null_opt.invoke(main.clj:343) [clojure-1.7.0-RC1.jar:na] at clojure.main$main.doInvoke(main.clj:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:383) [clojure-1.7.0-RC1.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:156) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [clojure-1.7.0-RC1.jar:na] at clojure.main.main(main.java:37) [clojure-1.7.0-RC1.jar:na] 2015-06-08 17:02:11,095 INFO [p.t.internal] Beginning shutdown sequence 2015-06-08 17:02:11,097 INFO [p.t.s.n.nrepl-service] Shutting down nREPL service 2015-06-08 17:02:11,099 ERROR [p.t.internal] Encountered error during shutdown sequence java.lang.NullPointerException: null at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:301) ~[clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.mq_listener$reify__29819$service_fnk__20134__auto___positional$reify__29829.stop(mq_listener.clj:388) ~[na:na] at puppetlabs.trapperkeeper.services$eval19970$fn__19997$G__19962__20000.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.services$eval19970$fn__19997$G__19961__20004.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:152) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_BANG_$fn__20544.invoke(internal.clj:320) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_BANG_.invoke(internal.clj:319) [na:na] at puppetlabs.trapperkeeper.core$run_app.invoke(core.clj:133) [na:na] at puppetlabs.trapperkeeper.core$run.invoke(core.clj:148) [na:na] at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:161) [na:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) [clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.cli.services$fn__26524.doInvoke(services.clj:371) [na:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) [clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.utils$wrap_main$fn__6942$fn__6944.invoke(utils.clj:201) [na:na] at puppetlabs.puppetdb.utils$wrap_main$fn__6942.doInvoke(utils.clj:200) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:383) [clojure-1.7.0-RC1.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:156) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) [clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.core$run_command.invoke(core.clj:83) [na:na] at puppetlabs.puppetdb.core$_main.doInvoke(core.clj:91) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:436) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:388) [clojure-1.7.0-RC1.jar:na] at user$eval796.invoke(form-init8180642857868429837.clj:1) [na:na] at clojure.lang.Compiler.eval(Compiler.java:6792) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.eval(Compiler.java:6782) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.load(Compiler.java:7237) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.loadFile(Compiler.java:7175) [clojure-1.7.0-RC1.jar:na] at clojure.main$load_script.invoke(main.clj:275) [clojure-1.7.0-RC1.jar:na] at clojure.main$init_opt.invoke(main.clj:280) [clojure-1.7.0-RC1.jar:na] at clojure.main$initialize.invoke(main.clj:308) [clojure-1.7.0-RC1.jar:na] at clojure.main$null_opt.invoke(main.clj:343) [clojure-1.7.0-RC1.jar:na] at clojure.main$main.doInvoke(main.clj:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:383) [clojure-1.7.0-RC1.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:156) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [clojure-1.7.0-RC1.jar:na] at clojure.main.main(main.java:37) [clojure-1.7.0-RC1.jar:na] 2015-06-08 17:02:11,102 INFO [p.p.c.services] Shutdown request received; puppetdb exiting. 2015-06-08 17:02:11,104 INFO [p.t.s.w.jetty9-service] Shutting down web server(s). 2015-06-08 17:02:11,105 INFO [p.t.s.w.jetty9-core] Shutting down web server. 2015-06-08 17:02:11,109 INFO [o.e.j.s.ServerConnector] Stopped ServerConnector@5cf0cece{HTTP/1.1}{0.0.0.0:8080} 2015-06-08 17:02:11,110 INFO [o.e.j.s.ServerConnector] Stopped ServerConnector@4f72e91c{SSL-HTTP/1.1}{0.0.0.0:8081} 2015-06-08 17:02:11,110 INFO [o.e.j.s.h.ContextHandler] Stopped o.e.j.s.h.ContextHandler@751ccb10{/pdb/query,null,UNAVAILABLE} 2015-06-08 17:02:11,113 INFO [p.t.s.w.jetty9-core] Web server shutdown 2015-06-08 17:02:11,114 INFO [p.t.internal] Finished shutdown sequence java.lang.IllegalArgumentException: null at java.util.concurrent.ScheduledThreadPoolExecutor.scheduleWithFixedDelay (ScheduledThreadPoolExecutor.java:586) overtone.at_at$schedule_job.invoke (at_at.clj:68) overtone.at_at$interspaced.doInvoke (at_at.clj:200) clojure.lang.RestFn.invoke (RestFn.java:445) puppetlabs.puppetdb.cli.services$start_puppetdb$gc_task__26428.invoke (services.clj:313) puppetlabs.puppetdb.cli.services$start_puppetdb.invoke (services.clj:326) puppetlabs.puppetdb.cli.services$reify__26487$service_fnk__20134__auto___positional$reify__26498.start (services.clj:351) puppetlabs.trapperkeeper.services$eval19970$fn__19984$G__19960__19987.invoke (services.clj:8) puppetlabs.trapperkeeper.services$eval19970$fn__19984$G__19959__19991.invoke (services.clj:8) puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke (internal.clj:152) puppetlabs.trapperkeeper.internal$run_lifecycle_fns.invoke (internal.clj:180) puppetlabs.trapperkeeper.internal$build_app_STAR_$reify__20580.start (internal.clj:447) puppetlabs.trapperkeeper.internal$boot_services_STAR_$fn__20592.invoke (internal.clj:471) puppetlabs.trapperkeeper.internal$boot_services_STAR_.invoke (internal.clj:469) puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke (core.clj:115) puppetlabs.trapperkeeper.core$run.invoke (core.clj:144) puppetlabs.trapperkeeper.core$main.doInvoke (core.clj:161) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invoke (core.clj:628) puppetlabs.puppetdb.cli.services$fn__26524.doInvoke (services.clj:371) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invoke (core.clj:628) puppetlabs.puppetdb.utils$wrap_main$fn__6942$fn__6944.invoke (utils.clj:201) puppetlabs.puppetdb.utils$wrap_main$fn__6942.doInvoke (utils.clj:200) clojure.lang.RestFn.invoke (RestFn.java:421) clojure.lang.Var.invoke (Var.java:383) clojure.lang.AFn.applyToHelper (AFn.java:156) clojure.lang.Var.applyTo (Var.java:700) clojure.core$apply.invoke (core.clj:628) puppetlabs.puppetdb.core$run_command.invoke (core.clj:83) puppetlabs.puppetdb.core$_main.doInvoke (core.clj:91) clojure.lang.RestFn.invoke (RestFn.java:436) clojure.lang.Var.invoke (Var.java:388) user$eval796.invoke (form-init8180642857868429837.clj:1) clojure.lang.Compiler.eval (Compiler.java:6792) clojure.lang.Compiler.eval (Compiler.java:6782) clojure.lang.Compiler.load (Compiler.java:7237) clojure.lang.Compiler.loadFile (Compiler.java:7175) clojure.main$load_script.invoke (main.clj:275) clojure.main$init_opt.invoke (main.clj:280) clojure.main$initialize.invoke (main.clj:308) clojure.main$null_opt.invoke (main.clj:343) clojure.main$main.doInvoke (main.clj:421) clojure.lang.RestFn.invoke (RestFn.java:421) clojure.lang.Var.invoke (Var.java:383) clojure.lang.AFn.applyToHelper (AFn.java:156) clojure.lang.Var.applyTo (Var.java:700) clojure.main.main (main.java:37) 2015-06-08 17:02:11,122 ERROR [p.t.logging] Uncaught exception java.lang.IllegalArgumentException: null at java.util.concurrent.ScheduledThreadPoolExecutor.scheduleWithFixedDelay(ScheduledThreadPoolExecutor.java:586) ~[na:1.7.0_60] at overtone.at_at$schedule_job.invoke(at_at.clj:68) ~[na:na] at overtone.at_at$interspaced.doInvoke(at_at.clj:200) ~[na:na] at clojure.lang.RestFn.invoke(RestFn.java:445) [clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.cli.services$start_puppetdb$gc_task__26428.invoke(services.clj:313) ~[na:na] at puppetlabs.puppetdb.cli.services$start_puppetdb.invoke(services.clj:326) ~[na:na] at puppetlabs.puppetdb.cli.services$reify__26487$service_fnk__20134__auto___positional$reify__26498.start(services.clj:351) ~[na:na] at puppetlabs.trapperkeeper.services$eval19970$fn__19984$G__19960__19987.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.services$eval19970$fn__19984$G__19959__19991.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:152) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fns.invoke(internal.clj:180) ~[na:na] at puppetlabs.trapperkeeper.internal$build_app_STAR_$reify__20580.start(internal.clj:447) ~[na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_$fn__20592.invoke(internal.clj:471) ~[na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_.invoke(internal.clj:469) ~[na:na] at puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke(core.clj:115) ~[na:na] at puppetlabs.trapperkeeper.core$run.invoke(core.clj:144) ~[na:na] at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:161) ~[na:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) ~[clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.cli.services$fn__26524.doInvoke(services.clj:371) ~[na:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) ~[clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.utils$wrap_main$fn__6942$fn__6944.invoke(utils.clj:201) ~[na:na] at puppetlabs.puppetdb.utils$wrap_main$fn__6942.doInvoke(utils.clj:200) ~[na:na] at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:383) [clojure-1.7.0-RC1.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:156) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) ~[clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.core$run_command.invoke(core.clj:83) ~[na:na] at puppetlabs.puppetdb.core$_main.doInvoke(core.clj:91) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:436) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:388) [clojure-1.7.0-RC1.jar:na] at user$eval796.invoke(form-init8180642857868429837.clj:1) [na:na] at clojure.lang.Compiler.eval(Compiler.java:6792) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.eval(Compiler.java:6782) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.load(Compiler.java:7237) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.loadFile(Compiler.java:7175) [clojure-1.7.0-RC1.jar:na] at clojure.main$load_script.invoke(main.clj:275) [clojure-1.7.0-RC1.jar:na] at clojure.main$init_opt.invoke(main.clj:280) [clojure-1.7.0-RC1.jar:na] at clojure.main$initialize.invoke(main.clj:308) [clojure-1.7.0-RC1.jar:na] at clojure.main$null_opt.invoke(main.clj:343) [clojure-1.7.0-RC1.jar:na] at clojure.main$main.doInvoke(main.clj:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:383) [clojure-1.7.0-RC1.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:156) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [clojure-1.7.0-RC1.jar:na] at clojure.main.main(main.java:37) [clojure-1.7.0-RC1.jar:na] [~/Documents/puppetdb] (master) $ {code}

    JIRA | 1 year ago | Wyatt Alt
    java.lang.NullPointerException: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    this isn't necessarily unexpected, but we should either wrap it in a nicer error or default to always gc or never gc. {code} 2015-06-08 17:02:10,848 INFO [o.a.a.s.k.MessageDatabase] Recovery replayed 39 operations from the journal in 0.011 seconds. 2015-06-08 17:02:11,066 INFO [p.p.c.services] Starting query server 2015-06-08 17:02:11,085 INFO [o.e.j.s.h.ContextHandler] Started o.e.j.s.h.ContextHandler@751ccb10{/pdb/query,null,AVAILABLE} 2015-06-08 17:02:11,092 ERROR [p.t.internal] Error during service start!!! java.lang.IllegalArgumentException: null at java.util.concurrent.ScheduledThreadPoolExecutor.scheduleWithFixedDelay(ScheduledThreadPoolExecutor.java:586) ~[na:1.7.0_60] at overtone.at_at$schedule_job.invoke(at_at.clj:68) ~[na:na] at overtone.at_at$interspaced.doInvoke(at_at.clj:200) ~[na:na] at clojure.lang.RestFn.invoke(RestFn.java:445) [clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.cli.services$start_puppetdb$gc_task__26428.invoke(services.clj:313) ~[na:na] at puppetlabs.puppetdb.cli.services$start_puppetdb.invoke(services.clj:326) ~[na:na] at puppetlabs.puppetdb.cli.services$reify__26487$service_fnk__20134__auto___positional$reify__26498.start(services.clj:351) ~[na:na] at puppetlabs.trapperkeeper.services$eval19970$fn__19984$G__19960__19987.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.services$eval19970$fn__19984$G__19959__19991.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:152) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fns.invoke(internal.clj:180) ~[na:na] at puppetlabs.trapperkeeper.internal$build_app_STAR_$reify__20580.start(internal.clj:447) [na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_$fn__20592.invoke(internal.clj:471) [na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_.invoke(internal.clj:469) [na:na] at puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke(core.clj:115) [na:na] at puppetlabs.trapperkeeper.core$run.invoke(core.clj:144) [na:na] at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:161) [na:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) [clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.cli.services$fn__26524.doInvoke(services.clj:371) [na:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) [clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.utils$wrap_main$fn__6942$fn__6944.invoke(utils.clj:201) [na:na] at puppetlabs.puppetdb.utils$wrap_main$fn__6942.doInvoke(utils.clj:200) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:383) [clojure-1.7.0-RC1.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:156) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) [clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.core$run_command.invoke(core.clj:83) [na:na] at puppetlabs.puppetdb.core$_main.doInvoke(core.clj:91) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:436) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:388) [clojure-1.7.0-RC1.jar:na] at user$eval796.invoke(form-init8180642857868429837.clj:1) [na:na] at clojure.lang.Compiler.eval(Compiler.java:6792) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.eval(Compiler.java:6782) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.load(Compiler.java:7237) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.loadFile(Compiler.java:7175) [clojure-1.7.0-RC1.jar:na] at clojure.main$load_script.invoke(main.clj:275) [clojure-1.7.0-RC1.jar:na] at clojure.main$init_opt.invoke(main.clj:280) [clojure-1.7.0-RC1.jar:na] at clojure.main$initialize.invoke(main.clj:308) [clojure-1.7.0-RC1.jar:na] at clojure.main$null_opt.invoke(main.clj:343) [clojure-1.7.0-RC1.jar:na] at clojure.main$main.doInvoke(main.clj:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:383) [clojure-1.7.0-RC1.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:156) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [clojure-1.7.0-RC1.jar:na] at clojure.main.main(main.java:37) [clojure-1.7.0-RC1.jar:na] 2015-06-08 17:02:11,095 INFO [p.t.internal] Beginning shutdown sequence 2015-06-08 17:02:11,097 INFO [p.t.s.n.nrepl-service] Shutting down nREPL service 2015-06-08 17:02:11,099 ERROR [p.t.internal] Encountered error during shutdown sequence java.lang.NullPointerException: null at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:301) ~[clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.mq_listener$reify__29819$service_fnk__20134__auto___positional$reify__29829.stop(mq_listener.clj:388) ~[na:na] at puppetlabs.trapperkeeper.services$eval19970$fn__19997$G__19962__20000.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.services$eval19970$fn__19997$G__19961__20004.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:152) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_BANG_$fn__20544.invoke(internal.clj:320) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_BANG_.invoke(internal.clj:319) [na:na] at puppetlabs.trapperkeeper.core$run_app.invoke(core.clj:133) [na:na] at puppetlabs.trapperkeeper.core$run.invoke(core.clj:148) [na:na] at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:161) [na:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) [clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.cli.services$fn__26524.doInvoke(services.clj:371) [na:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) [clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.utils$wrap_main$fn__6942$fn__6944.invoke(utils.clj:201) [na:na] at puppetlabs.puppetdb.utils$wrap_main$fn__6942.doInvoke(utils.clj:200) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:383) [clojure-1.7.0-RC1.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:156) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) [clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.core$run_command.invoke(core.clj:83) [na:na] at puppetlabs.puppetdb.core$_main.doInvoke(core.clj:91) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:436) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:388) [clojure-1.7.0-RC1.jar:na] at user$eval796.invoke(form-init8180642857868429837.clj:1) [na:na] at clojure.lang.Compiler.eval(Compiler.java:6792) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.eval(Compiler.java:6782) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.load(Compiler.java:7237) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.loadFile(Compiler.java:7175) [clojure-1.7.0-RC1.jar:na] at clojure.main$load_script.invoke(main.clj:275) [clojure-1.7.0-RC1.jar:na] at clojure.main$init_opt.invoke(main.clj:280) [clojure-1.7.0-RC1.jar:na] at clojure.main$initialize.invoke(main.clj:308) [clojure-1.7.0-RC1.jar:na] at clojure.main$null_opt.invoke(main.clj:343) [clojure-1.7.0-RC1.jar:na] at clojure.main$main.doInvoke(main.clj:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:383) [clojure-1.7.0-RC1.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:156) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [clojure-1.7.0-RC1.jar:na] at clojure.main.main(main.java:37) [clojure-1.7.0-RC1.jar:na] 2015-06-08 17:02:11,102 INFO [p.p.c.services] Shutdown request received; puppetdb exiting. 2015-06-08 17:02:11,104 INFO [p.t.s.w.jetty9-service] Shutting down web server(s). 2015-06-08 17:02:11,105 INFO [p.t.s.w.jetty9-core] Shutting down web server. 2015-06-08 17:02:11,109 INFO [o.e.j.s.ServerConnector] Stopped ServerConnector@5cf0cece{HTTP/1.1}{0.0.0.0:8080} 2015-06-08 17:02:11,110 INFO [o.e.j.s.ServerConnector] Stopped ServerConnector@4f72e91c{SSL-HTTP/1.1}{0.0.0.0:8081} 2015-06-08 17:02:11,110 INFO [o.e.j.s.h.ContextHandler] Stopped o.e.j.s.h.ContextHandler@751ccb10{/pdb/query,null,UNAVAILABLE} 2015-06-08 17:02:11,113 INFO [p.t.s.w.jetty9-core] Web server shutdown 2015-06-08 17:02:11,114 INFO [p.t.internal] Finished shutdown sequence java.lang.IllegalArgumentException: null at java.util.concurrent.ScheduledThreadPoolExecutor.scheduleWithFixedDelay (ScheduledThreadPoolExecutor.java:586) overtone.at_at$schedule_job.invoke (at_at.clj:68) overtone.at_at$interspaced.doInvoke (at_at.clj:200) clojure.lang.RestFn.invoke (RestFn.java:445) puppetlabs.puppetdb.cli.services$start_puppetdb$gc_task__26428.invoke (services.clj:313) puppetlabs.puppetdb.cli.services$start_puppetdb.invoke (services.clj:326) puppetlabs.puppetdb.cli.services$reify__26487$service_fnk__20134__auto___positional$reify__26498.start (services.clj:351) puppetlabs.trapperkeeper.services$eval19970$fn__19984$G__19960__19987.invoke (services.clj:8) puppetlabs.trapperkeeper.services$eval19970$fn__19984$G__19959__19991.invoke (services.clj:8) puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke (internal.clj:152) puppetlabs.trapperkeeper.internal$run_lifecycle_fns.invoke (internal.clj:180) puppetlabs.trapperkeeper.internal$build_app_STAR_$reify__20580.start (internal.clj:447) puppetlabs.trapperkeeper.internal$boot_services_STAR_$fn__20592.invoke (internal.clj:471) puppetlabs.trapperkeeper.internal$boot_services_STAR_.invoke (internal.clj:469) puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke (core.clj:115) puppetlabs.trapperkeeper.core$run.invoke (core.clj:144) puppetlabs.trapperkeeper.core$main.doInvoke (core.clj:161) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invoke (core.clj:628) puppetlabs.puppetdb.cli.services$fn__26524.doInvoke (services.clj:371) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invoke (core.clj:628) puppetlabs.puppetdb.utils$wrap_main$fn__6942$fn__6944.invoke (utils.clj:201) puppetlabs.puppetdb.utils$wrap_main$fn__6942.doInvoke (utils.clj:200) clojure.lang.RestFn.invoke (RestFn.java:421) clojure.lang.Var.invoke (Var.java:383) clojure.lang.AFn.applyToHelper (AFn.java:156) clojure.lang.Var.applyTo (Var.java:700) clojure.core$apply.invoke (core.clj:628) puppetlabs.puppetdb.core$run_command.invoke (core.clj:83) puppetlabs.puppetdb.core$_main.doInvoke (core.clj:91) clojure.lang.RestFn.invoke (RestFn.java:436) clojure.lang.Var.invoke (Var.java:388) user$eval796.invoke (form-init8180642857868429837.clj:1) clojure.lang.Compiler.eval (Compiler.java:6792) clojure.lang.Compiler.eval (Compiler.java:6782) clojure.lang.Compiler.load (Compiler.java:7237) clojure.lang.Compiler.loadFile (Compiler.java:7175) clojure.main$load_script.invoke (main.clj:275) clojure.main$init_opt.invoke (main.clj:280) clojure.main$initialize.invoke (main.clj:308) clojure.main$null_opt.invoke (main.clj:343) clojure.main$main.doInvoke (main.clj:421) clojure.lang.RestFn.invoke (RestFn.java:421) clojure.lang.Var.invoke (Var.java:383) clojure.lang.AFn.applyToHelper (AFn.java:156) clojure.lang.Var.applyTo (Var.java:700) clojure.main.main (main.java:37) 2015-06-08 17:02:11,122 ERROR [p.t.logging] Uncaught exception java.lang.IllegalArgumentException: null at java.util.concurrent.ScheduledThreadPoolExecutor.scheduleWithFixedDelay(ScheduledThreadPoolExecutor.java:586) ~[na:1.7.0_60] at overtone.at_at$schedule_job.invoke(at_at.clj:68) ~[na:na] at overtone.at_at$interspaced.doInvoke(at_at.clj:200) ~[na:na] at clojure.lang.RestFn.invoke(RestFn.java:445) [clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.cli.services$start_puppetdb$gc_task__26428.invoke(services.clj:313) ~[na:na] at puppetlabs.puppetdb.cli.services$start_puppetdb.invoke(services.clj:326) ~[na:na] at puppetlabs.puppetdb.cli.services$reify__26487$service_fnk__20134__auto___positional$reify__26498.start(services.clj:351) ~[na:na] at puppetlabs.trapperkeeper.services$eval19970$fn__19984$G__19960__19987.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.services$eval19970$fn__19984$G__19959__19991.invoke(services.clj:8) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:152) ~[na:na] at puppetlabs.trapperkeeper.internal$run_lifecycle_fns.invoke(internal.clj:180) ~[na:na] at puppetlabs.trapperkeeper.internal$build_app_STAR_$reify__20580.start(internal.clj:447) ~[na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_$fn__20592.invoke(internal.clj:471) ~[na:na] at puppetlabs.trapperkeeper.internal$boot_services_STAR_.invoke(internal.clj:469) ~[na:na] at puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke(core.clj:115) ~[na:na] at puppetlabs.trapperkeeper.core$run.invoke(core.clj:144) ~[na:na] at puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:161) ~[na:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) ~[clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.cli.services$fn__26524.doInvoke(services.clj:371) ~[na:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) ~[clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.utils$wrap_main$fn__6942$fn__6944.invoke(utils.clj:201) ~[na:na] at puppetlabs.puppetdb.utils$wrap_main$fn__6942.doInvoke(utils.clj:200) ~[na:na] at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:383) [clojure-1.7.0-RC1.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:156) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [clojure-1.7.0-RC1.jar:na] at clojure.core$apply.invoke(core.clj:628) ~[clojure-1.7.0-RC1.jar:na] at puppetlabs.puppetdb.core$run_command.invoke(core.clj:83) ~[na:na] at puppetlabs.puppetdb.core$_main.doInvoke(core.clj:91) [na:na] at clojure.lang.RestFn.invoke(RestFn.java:436) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:388) [clojure-1.7.0-RC1.jar:na] at user$eval796.invoke(form-init8180642857868429837.clj:1) [na:na] at clojure.lang.Compiler.eval(Compiler.java:6792) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.eval(Compiler.java:6782) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.load(Compiler.java:7237) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Compiler.loadFile(Compiler.java:7175) [clojure-1.7.0-RC1.jar:na] at clojure.main$load_script.invoke(main.clj:275) [clojure-1.7.0-RC1.jar:na] at clojure.main$init_opt.invoke(main.clj:280) [clojure-1.7.0-RC1.jar:na] at clojure.main$initialize.invoke(main.clj:308) [clojure-1.7.0-RC1.jar:na] at clojure.main$null_opt.invoke(main.clj:343) [clojure-1.7.0-RC1.jar:na] at clojure.main$main.doInvoke(main.clj:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.invoke(Var.java:383) [clojure-1.7.0-RC1.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:156) [clojure-1.7.0-RC1.jar:na] at clojure.lang.Var.applyTo(Var.java:700) [clojure-1.7.0-RC1.jar:na] at clojure.main.main(main.java:37) [clojure-1.7.0-RC1.jar:na] [~/Documents/puppetdb] (master) $ {code}

    JIRA | 1 year ago | Wyatt Alt
    java.lang.NullPointerException: null
  6. 0

    Authentication issue with docker register

    GitHub | 4 weeks ago | pegerto
    java.lang.NullPointerException: null

    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

      null

      at clojure.lang.Reflector.invokeNoArgInstanceMember()
    2. Clojure
      Reflector.invokeNoArgInstanceMember
      1. clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:301)[console-services-release.jar:na]
      1 frame
    3. puppetlabs.rbac.services
      rbac$reify__22438$service_fnk__5284__auto___positional$reify__22445.stop
      1. puppetlabs.rbac.services.rbac$reify__22438$service_fnk__5284__auto___positional$reify__22445.stop(rbac.clj:113)[na:na]
      1 frame
    4. puppetlabs.trapperkeeper
      core$main.doInvoke
      1. puppetlabs.trapperkeeper.services$eval5120$fn__5147$G__5108__5150.invoke(services.clj:12)[na:na]
      2. puppetlabs.trapperkeeper.services$eval5120$fn__5147$G__5107__5154.invoke(services.clj:12)[na:na]
      3. puppetlabs.trapperkeeper.internal$run_lifecycle_fn_BANG_.invoke(internal.clj:145)[na:na]
      4. puppetlabs.trapperkeeper.internal$shutdown_BANG_$fn__5941.invoke(internal.clj:313)[na:na]
      5. puppetlabs.trapperkeeper.internal$shutdown_BANG_.invoke(internal.clj:312)[na:na]
      6. puppetlabs.trapperkeeper.core$run_app.invoke(core.clj:133)[na:na]
      7. puppetlabs.trapperkeeper.core$run.invoke(core.clj:148)[na:na]
      8. puppetlabs.trapperkeeper.core$main.doInvoke(core.clj:159)[na:na]
      8 frames
    5. Clojure
      core$apply.invoke
      1. clojure.lang.RestFn.invoke(RestFn.java:457)[console-services-release.jar:na]
      2. clojure.lang.Var.invoke(Var.java:394)[console-services-release.jar:na]
      3. clojure.lang.AFn.applyToHelper(AFn.java:165)[console-services-release.jar:na]
      4. clojure.lang.Var.applyTo(Var.java:700)[console-services-release.jar:na]
      5. clojure.core$apply.invoke(core.clj:624)[console-services-release.jar:na]
      5 frames
    6. puppetlabs.trapperkeeper
      main$_main.doInvoke
      1. puppetlabs.trapperkeeper.main$_main.doInvoke(main.clj:7)[console-services-release.jar:na]
      1 frame
    7. Clojure
      RestFn.applyTo
      1. clojure.lang.RestFn.applyTo(RestFn.java:137)[console-services-release.jar:na]
      1 frame
    8. puppetlabs.trapperkeeper
      main.main
      1. puppetlabs.trapperkeeper.main.main(Unknown Source)[console-services-release.jar:na]
      1 frame