quality@glassfish.java.net

Re: Nasty null pointer exception on deploy

From: Hong Zhang <Hong.Zhang_at_Sun.COM>
Date: Thu, 17 Dec 2009 09:18:47 -0500

Hi, Richard
     I was able to reproduce the problem with the application you
attached. I will look into it further and update the issue tracker with
my findings (I probably cannot get to it today, but I should be able to
look at it tomorrow). It will be helpful if you can also share the
sources for this application.
     From the stack trace, it seems it was not able to find a suitable
archivist to process the metadata for this application and that caused
the NPE. I need to find out why it could not find a suitable archivist,
but I agree with you this NPE is pretty bad and we need to provide a
better error message regardless of whether the application was packaged
properly or not.

    Thanks for reporting the problem and attaching the test case.

- Hong
    
  

Richard Kolb wrote:

> Hi Alexis
>
> Thanks, I see I can log in now.
>
> I see there is a post here :
> http://forums.java.net/jive/thread.jspa?messageID=370696
>
> I can only see part of it through google cache. Will wait until
> java.net <http://java.net> is up again before logging
> But seems like someone has seen this before me.
>
> regards
> Richard.
>
> 2009/12/17 Alexis Moussine-Pouchkine <alexis.mp
> <http://alexis.mp>@sun.com <http://sun.com>>
>
> for the most part, it's the CMS part of java.net <http://java.net>
> that is down. The code and "project" parts should not be affected.
> Can you try again :
> https://glassfish.dev.java.net/servlets/ProjectIssues ?
> thanks,
> -Alexis
>
>
> On Dec 17, 2009, at 9:20, Richard Kolb wrote:
>
> Hi there
>
> The java.net <http://java.net> bug tracker seems down for now.
>
> I am getting a nasty Null Pointer Exception when deploying my
> ejb on 3.0 release.
>
> [#|2009-12-17T10:10:17.626+0200|INFO|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=26;_ThreadName=Thread-1;|Installed
> /home/richard/install/java6/glassfishv3/glassfish/modules/autostart/org.apache.felix.fileinstall-autodeploy-bundles.cfg|#]
>
> [#|2009-12-17T10:12:12.548+0200|SEVERE|glassfishv3.0|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=19;_ThreadName=Thread-1;|Exception
> while deploying the app
> java.lang.NullPointerException
> at
> org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:120)
> at
> org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:78)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:612)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:554)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:262)
> 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:365)
> at
> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
> 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:791)
> at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
> at
> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
> 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)
> |#]
>
>
> <EnygmaCoreEjb.jar>---------------------------------------------------------------------
> 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
> <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>
>
>