[ https://issues.apache.org/jira/browse/GERONIMO-5637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Forrest Xia closed GERONIMO-5637. --------------------------------- > deploy install-plugin command does not report failure when plugin is failed > to install > -------------------------------------------------------------------------------------- > > Key: GERONIMO-5637 > URL: https://issues.apache.org/jira/browse/GERONIMO-5637 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: deployment > Affects Versions: 3.0 > Environment: sun jdk 1.6.0_20 > ubuntu 10.04 x86 > G 3.0 snapshot build on 2010.10.12-09:22:17.418+0800 > Reporter: Forrest Xia > Assignee: viola.lu > Attachments: G5637.patch, > daytrader-derby-datasource-3.0-M1-SNAPSHOT.car > > > Steps: > 1. build the latest code from trunk > 2. get tomcat7 assembly running at the default port > 3. use deploy install-plugin command to install the attached plugin sample > Problem: > 1. the command shows installation complete without any error like this: > $ bin/deploy install-plugin > ~/Desktop/daytrader-derby-datasource-3.0-M1-SNAPSHOT.car > Using GERONIMO_HOME: > /home/forrestxm/temp/geronimo-tomcat7-javaee6-3.0-SNAPSHOT > Using GERONIMO_TMPDIR: var/temp > Using JRE_HOME: /home/forrestxm/softwares/jdk/jdk1.6.0_20/jre > Checking for status every 1000ms: > Starting > org.apache.geronimo.samples.daytrader.plugins/daytrader-derby-datasource/3.0-M1-SNAPSHOT/car > **** Installation Complete! > Downloaded 111 kB in 1s (111 kB/s) > 2. but on the server console output, there are exceptions showup like this: > 2010-10-12 11:02:30,515 ERROR [GBeanInstanceState] Error while starting; > GBean is now in the FAILED state: > abstractName="org.apache.geronimo.samples.daytrader.plugins/daytrader-derby-datasource/3.0-M1-SNAPSHOT/car?configurationName=org.apache.geronimo.samples.daytrader.plugins/daytrader-derby-datasource/3.0-M1-SNAPSHOT/car" > org.apache.geronimo.kernel.config.InvalidConfigException: Unable to > deserialize GBeanState in classloader: > org.apache.geronimo.samples.daytrader.plugins.daytrader-derby-datasource_3.0.0.M1-SNAPSHOT > [294] > at > org.apache.geronimo.kernel.config.SerializedGBeanState.loadGBeans(SerializedGBeanState.java:138) > at > org.apache.geronimo.kernel.config.SerializedGBeanState.getGBeans(SerializedGBeanState.java:65) > at > org.apache.geronimo.kernel.config.ConfigurationData.getGBeans(ConfigurationData.java:186) > at > org.apache.geronimo.kernel.config.Configuration.<init>(Configuration.java:214) > at sun.reflect.GeneratedConstructorAccessor43.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:933) > 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.GBeanInstance.start(GBeanInstance.java:546) > at > org.apache.geronimo.kernel.basic.BasicKernel.startGBean(BasicKernel.java:368) > at > org.apache.geronimo.kernel.config.KernelConfigurationManager.load(KernelConfigurationManager.java:190) > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:354) > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:327) > at > org.apache.geronimo.kernel.osgi.ConfigurationActivator.start(ConfigurationActivator.java:62) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783) > at java.security.AccessController.doPrivileged(Native Method) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755) > at > org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352) > at > org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280) > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:302) > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:281) > at > org.apache.geronimo.kernel.config.KernelConfigurationManager.loadConfiguration(KernelConfigurationManager.java:124) > at > org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:805) > at > org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:1019) > at > org.apache.geronimo.system.plugin.PluginInstallerGBean$4.run(PluginInstallerGBean.java:925) > at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:243) > at > org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:373) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:619) > Caused by: java.io.IOException: Unable to deserialize GBeanData > org.apache.geronimo.samples.daytrader.plugins/daytrader-derby-datasource/3.0-M1-SNAPSHOT/car?J2EEApplication=null,j2eeType=ResourceAdapterModule,name=org.apache.geronimo.samples.daytrader.plugins/daytrader-derby-datasource/3.0-M1-SNAPSHOT/car > at > org.apache.geronimo.gbean.GBeanData$V0Externalizable.readExternal(GBeanData.java:402) > at org.apache.geronimo.gbean.GBeanData.readExternal(GBeanData.java:320) > at > org.apache.geronimo.kernel.config.SerializedGBeanState.loadGBeans(SerializedGBeanState.java:125) > ... 36 more > The attached sample plugin is an old plugin built with G 3.0-M1 > car-maven-plugin, the failure is expected, but I think the install-plugin > command should reflect the failure and let user know the installation is > failed with reason. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira