quality@glassfish.java.net

Re: Few samples fail to deploy in the latest nightly build of GlassFish

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Thu, 12 Nov 2009 08:48:06 -0800

On 11/12/09 08:29, Elena Asarina wrote:
> Probably this issue is described in the bug
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=10904

Root cause

Caused by: java.lang.NullPointerException
        at
org.glassfish.deployment.common.ClassDependencyBuilder.getAnnotatedClasses(ClassDependencyBuilder.java:57)

        at
org.glassfish.deployment.common.ClassDependencyBuilder.computeResult(ClassDependencyBuilder.java:41)

        at
org.glassfish.web.loader.ServletContainerInitializerUtil.checkAgainstInterestList(ServletContainerInitializerUtil.java:405)

        at

 is the same as for
 
  https://glassfish.dev.java.net/issues/show_bug.cgi?id=10995


Jan
 

>
> Elena
>
> Richard Kolb wrote:
>> Hi Naresh
>>
>> I can confirm this:
>> In Build 72 I just installed.
>> I deployed a JSF 2 application.
>>
>> regards
>> Richard.
>>
>> This is my stack trace :
>>
>> [#|2009-11-12T11:40:26.112+0200|SEVERE|glassfishv3.0|org.apache.catalina.core.ContainerBase|_ThreadID=24;_ThreadName=Thread-1;|ContainerBase.addChild:
>> start:
>> org.apache.catalina.LifecycleException: java.lang.NullPointerException
>> at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:5216)
>>
>> at com.sun.enterprise.web.WebModule.start(WebModule.java:500)
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
>>
>> at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
>> at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
>> at
>> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1932)
>>
>> at
>> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1604)
>>
>> at
>> com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
>> at
>> org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
>> at
>> org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
>> at
>> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
>>
>> at
>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:337)
>>
>> at
>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
>>
>> at
>> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
>>
>> at
>> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
>>
>> at
>> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
>>
>> at
>> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
>>
>> at
>> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
>>
>> at
>> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
>>
>> at
>> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
>>
>> at
>> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362)
>>
>> at
>> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201)
>> at
>> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
>>
>> at
>> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
>>
>> at
>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
>>
>> at
>> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789)
>> at
>> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697)
>> at
>> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952)
>> at
>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166)
>>
>> at
>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
>>
>> at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
>>
>> at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
>>
>> at
>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>>
>> at
>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
>>
>> at
>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
>>
>> at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
>> at
>> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
>>
>> at
>> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
>>
>> at java.lang.Thread.run(Thread.java:619)
>> Caused by: java.lang.NullPointerException
>> at
>> org.glassfish.deployment.common.ClassDependencyBuilder.getAnnotatedClasses(ClassDependencyBuilder.java:57)
>>
>> at
>> org.glassfish.deployment.common.ClassDependencyBuilder.computeResult(ClassDependencyBuilder.java:41)
>>
>> at
>> org.glassfish.web.loader.ServletContainerInitializerUtil.checkAgainstInterestList(ServletContainerInitializerUtil.java:405)
>>
>> at
>> org.glassfish.web.loader.ServletContainerInitializerUtil.getInitializerList(ServletContainerInitializerUtil.java:313)
>>
>> at
>> org.apache.catalina.core.StandardContext.callServletContainerInitializers(StandardContext.java:5258)
>>
>> at
>> com.sun.enterprise.web.WebModule.callServletContainerInitializers(WebModule.java:551)
>>
>> at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:5190)
>>
>> ... 38 more
>>
>>
>> 2009/11/12 Naresh <Srinivas.Bhimisetty_at_sun.com
>> <mailto:Srinivas.Bhimisetty_at_sun.com>>
>>
>> Hi,
>>
>> we have a Hudson job which runs some Jersey sample tests on the
>> nightly builds of GlassFish.
>> We observe that in the latest nightly build few samples fail to
>> deploy.
>>
>> Some NullPointerExceptions like the following are thrown at
>> deployment time:
>>
>> ---------------------------------------------------------------------------------------
>>
>> Caused by: java.lang.NullPointerException at
>>
>> org.glassfish.deployment.common.ClassDependencyBuilder.getAnnotatedClasses(ClassDependencyBuilder.java:57)
>>
>> at
>>
>> org.glassfish.deployment.common.ClassDependencyBuilder.computeResult(ClassDependencyBuilder.java:41)
>>
>> at
>>
>> org.glassfish.web.loader.ServletContainerInitializerUtil.checkAgainstInterestList(ServletContainerInitializerUtil.java:405)
>>
>> at
>>
>> org.glassfish.web.loader.ServletContainerInitializerUtil.getInitializerList(ServletContainerInitializerUtil.java:313)
>>
>> at
>>
>> org.apache.catalina.core.StandardContext.callServletContainerInitializers(StandardContext.java:5258)
>>
>> at
>>
>> com.sun.enterprise.web.WebModule.callServletContainerInitializers(WebModule.java:551)
>>
>> at
>>
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:5190)
>>
>> ... 38 more
>>
>> ---------------------------------------------------------------------------------------
>>
>>
>> Is it possibly a regression in the latest nightly build of
>> GlassFish?
>>
>> You might want to try deploying the attached sample for
>> reproducing the issue.
>>
>> Thanks,
>> Naresh
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>> <mailto:quality-unsubscribe_at_glassfish.dev.java.net>
>> For additional commands, e-mail:
>> quality-help_at_glassfish.dev.java.net
>> <mailto:quality-help_at_glassfish.dev.java.net>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>