dev@glassfish.java.net

Re: stack trace during loading admin console

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Fri, 04 Sep 2009 13:17:17 -0400

kedar wrote:
> What happens when you connect to http://localhost:8080? If that behaves
> normally, then this is a problem specific to admin adapters
> we need to fix for FCS. (Also, please run asadmin --host localhost
> list-commands and see if it works normally).
>
> JF - is there a bug already reported on this?

Many :-)

   * https://glassfish.dev.java.net/issues/show_bug.cgi?id=8621

Something changed in the way the host gets resolved over the summer.
What is surprising is this week seems to be a lucky week as it started
to appear more often. That's probably the EU fault :-)

A+

-- Jeanfrancois

>
> -Kedar
>
> Sahoo wrote:
>> Anissa,
>>
>> I don't know what is different about my system that leads to this
>> problem.
>> My /etc/hosts file contains following entries:
>> 127.0.0.1 localhost glassfish glassfish.
>> 192.168.1.12 glassfish-iwi0 # Added by inetmenu
>>
>> I am not the first person reporting this problem. Hong reported it
>> before. JF says this is a known problem and being investigated. So,
>> pl. talk to JF.
>>
>> What is even more interesting to note is that once I successfully
>> access admin console using http://127.0.0.1:4848,
>> http://localhost:4848 starts working.
>>
>> Thanks,
>> Sahoo
>>
>> Anissa Lam wrote:
>>>
>>> Hi Sahoo,
>>> I just download
>>> http://download.java.net/glassfish/v3/promoted/glassfish-v3-preview-b62.zip
>>> and i can launch GUI by going to http://locahost:4848
>>> As for adding test case, all the quicklook test for adminconsole is
>>> ran using localhost:4848. Could it be something different in your
>>> system setup ?
>>>
>>> thanks
>>> Anissa.
>>>
>>> Jeanfrancois Arcand wrote:
>>>>
>>>> Salut,
>>>>
>>>> Sahoo wrote:
>>>>> I just downloaded b62 and could not get the admin console loaded if
>>>>> I used http://localhost:4848. The moment I replaced localhost by
>>>>> 127.0.0.1 in the URL, it worked. I remember we encountered this
>>>>> quite sometime back and it had to do with some Mapper code in web
>>>>> container or Grizzly.
>>>>
>>>> Actually this is a different one. It seems the configuration of the
>>>> Mapper/WebContainer MBeans changed recently, which cause the issue.
>>>> I agree the Mapper should be a little bit more robust.
>>>>
>>>>> I am hoping appropriate module owner will add a test case for this
>>>>> to avoid similar regression in future.
>>>>
>>>> Agree.
>>>>
>>>> A+
>>>>
>>>> -- Jeanfrancois
>>>>
>>>>>
>>>>> Sahoo
>>>>>
>>>>> Jeanfrancois Arcand wrote:
>>>>>> Oups wrong link
>>>>>>
>>>>>> * https://glassfish.dev.java.net/issues/show_bug.cgi?id=8621
>>>>>>
>>>>>> This is something related to the default web module.
>>>>>>
>>>>>> A+
>>>>>>
>>>>>> --Jeanfrancois
>>>>>>
>>>>>> Jeanfrancois Arcand wrote:
>>>>>>> Salut,
>>>>>>>
>>>>>>> this is an old issue we are tracking within the WebContainer:
>>>>>>>
>>>>>>> * https://glassfish.dev.java.net/issues/show_bug.cgi?id=9315
>>>>>>>
>>>>>>> but it seems to pops up more recently.
>>>>>>>
>>>>>>> A+
>>>>>>>
>>>>>>> -- Jeanfrancois
>>>>>>>
>>>>>>> Hong Zhang wrote:
>>>>>>>> For a fresh installation from the the latest workspace, I
>>>>>>>> started the server and pointed to localhost:4848 to load up
>>>>>>>> admin console. Then I saw the following in the server.log. Is
>>>>>>>> this known problem? The admin console seems to still function ok
>>>>>>>> afterwards.
>>>>>>>>
>>>>>>>>
>>>>>>>> [#|2009-09-01T15:36:57.897-0400|INFO|glassfish|null|_ThreadID=22;_ThreadName=Thread-2;|AdminConsoleAdapter's
>>>>>>>> STATE IS: The Admin Console is loading...|#]
>>>>>>>>
>>>>>>>> [#|2009-09-01T15:36:58.551-0400|SEVERE|glassfish|grizzly|_ThreadID=21;_ThreadName=Thread-2;|No
>>>>>>>> host found: __asadmin|#]
>>>>>>>>
>>>>>>>> [#|2009-09-01T15:36:58.551-0400|WARNING|glassfish|org.apache.catalina.connector.MapperListener|_ThreadID=21;_ThreadName=Thread-2;|Error
>>>>>>>> registering Context
>>>>>>>> com.sun.appserv:j2eeType=WebModule,name=//__asadmin/,J2EEApplication=null,J2EEServer=server
>>>>>>>>
>>>>>>>> java.lang.ArrayIndexOutOfBoundsException: -1
>>>>>>>> at
>>>>>>>> com.sun.grizzly.util.http.mapper.Mapper.addContext(Mapper.java:330)
>>>>>>>> at
>>>>>>>> org.apache.catalina.connector.MapperListener.registerContext(MapperListener.java:608)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.connector.MapperListener.handleNotification(MapperListener.java:371)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor$ListenerWrapper.handleNotification(DefaultMBeanServerInterceptor.java:1732)
>>>>>>>>
>>>>>>>> at
>>>>>>>> javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:257)
>>>>>>>>
>>>>>>>> at
>>>>>>>> javax.management.NotificationBroadcasterSupport$SendNotifJob.run(NotificationBroadcasterSupport.java:322)
>>>>>>>>
>>>>>>>> at
>>>>>>>> javax.management.NotificationBroadcasterSupport$1.execute(NotificationBroadcasterSupport.java:307)
>>>>>>>>
>>>>>>>> at
>>>>>>>> javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:229)
>>>>>>>>
>>>>>>>> at
>>>>>>>> javax.management.MBeanServerDelegate.sendNotification(MBeanServerDelegate.java:193)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.sendNotification(DefaultMBeanServerInterceptor.java:1524)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1501)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.tomcat.util.modeler.Registry.registerComponent(Registry.java:809)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.StandardContext.registerJMX(StandardContext.java:6363)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:5379)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.enterprise.web.WebModule.start(WebModule.java:503)
>>>>>>>> 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:1813)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1502)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.enterprise.web.WebApplication.start(WebApplication.java:93)
>>>>>>>> at
>>>>>>>> org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
>>>>>>>> at
>>>>>>>> org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:223)
>>>>>>>> at
>>>>>>>> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:224)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:311)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:303)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:285)
>>>>>>>>
>>>>>>>> at
>>>>>>>> com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:100)
>>>>>>>>
>>>>>>>> |#]
>>>>>>>>
>>>>>>>> [#|2009-09-01T15:36:58.555-0400|INFO|glassfish|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=21;_ThreadName=Thread-2;|Loading
>>>>>>>> application __admingui at /|#]
>>>>>>>>
>>>>>>>> [#|2009-09-01T15:36:58.557-0400|INFO|glassfish|null|_ThreadID=21;_ThreadName=Thread-2;|Loading
>>>>>>>> __admingui Application done is 6324 ms|#]
>>>>>>>>
>>>>>>>> [#|2009-09-01T15:36:58.557-0400|INFO|glassfish|null|_ThreadID=21;_ThreadName=Thread-2;|The
>>>>>>>> Admin Console application is loaded.|#]
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>
>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>