java.lang.NullPointerException: Cannot invoke method getSecretKey() on null object

Jenkins JIRA | nmnilssen | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    I Upgraded from 1.174 to 1.175 and autodeployment failed. I switched back to 1.174 and everything was OK again. Sun Java System Application Server 9.1 (build b58g.fcs) log: [#|2008-01-22T08:16:04.240+0000|WARNING|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=202;_ThreadName=Timer-5;_RequestID=17e86683-cb30-4e9a-a9ca-2b1f34dde3b6;|No Principals mapped to Role [admin].|#] [#|2008-01-22T08:16:04.314+0000|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=202;_ThreadName=Timer-5;|deployed with moduleid = hudson|#] [#|2008-01-22T08:16:05.611+0000|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=202;_ThreadName=Timer-5;| hudson home directory: /usr/share/hudson|#] [#|2008-01-22T08:16:06.181+0000|INFO|sun-appserver9.1|hudson.PluginWrapper|_ThreadID=44923;_ThreadName=hudson initialization thread;|Loading plugin: /usr/share/hudson/plugins/vmware.hpi|#] [#|2008-01-22T08:16:06.193+0000|INFO|sun-appserver9.1|hudson.PluginWrapper|_ThreadID=44923;_ThreadName=hudson initialization thread;|Plugin is disabled|#] [#|2008-01-22T08:16:06.194+0000|INFO|sun-appserver9.1|hudson.PluginWrapper|_ThreadID=44923;_ThreadName=hudson initialization thread;|Loading plugin: /usr/share/hudson/plugins/violations.hpi|#] [#|2008-01-22T08:16:06.225+0000|INFO|sun-appserver9.1|hudson.PluginWrapper|_ThreadID=44923;_ThreadName=hudson initialization thread;|Loading plugin: /usr/share/hudson/plugins/findbugs.hpi|#] [#|2008-01-22T08:16:08.444+0000|INFO|sun-appserver9.1|hudson.TcpSlaveAgentListener|_ThreadID=44923;_ThreadName=hudson initialization thread;|JNLP slave agent listener started on TCP port 48894|#] [#|2008-01-22T08:16:09.796+0000|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=202;_ThreadName=Timer-5;_RequestID=17e86683-cb30-4e9a-a9ca-2b1f34dde3b6;|WebModule[/hudson]PWC1270: Exception starting filter authentication-filter java.lang.NullPointerException: Cannot invoke method getSecretKey() on null object at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77) at org.codehaus.groovy.runtime.Invoker.invokePogoMethod(Invoker.java:102) at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:79) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:69) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:213) at Script1$_run_closure1.doCall(Script1.groovy:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:56) at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:538) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:243) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:643) at groovy.lang.Closure.call(Closure.java:291) at hudson.util.spring.BeanBuilder.invokeBeanDefiningMethod(BeanBuilder.java:484) at hudson.util.spring.BeanBuilder.methodMissing(BeanBuilder.java:372) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:56) at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:602) at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:583) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:821) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:643) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:576) at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44) at hudson.util.spring.ClosureScript.invokeMethod(ClosureScript.java:58) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:83) at Script1.run(Script1.groovy:37) at hudson.util.spring.BeanBuilder.parse(BeanBuilder.java:135) at hudson.security.HudsonFilter.init(HudsonFilter.java:58) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:257) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:369) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:103) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4381) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5181) at com.sun.enterprise.web.WebModule.start(WebModule.java:327) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1581) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222) at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182) at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278) at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974) at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961) at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464) at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176) at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308) at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226) at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298) at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132) at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108) at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:276) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:294) at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:555) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375) at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358) at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90) at $Proxy1.invoke(Unknown Source) at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304) at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174) at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:564) at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(AutoDeployer.java:545) at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:492) at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:267) at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:374) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) |#] [#|2008-01-22T08:16:09.805+0000|SEVERE|sun-appserver9.1|org.apache.catalina.core.StandardContext|_ThreadID=202;_ThreadName=Timer-5;_RequestID=17e86683-cb30-4e9a-a9ca-2b1f34dde3b6;|PWC1306: Startup of context /hudson failed due to previous errors|#]

    Jenkins JIRA | 9 years ago | nmnilssen
    java.lang.NullPointerException: Cannot invoke method getSecretKey() on null object
  2. 0

    I Upgraded from 1.174 to 1.175 and autodeployment failed. I switched back to 1.174 and everything was OK again. Sun Java System Application Server 9.1 (build b58g.fcs) log: [#|2008-01-22T08:16:04.240+0000|WARNING|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=202;_ThreadName=Timer-5;_RequestID=17e86683-cb30-4e9a-a9ca-2b1f34dde3b6;|No Principals mapped to Role [admin].|#] [#|2008-01-22T08:16:04.314+0000|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=202;_ThreadName=Timer-5;|deployed with moduleid = hudson|#] [#|2008-01-22T08:16:05.611+0000|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=202;_ThreadName=Timer-5;| hudson home directory: /usr/share/hudson|#] [#|2008-01-22T08:16:06.181+0000|INFO|sun-appserver9.1|hudson.PluginWrapper|_ThreadID=44923;_ThreadName=hudson initialization thread;|Loading plugin: /usr/share/hudson/plugins/vmware.hpi|#] [#|2008-01-22T08:16:06.193+0000|INFO|sun-appserver9.1|hudson.PluginWrapper|_ThreadID=44923;_ThreadName=hudson initialization thread;|Plugin is disabled|#] [#|2008-01-22T08:16:06.194+0000|INFO|sun-appserver9.1|hudson.PluginWrapper|_ThreadID=44923;_ThreadName=hudson initialization thread;|Loading plugin: /usr/share/hudson/plugins/violations.hpi|#] [#|2008-01-22T08:16:06.225+0000|INFO|sun-appserver9.1|hudson.PluginWrapper|_ThreadID=44923;_ThreadName=hudson initialization thread;|Loading plugin: /usr/share/hudson/plugins/findbugs.hpi|#] [#|2008-01-22T08:16:08.444+0000|INFO|sun-appserver9.1|hudson.TcpSlaveAgentListener|_ThreadID=44923;_ThreadName=hudson initialization thread;|JNLP slave agent listener started on TCP port 48894|#] [#|2008-01-22T08:16:09.796+0000|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=202;_ThreadName=Timer-5;_RequestID=17e86683-cb30-4e9a-a9ca-2b1f34dde3b6;|WebModule[/hudson]PWC1270: Exception starting filter authentication-filter java.lang.NullPointerException: Cannot invoke method getSecretKey() on null object at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77) at org.codehaus.groovy.runtime.Invoker.invokePogoMethod(Invoker.java:102) at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:79) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:69) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:213) at Script1$_run_closure1.doCall(Script1.groovy:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:56) at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:538) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:243) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:643) at groovy.lang.Closure.call(Closure.java:291) at hudson.util.spring.BeanBuilder.invokeBeanDefiningMethod(BeanBuilder.java:484) at hudson.util.spring.BeanBuilder.methodMissing(BeanBuilder.java:372) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:56) at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:602) at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:583) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:821) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:643) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:576) at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44) at hudson.util.spring.ClosureScript.invokeMethod(ClosureScript.java:58) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:83) at Script1.run(Script1.groovy:37) at hudson.util.spring.BeanBuilder.parse(BeanBuilder.java:135) at hudson.security.HudsonFilter.init(HudsonFilter.java:58) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:257) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:369) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:103) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4381) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5181) at com.sun.enterprise.web.WebModule.start(WebModule.java:327) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1581) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222) at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182) at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278) at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974) at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961) at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464) at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176) at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308) at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226) at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298) at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132) at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108) at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:276) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:294) at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:555) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375) at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358) at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90) at $Proxy1.invoke(Unknown Source) at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304) at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174) at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:564) at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(AutoDeployer.java:545) at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:492) at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:267) at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:374) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) |#] [#|2008-01-22T08:16:09.805+0000|SEVERE|sun-appserver9.1|org.apache.catalina.core.StandardContext|_ThreadID=202;_ThreadName=Timer-5;_RequestID=17e86683-cb30-4e9a-a9ca-2b1f34dde3b6;|PWC1306: Startup of context /hudson failed due to previous errors|#]

    Jenkins JIRA | 9 years ago | nmnilssen
    java.lang.NullPointerException: Cannot invoke method getSecretKey() on null object
  3. 0

    コマンドライン引数

    ne.jp | 4 months ago
    java.lang.NullPointerException: Cannot invoke method: each on null object
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      Cannot invoke method getSecretKey() on null object

      at org.codehaus.groovy.runtime.NullObject.invokeMethod()
    2. Groovy
      InvokerHelper.invokeMethod
      1. org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
      2. org.codehaus.groovy.runtime.Invoker.invokePogoMethod(Invoker.java:102)
      3. org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:79)
      4. org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:69)
      4 frames