geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Han Hong Fang (JIRA)" <j...@apache.org>
Subject [jira] Updated: (GERONIMO-5410) app-per-port sample does not run on G 3.0-M1 caused by an NPE
Date Thu, 15 Jul 2010 09:37:49 GMT

     [ https://issues.apache.org/jira/browse/GERONIMO-5410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Han Hong Fang updated GERONIMO-5410:
------------------------------------

    Attachment: Geronimo-5410.patch

This bug is caused by InstanceManager of the defaultContext (for Tomcat Fallback Application)
is null.

The patch is provided, please help to reivew. Thanks!

> app-per-port sample does not run on G 3.0-M1 caused by an NPE
> -------------------------------------------------------------
>
>                 Key: GERONIMO-5410
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5410
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Tomcat
>    Affects Versions: 3.0-M1, 3.0
>            Reporter: Forrest Xia
>            Assignee: Ivan
>            Priority: Minor
>         Attachments: app-per-port-tomcat-3.0-M1-SNAPSHOT.car, Geronimo-5410.patch
>
>
> When try to deploy app-per-port sample plugin to G 3.0-M1, an NPE throws out like this:
> 2010-06-28 14:34:50,940 ERROR [[TomcatWebContainer1]] createWrapper
> java.lang.NullPointerException
> 	at org.apache.geronimo.tomcat.GeronimoStandardContext.createWrapper(GeronimoStandardContext.java:323)
> 	at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1227)
> 	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1288)
> 	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:875)
> 	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:313)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
> 	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4632)
> 	at org.apache.geronimo.tomcat.GeronimoStandardContext.startInternal(GeronimoStandardContext.java:448)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
> 	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:982)
> 	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:772)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
> 	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:982)
> 	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:266)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
> 	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:424)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
> 	at org.apache.geronimo.tomcat.TomcatContainer.<init>(TomcatContainer.java:204)
> 	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: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:917)
> 	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:530)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:295)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:530)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:295)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:544)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> 	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:461)
> 	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:224)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:698)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:677)
> 	at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:813)
> 	at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:720)
> 	at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:716)
> 	at org.apache.geronimo.system.plugin.PluginInstallerGBean$3.run(PluginInstallerGBean.java:887)
> 	at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
> 	at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
> 	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)
> 2010-06-28 14:34:50,950 ERROR [GBeanInstanceState] Error while starting; GBean is now
in the FAILED state: abstractName="org.apache.geronimo.samples/app-per-port-tomcat/3.0-M1-SNAPSHOT/car?J2EEApplication=org.apache.geronimo.samples/app-per-port-tomcat/3.0-M1-SNAPSHOT/car,j2eeType=GBean,name=TomcatWebContainer1"
> java.lang.NullPointerException
> 	at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1238)
> 	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1288)
> 	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:875)
> 	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:313)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
> 	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4632)
> 	at org.apache.geronimo.tomcat.GeronimoStandardContext.startInternal(GeronimoStandardContext.java:448)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
> 	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:982)
> 	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:772)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
> 	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:982)
> 	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:266)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
> 	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:424)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
> 	at org.apache.geronimo.tomcat.TomcatContainer.<init>(TomcatContainer.java:204)
> 	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: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:917)
> 	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:530)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:295)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:530)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> 	at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:295)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:544)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> 	at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:461)
> 	at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:224)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:698)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:677)
> 	at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:813)
> 	at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:720)
> 	at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:716)
> 	at org.apache.geronimo.system.plugin.PluginInstallerGBean$3.run(PluginInstallerGBean.java:887)
> 	at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
> 	at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
> 	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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message