dev@glassfish.java.net

Re: NPE in admin/grizzly code during upgrade

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Fri, 28 Aug 2009 11:04:08 -0700

Anissa should know better, but I think that these two properties could
go away and corresponding changes should be made
to AdminConsoleAdapter. Originally, they were meant for actually
"downloading" admin console "bits" from somewhere.
Since GlassFish v3 GlassFish distribution (and I think web distribution
too) is going to have admin console bits
available in the bundle, the need for download is not there.

I don't know how we are handling admin GUI on other distributions.

-Kedar

Bobby Bissett wrote:
> Hi all,
>
> When I'm upgrading from a v2 domain, I hit an NPE in some admin
> initialization code unless these two properties are manually added to
> domain.xml in
> /domain/configs/config[@name='server-config']/admin-service:
>
> <property name="adminConsoleDownloadLocation"
> value="${com.sun.aas.installRoot}/lib/install/applications/admingui.war"
> />
> <property name="ipsRoot" value="${com.sun.aas.installRoot}/.." />
>
> It's easy enough to add them, since we're going to have to do some
> domain.xml tweaking anyway (issue 9127), but these changes are very
> specific compared to the others (e.g., removing xml bits that v3
> doesn't need at all). I'm wondering if there's any way to avoid these.
> I think the error could be avoided during the upgrade, but then when
> the server is started normally with the upgraded domain then they're
> probably necessary. Since I don't know all that code, I wanted to check.
>
> Thanks,
> Bobby
>
> -----
>
> Aug 27, 2009 4:59:17 PM
> com.sun.enterprise.v3.services.impl.GrizzlyService postConstruct
> SEVERE: Unable to start v3. Closing all ports
> java.lang.NullPointerException
> at
> com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter.init(AdminConsoleAdapter.java:425)
>
> at
> com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter.postConstruct(AdminConsoleAdapter.java:386)
>
> at
> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
> at
> com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:89)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86)
> at
> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
> at
> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
>
> at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
> at
> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
>
> at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:275)
> at java.util.AbstractList$Itr.next(AbstractList.java:345)
> at
> com.sun.enterprise.v3.services.impl.GrizzlyService.registerNetworkProxy(GrizzlyService.java:399)
>
> at
> com.sun.enterprise.v3.services.impl.GrizzlyService.registerNetworkProxy(GrizzlyService.java:391)
>
> at
> com.sun.enterprise.v3.services.impl.GrizzlyService.postConstruct(GrizzlyService.java:310)
>
> at
> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
> at
> com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:89)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86)
> at
> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
> at
> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
>
> at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
> at
> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
>
> at
> com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:236)
>
> at
> com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:129)
>
> at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:460)
> at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:404)
> at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:121)
> at
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
>
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1461)
> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:779)
> at org.jvnet.hk2.osgimain.Main.start(Main.java:117)
> at
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
>
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1461)
> at
> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
> at
> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
> at java.lang.Thread.run(Thread.java:637)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>