geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xiezhi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GERONIMO-6309) The usage of ConfiguredEncryption is wrong in the comment block
Date Thu, 13 Sep 2012 09:27:08 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-6309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13454761#comment-13454761
] 

xiezhi commented on GERONIMO-6309:
----------------------------------

Could anyone tell me how to create the file named ConfiguredSecretKey.ser. I create it myself.
But it will meet the exception below when you start the server.

[**                                      ]   7%   1s  Loading rmi-naming                 
                    2012-09-13 17:22:00,806 ERROR [GBeanInst
anceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/rmi-naming/3.0-w20120503/car?j2eeType=G
Bean,name=ConfiguredEncryption"
java.io.StreamCorruptedException: invalid stream header: FEEDFEED
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:786)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:283)
        at org.apache.geronimo.system.util.ConfiguredEncryption.<init>(ConfiguredEncryption.java:64)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:44)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:516)
        at org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:958)
        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:958)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:462)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
        at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:213)
        at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:93)
        at org.apache.geronimo.system.osgi.BootActivator$1.execute(BootActivator.java:107)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:67)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:32)
[**                                      ]   7%   1s Startup failed
org.apache.geronimo.kernel.config.LifecycleException: start of org.apache.geronimo.framework/rmi-naming/3.0-w20110721/car
failed
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:718)
        at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:213)
        at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:93)
        at org.apache.geronimo.system.osgi.BootActivator$1.execute(BootActivator.java:107)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:67)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:32)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown start exception
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:523)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
        ... 6 more
                
> The usage of ConfiguredEncryption is wrong in the comment block
> ---------------------------------------------------------------
>
>                 Key: GERONIMO-6309
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6309
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: general
>    Affects Versions: 2.1.7, 2.1.8
>         Environment: java version "1.6.0"
> Java(TM) SE Runtime Environment (build pwi3260sr10-20111208_01(SR10))
> IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows 7 x86-32 jvmwi3260sr10-201112
> 07_96808 (JIT enabled, AOT enabled)
> J9VM - 20111207_096808
> JIT  - r9_20111107_21307ifx1
> GC   - 20110519_AA)
> JCL  - 20111104_02
>            Reporter: Saphen Qiu
>            Assignee: Saphen Qiu
>            Priority: Minor
>              Labels: ConfiguredEncryption,configured,password,gbean,rmi-naming
>         Attachments: ConfiguredEncryption.java.patch
>
>
> The description of ConfiguredEncryption usage is wrong:
> * <gbean name="ConfiguredEncryption">
> * <attribute name="path">var/security/ConfiguredSecretKey.ser</attribute>
> * <reference name="ServerInfo"><pattern><name>ServerInfo</name></pattern></reference>
> * </gbean>
> Here is the correct one:
>  * <gbean name="org.apache.geronimo.framework/rmi-naming/2.1.8/car?j2eeType=GBean,name=ConfiguredEncryption"
gbeanInfo="org.apache.geronimo.system.util.ConfiguredEncryption">
>  *  <attribute name="path">var/security/ConfiguredSecretKey.ser</attribute>
>  *  <reference name="ServerInfo">
>  *     <pattern>
>  *       <name>ServerInfo</name>
>  *     </pattern>
>  *  </reference>
>  * </gbean>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message