NPE at org.apache.geronimo.security.SubjectId.hashCode(SubjectId.java:79)
-------------------------------------------------------------------------
Key: GERONIMO-2745
URL: https://issues.apache.org/jira/browse/GERONIMO-2745
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: startup/shutdown
Affects Versions: 2.0
Reporter: Jacek Laskowski
Priority: Critical
Fix For: 2.0-M2
[EMAIL PROTECTED] /cygdrive/c/oss/geronimo/geronimo-tomcat6-jee5-2.0-SNAPSHOT
$ echo $JAVA_HOME
/cygdrive/c/apps/java5
[EMAIL PROTECTED] /cygdrive/c/oss/geronimo/geronimo-tomcat6-jee5-2.0-SNAPSHOT
$ uname -a
CYGWIN_NT-5.1 dev 1.5.21(0.156/4/2) 2006-07-30 14:21 i686 Cygwin
[EMAIL PROTECTED] /cygdrive/c/oss/geronimo/geronimo-tomcat6-jee5-2.0-SNAPSHOT
$ ./bin/geronimo.sh run -v
Using GERONIMO_BASE: c:\oss\geronimo\geronimo-tomcat6-jee5-2.0-SNAPSHOT
Using GERONIMO_HOME: c:\oss\geronimo\geronimo-tomcat6-jee5-2.0-SNAPSHOT
Using GERONIMO_TMPDIR:
c:\oss\geronimo\geronimo-tomcat6-jee5-2.0-SNAPSHOT\var\temp
Using JRE_HOME: c:\apps\java5\jre
Booting Geronimo Kernel (in Java 1.5.0_08)...
08:14:36,187 INFO [root] ----------------------------------------------
08:14:36,203 INFO [root] Started Logging Service
08:14:36,203 INFO [root] Runtime Information:
08:14:36,203 INFO [root] Install Directory =
C:\oss\geronimo\geronimo-tomcat6-jee5-2.0-SNAPSHOT
08:14:36,203 INFO [root] JVM in use = Sun Microsystems Inc. Java 1.5.0_08
08:14:36,203 INFO [root] Java Information:
08:14:36,203 INFO [root] System property [java.runtime.name] = Java(TM) 2
Runtime Environment, Standard Edition
08:14:36,203 INFO [root] System property [java.runtime.version] =
1.5.0_08-b03
08:14:36,203 INFO [root] System property [os.name] = Windows XP
08:14:36,203 INFO [root] System property [os.version] = 5.1
08:14:36,203 INFO [root] System property [sun.os.patch.level] = Service
Pack 2
08:14:36,203 INFO [root] System property [os.arch] = x86
08:14:36,203 INFO [root] System property [java.class.version] = 49.0
08:14:36,203 INFO [root] System property [locale] = pl_PL
08:14:36,203 INFO [root] System property [unicode.encoding] =
UnicodeLittle
08:14:36,203 INFO [root] System property [file.encoding] = Cp1250
08:14:36,203 INFO [root] System property [java.vm.name] = Java
HotSpot(TM) Client VM
08:14:36,203 INFO [root] System property [java.vm.vendor] = Sun
Microsystems Inc.
08:14:36,203 INFO [root] System property [java.vm.version] = 1.5.0_08-b03
08:14:36,203 INFO [root] System property [java.vm.info] = mixed mode
08:14:36,203 INFO [root] System property [java.home] =
c:\apps\java5\jre
08:14:36,203 INFO [root] System property [java.classpath] = null
08:14:36,203 INFO [root] System property [java.library.path] = .....a very
long path....
08:14:36,203 INFO [root] System property [java.endorsed.dirs] =
c:\apps\java5\jre/lib/endorsed:c:\oss\geronimo\geronimo-tomcat6-jee5-2.0-SNAPSHOT/lib/endorsed
08:14:36,203 INFO [root] System property [java.ext.dirs] =
c:\apps\java5\jre/lib/ext:c:\oss\geronimo\geronimo-tomcat6-jee5-2.0-SNAPSHOT/lib/ext
08:14:36,203 INFO [root] System property [sun.boot.class.path] =
c:\apps\java5\jre\lib\rt.jar;c:\apps\java5\jre\lib\i18n.jar;c:\apps\java5\jre\lib\sunrsasign.jar;c:\apps\java5\j
re\lib\jsse.jar;c:\apps\java5\jre\lib\jce.jar;c:\apps\java5\jre\lib\charsets.jar;c:\apps\java5\jre\classes
08:14:36,203 INFO [root] ----------------------------------------------
08:15:11,593 ERROR [GBeanInstanceState] Error while starting; GBean is now in
the FAILED state:
abstractName="org.apache.geronimo.configs/webconsole-tomcat/2.0-SNAPSHOT/car?J2EEApp
lication=org.apache.geronimo.configs/webconsole-tomcat/2.0-SNAPSHOT/car,j2eeType=JACCManager,name=JACCManager"
java.lang.NullPointerException
at org.apache.geronimo.security.SubjectId.hashCode(SubjectId.java:79)
at java.util.Hashtable.put(Hashtable.java:401)
at
org.apache.geronimo.security.ContextManager.registerSubject(ContextManager.java:269)
at
org.apache.geronimo.security.jacc.ApplicationPolicyConfigurationManager.<init>(ApplicationPolicyConfigurationManager.java:109)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:936)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:529)
at
org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
at
org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
at
org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:173)
at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:41)
at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:251)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:292)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:543)
at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:378)
at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:508)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
at
org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$e380e87b.startConfiguration(<generated>)
at org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:286)
at org.apache.geronimo.system.main.Daemon.<init>(Daemon.java:74)
at org.apache.geronimo.system.main.Daemon.main(Daemon.java:366)
Geronimo startup failed:
org.apache.geronimo.kernel.config.LifecycleException: start of
org.apache.geronimo.configs/webconsole-tomcat/2.0-SNAPSHOT/car failed
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:544)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:508)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
at
org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$e380e87b.startConfiguration(<generated>)
at org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:286)
at org.apache.geronimo.system.main.Daemon.<init>(Daemon.java:74)
at org.apache.geronimo.system.main.Daemon.main(Daemon.java:366)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown
start exception
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:444)
at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)
... 13 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
Configuration org.apache.geronimo.configs/webconsole-tomcat/2.0-SNAPSHOT/car
failed to start due to the followin
g reasons:
The service
J2EEApplication=org.apache.geronimo.configs/webconsole-tomcat/2.0-SNAPSHOT/car,j2eeType=JACCManager,name=JACCManager
did not start for an unknown reason
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:407)
... 15 more
Server shutdown begun
Server shutdown completed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira