I wonder if there is something non-standard about the security setup in the Intalio server? The code causing the problem is here...

    private static byte[] hash(Long id) {
        long n = id;
        byte[] bytes = new byte[8];
        for (int i = 7; i >= 0; i--) {
            bytes[i] = (byte) (n);
            n >>>= 8;
        }

        try {
            Mac mac = Mac.getInstance(algorithm);
            mac.init(key);
            mac.update(bytes);

            return mac.doFinal();
        } catch (NoSuchAlgorithmException e) {
            //shouldn't happen
        } catch (InvalidKeyException e) {
            //shouldn't happen
        }
        assert false : "Should never have reached here";
        return null;
    }


which is returning null. By default algorithm="HmacSHA1". Obviously one of the mac methods is failing.

Hope this helps to point in a useful direction.

We ought to make the cause of failure more vocal here...

thanks
david jencks

On Mar 12, 2008, at 9:39 PM, rommie wrote:


I sucessfully run Geronimo 2.1 with jdk1.5.0.15 in Fedora 7 Linux. But when I run Geronimo 2.0.1 that bundled with Intalio BPMS Server 5.1 . I got this
error

ERROR [org.apache.geronimo.gbean.runtime.GBeanInstanceState] [main] Error
while starting; GBean is now in the FAILED state:
abstractName="org.apache.geronimo.configs/webconsole-jetty6/2.0.1/ car?J2EEApplication=org.apache.geronimo.configs/webconsole- jetty6/2.0.1/car,j2eeType=JACCManager,name=JACCManager"
java.lang.ExceptionInInitializerError
        at
org.apache.geronimo.security.jacc.ApplicationPolicyConfigurationManage r.<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:946)
        at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart( GBeanInstanceState.java:268)
        at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start (GBeanInstanceState.java:102)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.start (GBeanInstance.java:539)
        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.fireRunningEven t(BasicLifecycleMonitor.java:176)
        at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300 (BasicLifecycleMonitor.java:44)
        at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor $RawLifecycleBroadcaster.fireRunningEvent (BasicLifecycleMonitor.java:254)
        at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart( GBeanInstanceState.java:294)
        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:553)
        at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean (BasicKernel.java:379)
        at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguration GBeans(ConfigurationUtil.java:448)
        at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start (KernelConfigurationManager.java:187)
        at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConf iguration(SimpleConfigurationManager.java:530)
        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:124)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke (GBeanInstance.java:830)
        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.EmbeddedDaemon.doStartup (EmbeddedDaemon.java:156)
        at
org.apache.geronimo.system.main.EmbeddedDaemon.execute (EmbeddedDaemon.java:78)
        at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main (MainConfigurationBootstrapper.java:45)
        at
org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
at org.apache.geronimo.cli.daemon.DaemonCLI.main (DaemonCLI.java:30)
Caused by: java.lang.NullPointerException
        at
org.apache.geronimo.security.SubjectId.hashCode(SubjectId.java:79)
        at java.util.HashMap.put(HashMap.java:418)
at java.util.Collections$SynchronizedMap.put (Collections.java:1983)
        at
org.apache.geronimo.security.ContextManager.registerSubject (ContextManager.java:299)
        at
org.apache.geronimo.security.ContextManager.<clinit> (ContextManager.java:71)
        ... 37 more
11:21:52,172 WARN [org.apache.geronimo.kernel.basic.BasicLifecycleMonitor]
[main] Exception occured while notifying listener
java.lang.ExceptionInInitializerError


Any hint?
--
View this message in context: http://www.nabble.com/Geronimo-2.0.1- bundled-with-Intalio-BPMS-tp16021175s134p16021175.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Reply via email to