Skip to main content

3.1 admin console login timeout leads to inability to log back in

6 replies [Last post]
culli
Offline
Joined: 2006-09-17
Points: 0

With GF 3.1 b43 (open source) when I have logged into the admin console then leave the browser window open and later come back to it, I sometimes get a 500 error in the browser, and this in the server.log:

User [] from host <host> does not have administration access

It just seems to be unable to return me to the login page since my session has timed out. I am able to work around this by deleting the JSESSIONID cookie for the GF server from my browser, then the admin page returns to the log in correctly. The domain is one that I created and configured with an admin password. The login to the /management/domain REST interface seems to work ok even when the admin page won't log in.

Google Chrome 13.0.782.41 beta-m

my OS: Windows Vista Business

Server is RHEL 5 with Glassfish using Java 1.6.0_24 64-bit

Interesting part of log (sorry this just wouldn't post well):

[#|2011-07-05T14:02:52.429-0600|SEVERE|oracle-glassfish3.1|org.glassfish.admingui|_ThreadID=20;_ThreadName=Thread-1;|RestResponse.getResponse() gives FAILURE.  endpoint = 'http://localhost:30048/management/domain/configs/config.json'; attrs = '{}'|#]

[#|2011-07-05T14:02:52.431-0600|INFO|oracle-glassfish3.1|javax.enterprise.system.tools.admin.com.sun.enterprise.container.common|_ThreadID=109;_ThreadName=Thread-1;|User [] from host xyz does not have administration access|#]

[#|2011-07-05T14:02:52.437-0600|WARNING|oracle-glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=83;_ThreadName=Thread-1;|StandardWrapperValve[FacesServlet]: PWC1406: Servlet.service() for servlet FacesServlet threw exception
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException while attempting to process a 'beforeCreate' event for 'treeForm'.
<span class="Apple-style-span" style="font-family: 'Trebuchet MS', Geneva, Verdana, sans-serif; line-height: 18px; white-space: normal; "><font class="Apple-style-span" face="'Lucida Console', Monaco, 'DejaVu Sans Mono', monospace">at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:422)         at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)         at com.sun.jsftemplating.layout.descriptors.LayoutComponent.beforeCreate(LayoutComponent.java:348)         at com.sun.jsftemplating.layout.descriptors.LayoutComponent.getChild(LayoutComponent.java:288)         at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:556)         at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507)         at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:551)         at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:590)         at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:590)         at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:590)         at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507)         at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507)         at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507)         at com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:255)         at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:244)         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)         at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:113)         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)         at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)         at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:233)         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)         at org.apache.catalina.core.StandardPipeline.doChainInvoke(StandardPipeline.java:600)         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)         at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)         at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:323)         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)         at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:228)         at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)         at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)         at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)         at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)         at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)         at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)         at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)         at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)         at com.sun.grizzly.ContextTask.run(ContextTask.java:71)         at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)         at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)         at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.reflect.InvocationTargetException         at sun.reflect.GeneratedMethodAccessor307.invoke(Unknown Source)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)         at java.lang.reflect.Method.invoke(Method.java:597)         at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)         at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)         ... 50 more Caused by: java.lang.NullPointerException         at org.glassfish.admingui.common.util.GuiUtil.genId(GuiUtil.java:335)         at org.glassfish.admingui.common.handlers.UtilHandlers.encodeId(UtilHandlers.java:978)         ... 55 more |#]</font><font class="Apple-style-span" face="'Lucida Console', Monaco, 'DejaVu Sans Mono', monospace"><span class="Apple-style-span" style="line-height: normal; white-space: pre; "> </span></font></span><br />

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
anilam
Offline
Joined: 2005-03-29
Points: 0

I believe you are seeing http://java.net/jira/browse/GLASSFISH-16184
This has been fixed in 3.1.1 which will be released soon.
Can you try the latest promoted build from
http://dlc.sun.com.edgesuite.net/glassfish/3.1.1/promoted/

thanks.
Anissa.

On 7/5/11 1:26 PM, forums@java.net wrote:
> With GF 3.1 b43 (open source) when I have logged into the admin console then
> leave the browser window open and later come back to it, I sometimes get a
> 500 error in the browser, and this in the server.log:
>
> User [] from host does not have administration access
> It just seems to be unable to return me to the login page since my session
> has timed out. I am able to work around this by deleting the JSESSIONID
> cookie for the GF server from my browser, then the admin page returns to the
> log in correctly. The domain is one that I created and configured with an
> admin password.
>

> [Message sent by forum member 'culli']
>
> View Post: http://forums.java.net/node/819024
>
>
>

culli
Offline
Joined: 2006-09-17
Points: 0

can I safely copy my domain folder over to the new GF install to save time?

jdlee
Offline
Joined: 2006-01-25
Points: 0

I believe you can.

