Geronimo
  1. Geronimo
  2. GERONIMO-6269

Geronimo 2.2.1 gives " Cannot find any provider supporting AES" when starting on various Linux platforms

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Component/s: startup/shutdown
    • Security Level: public (Regular issues)
    • Labels:
    • Environment:

      Description

      A fresh installation of Geronimo 2.2.1 on both of the above servers results in errors such as the ones listed below. MD5 checksum matched on the download.

      Other JIRA references (5142 and 5175) to this issue all refer environment settings for JAVA_HOME and JRE_HOME. Given what I have done to set the JAVA_HOME and JRE_HOME environment variables, I think this may a new or related issue.

      I have tried the following in an attempt to make this work:

      • Explicitly setting JAVA_HOME and JRE_HOME at the command line before attempting to start Geronimo
      • Explicitly setting JAVA_HOME and JRE_HOME in /etc/profile
      • Explicitly setting JAVA_HOME and JRE_HOME in the geronimo.sh file
      • Explicitly setting JAVA_HOME and JRE_HOME in the setjavaenv.sh file
      • Adding "/usr/java/latest" to the PATH

      None of these have any effect on the startup.

      If I execute start-server or startup.sh, I get similar results.

      I then installed the Geronimo 3 beta on the Centos 5 server. Version 3 did start successfully.

      All of the information I've read keeps pointing to the JAVA_HOME or JAVA_JRE variables, but I would think that my previous attempts above would have eliminated such a simple explanation.

      Output from one of the servers running version 2.2.1:
      ====================================================

      1. ./geronimo.sh run
        Using GERONIMO_HOME: /opt/geronimo
        Using GERONIMO_TMPDIR: var/temp
        Using JRE_HOME: /usr/java/latest
        Booting Geronimo Kernel (in Java 1.6.0_30)...
        Starting Geronimo Application Server v2.2.1
        [*********** ] 29% 4s Loading org.apache.ger...2012-02-07 12:03:33,701 ERROR [AbstractEncryption] Unable to decrypt
        java.io.EOFException
        at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2280)
        at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749)
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:279)
        at org.apache.geronimo.crypto.AbstractEncryption.decrypt(AbstractEncryption.java:76)
        at org.apache.geronimo.crypto.EncryptionManager.decrypt(EncryptionManager.java:109)
        at org.apache.geronimo.gbean.annotation.EncryptionSetting$1.decrypt(EncryptionSetting.java:33)
        at org.apache.geronimo.system.configuration.GBeanOverride.getValue(GBeanOverride.java:416)
        at org.apache.geronimo.system.configuration.GBeanOverride.applyOverrides(GBeanOverride.java:367)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.setAttributes(LocalAttributeManager.java:228)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.applyOverrides(LocalAttributeManager.java:197)
        at org.apache.geronimo.kernel.config.Configuration.<init>(Configuration.java:297)
        at sun.reflect.GeneratedConstructorAccessor20.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:952)
        at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
        at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
        at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:911)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:525)
        at org.apache.geronimo.kernel.basic.BasicKernel.startGBean(BasicKernel.java:359)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.load(KernelConfigurationManager.java:163)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:302)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:271)
        at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:816)
        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.gbean.GBeanLifecycle$$EnhancerByCGLIB$$c90f1908.loadConfiguration(<generated>)
        at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:201)
        at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:87)
        at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
        2012-02-07 12:03:33,705 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.configs/system-database/2.2.1/car?configurationName=org.apache.geronimo.configs/system-database/2.2.1/car"
        java.lang.IllegalArgumentException: input
        at org.apache.geronimo.system.configuration.condition.JexlExpressionParser.parse(JexlExpressionParser.java:125)
        at org.apache.geronimo.system.configuration.GBeanOverride.substituteVariables(GBeanOverride.java:449)
        at org.apache.geronimo.system.configuration.GBeanOverride.getValue(GBeanOverride.java:417)
        at org.apache.geronimo.system.configuration.GBeanOverride.applyOverrides(GBeanOverride.java:367)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.setAttributes(LocalAttributeManager.java:228)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.applyOverrides(LocalAttributeManager.java:197)
        at org.apache.geronimo.kernel.config.Configuration.<init>(Configuration.java:297)
        at sun.reflect.GeneratedConstructorAccessor20.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:952)
        at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
        at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
        at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:911)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:525)
        at org.apache.geronimo.kernel.basic.BasicKernel.startGBean(BasicKernel.java:359)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.load(KernelConfigurationManager.java:163)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:302)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:271)
        at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:816)
        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.gbean.GBeanLifecycle$$EnhancerByCGLIB$$c90f1908.loadConfiguration(<generated>)
        at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:201)
        at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:87)
        at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
        [*********** ] 29% 4s Startup failed
        org.apache.geronimo.kernel.config.LifecycleException: load of org.apache.geronimo.configs/system-database/2.2.1/car failed
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:316)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:271)
        at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:816)
        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.gbean.GBeanLifecycle$$EnhancerByCGLIB$$c90f1908.loadConfiguration(<generated>)
        at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:201)
        at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:87)
        at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
        Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Error starting configuration gbean org.apache.geronimo.configs/system-database/2.2.1/car
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.load(KernelConfigurationManager.java:183)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:302)
        ... 16 more
        Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration gbean failed to start org.apache.geronimo.configs/system-database/2.2.1/car
        reason: input
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.load(KernelConfigurationManager.java:166)
        ... 17 more

        Activity

        Hide
        Michael Peoples added a comment -

        Additional information, may be irrelevant:

        I did a fresh install of Geronimo 3.0.1 Beta on my Windows 7 workstation, which has JDK 1.6.0_29 installed and properly referenced by JAVA_HOME and JRE_HOME. The MD5 checksum of the downloaded file matches the the one on the download site. I used WinZip to unzip the file.

        I am getting the same type of message:

        "2012-02-07 16:48:44,070 ERROR [AbstractEncryption] Unable to encrypt java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES"

        as before.

        The reason I mention this is that I might be the root of the problem, even though it extends to both Linux and Windows, or the fact that I am having this problem may point to the root cause. Perhaps I'm missing some piece of Java software.

        The AES provider file is present at: C:\Program Files\Java\jdk1.6.0_29\jre\lib\ext\sunjce_provider.jar.

        The question I guess, is why would I have this same issue on several platforms, albeit of different types and Geronimo versions? Surely my case is very isolated.

        Show
        Michael Peoples added a comment - Additional information, may be irrelevant: I did a fresh install of Geronimo 3.0.1 Beta on my Windows 7 workstation, which has JDK 1.6.0_29 installed and properly referenced by JAVA_HOME and JRE_HOME. The MD5 checksum of the downloaded file matches the the one on the download site. I used WinZip to unzip the file. I am getting the same type of message: "2012-02-07 16:48:44,070 ERROR [AbstractEncryption] Unable to encrypt java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES" as before. The reason I mention this is that I might be the root of the problem, even though it extends to both Linux and Windows, or the fact that I am having this problem may point to the root cause. Perhaps I'm missing some piece of Java software. The AES provider file is present at: C:\Program Files\Java\jdk1.6.0_29\jre\lib\ext\sunjce_provider.jar. The question I guess, is why would I have this same issue on several platforms, albeit of different types and Geronimo versions? Surely my case is very isolated.

          People

          • Assignee:
            Unassigned
            Reporter:
            Michael Peoples
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development