On 7/5/11 4:00 PM, forums@java.net wrote:
> can I safely copy my domain folder over to the new GF install to save
> time?
>
>
> --
>
> [Message sent by forum member 'culli']
>
> View Post: http://forums.java.net/node/819024
>
>

culli
Offline
Joined: 2006-09-17
Points: 0

Something's not right with this, I can't re-deploy my app to it. At this point I don't have time to monkey with 3.1.1 any more, because I've spent several hours on it and got nowhere. For the curious, here's what I did:

Shut down GF 3.1.0 domain and cluster instances.

Downloaded 3.1.1 b10 zip file and extracted it to separate folder.

Renamed domain1 folder because my domain on GF 3.1.0 is also named domain1.

Coped 3.1.0 domain1 over to 3.1.1, as well as a cluster instance that went with it.

Started new gf311 domain1 fine.

Started new instance0 fine.

Tried to redeploy updated app .ear to the new domain (tried target of cluster and das, but neither one worked).

It hangs. I let it sit for 20+ minutes, and nothing happened. Trying again, I increased all log levels to finest, and log stops at (paraphrasing) ".ear uploaded to temp dir". No log entries after that, even waiting a long time.

anilam
Offline
Joined: 2005-03-29
Points: 0

I don't see any change between 3.1 and 3.1.1 that will prevent you from doing that.

Give it a try.

Anissa.

jdlee
Offline
Joined: 2006-01-25
Points: 0

Can you try on a recent build of 3.1.1 or a nightly trunk build? I
recently fixed a bug that sounds very familiar to that, so I *think* you
should be OK now.

On 7/5/11 3:26 PM, forums@java.net wrote:
> With GF 3.1 b43 (open source) when I have logged into the admin console then
> leave the browser window open and later come back to it, I sometimes get a
> 500 error in the browser, and this in the server.log:
>
> User [] from host does not have administration access
> It just seems to be unable to return me to the login page since my session
> has timed out. I am able to work around this by deleting the JSESSIONID
> cookie for the GF server from my browser, then the admin page returns to the
> log in correctly. The domain is one that I created and configured with an
> admin password. The login to the /management/domain REST interface seems to
> work ok even when the admin page won't log in.
>
> Google Chrome 13.0.782.41 beta-m
>
> my OS: Windows Vista Business
>
> Server is RHEL 5 with Glassfish using Java 1.6.0_24 64-bit
>
>
>
> Interesting part of log (sorry this just wouldn't post well):
>
> [#|2011-07-05T14:02:52.429-0600|SEVERE|oracle-glassfish3.1|org.glassfish.admingui|_ThreadID=20;_ThreadName=Thread-1;|RestResponse.getResponse()
> gives FAILURE. endpoint =
> 'http://localhost:30048/management/domain/configs/config.json'; attrs =
> '{}'|#]
> [#|2011-07-05T14:02:52.431-0600|INFO|oracle-glassfish3.1|javax.enterprise.system.tools.admin.com.sun.enterprise.container.common|_ThreadID=109;_ThreadName=Thread-1;|User
> [] from host xyz does not have administration access|#]
> [#|2011-07-05T14:02:52.437-0600|WARNING|oracle-glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=83;_ThreadName=Thread-1;|StandardWrapperValve[FacesServlet]:
> PWC1406: Servlet.service() for servlet FacesServlet threw exception
> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException while
> attempting to process a 'beforeCreate' event for 'treeForm'. at
> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:422)
> at
> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
> at
> com.sun.jsftemplating.layout.descriptors.LayoutComponent.beforeCreate(LayoutComponent.java:348)
> at
> com.sun.jsftemplating.layout.descriptors.LayoutComponent.getChild(LayoutComponent.java:288)
> at
> com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:556)
> at
> com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507)
> at
> com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:551)
> at
> com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:590)
> at
> com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:590)
> at
> com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:590)
> at
> com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507)
> at
> com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507)
> at
> com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:507)
> at
> com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:255)
> at
> com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:244)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at
> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:113)
> at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:409) at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
> at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:233) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
> at
> org.apache.catalina.core.StandardPipeline.doChainInvoke(StandardPipeline.java:600)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96) at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:323)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:228)
> at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719) at
> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013) at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
> at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
> at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
> at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
> at java.lang.Thread.run(Thread.java:662) Caused by:
> java.lang.reflect.InvocationTargetException at
> sun.reflect.GeneratedMethodAccessor307.invoke(Unknown Source) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597) at
> com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
> at
> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
> ... 50 more Caused by: java.lang.NullPointerException at
> org.glassfish.admingui.common.util.GuiUtil.genId(GuiUtil.java:335) at
> org.glassfish.admingui.common.handlers.UtilHandlers.encodeId(UtilHandlers.java:978)
> ... 55 more |#]
>
>
>
> --
>
> [Message sent by forum member 'culli']
>
> View Post: http://forums.java.net/node/819024
>
>