admin@glassfish.java.net

Re: The Admin Console in today's build (10/9)

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Fri, 09 Oct 2009 11:13:07 -0700

Kim Haase wrote:
> Running today's build (glassfish-v3-b67-10_09_2009.zip) on Solaris, I
> see the following problems. Which of these are a reflection of the
> incomplete state of the Admin Console reimplementation, and which
> should I report as issues?
>
> The Admin Console still takes a very long time to load, even longer
> than before, I think (a minute and a half or so):
>
> Oct 9, 2009 11:04:36 AM
> com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter setStateMsg
> INFO: The Admin Console is loading...
> ...
> Oct 9, 2009 11:06:15 AM
> com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter setStateMsg
> INFO: The Admin Console application is loaded.
I am unsure why it is this slow to load. It could be related to changes
in the server (JSF, deployment code, or web container). I do not know
of anything that should have caused that in our code, in fact, I removed
2 steps from the process which *should* speed it up, not slow it down
(it no longer expands the .war file... it's already expanded when you
unzip glassfish, and it no longer checks to see if it should download
the .war).

fwiw, It has also seemed very slow to load for me as well.
> When the Console first opens, the Please Register window is over to
> the right side of the window instead of being centered in the Common
> Tasks area as before. Is this intentional?
This is not intentional. It seems to re-center correctly if you move
the window or click on "Common Tasks". I suspect this got broken when I
chose to load the page at the same time as the rest of the content (tree
/ header). This improved the speed, but probably changed the order in
which the JavaScript calculates the "center". You can file a bug, but
it's probably a P4.
> After I click Remind Me Later, there are a couple of flashes before
> the window loads (in one of the flashes the tree nodes are centered
> instead of being left-aligned). (On subsequent reloads, the left tree
> changes from big to small font and back.)
I don't see the flashes. However, I do know of an issue (that is not
yet filed) with the font size changing on various tree nodes -- please
file that one if you see it also. That's a P3, I think.

> When I click the Update Tool node, it takes quite a while to load. I
> guess the performance improvements don't extend there (it must need to
> load a lot of info).
I have had mixed results with update center. Yesterday I told Jason
that it was taking 10+ seconds to check for updates. Then 20 minutes
later, I tried again and it was almost instantaneous. I suspect it is
related to network conditions.
> A couple of builds ago, when I started the domain, the server log
> showed messages listing available updates, and when I looked in the
> Available Updates tab of the server log, there they were. At least, I
> seem to remember this.
>
> With the 10/9 build I do not see these messages; instead I see
>
> Oct 9, 2009 11:12:11 AM
> com.sun.enterprise.registration.glassfish.PingService$1 run
> INFO: Total number of available updates : 0
>
> And the Available Updates table is empty.
I see the same thing. I'm not sure what's going on.
> If I expand the Connectors node, click the Connector Resources node,
> then click the JDBC node, the font size for the tree and the JDBC page
> becomes very small. If I then click the Connector Resources node
> again, the font size goes back to normal.
See comment about this above, please file an issue.
> If I then create three JMS resources using the cli, then expand the
> JMS Resources node and click JMS Connection Factories,
>
> a) The font size goes small again.
> b) Although the connection factory appears in the table, the tree
> nodes have not been refreshed with triangles to reflect the new
> objects under the JMS Resources and Connectors nodes (but these nodes
> are still open, so that bug is fixed!). If I close the nodes and
> expand them again, the new objects still don't appear. (The font size
> is still small.)
Jason is working on the tree refresh problem. This is a known filed issue.
>
> I then click the Virtual Servers node. The font size gets big again,
> and when I return to the Connectors node the font size is okay. The
> object still don't show up in the tree, though, when I close and
> expand it. What does it take? If I close the Admin Console window and
> then reopen it in another browser tab, the tree reflects the changes.
> I shouldn't have to do that.
Currently you can hit "reload" in your browser to cause the tree nodes
to appear. Until Jason is done, there isn't another easier work around.
>
> If I leave the console alone for a while and then go back to it and
> click on a node (in this case Update Tool), what fills the right area
> is not the Update Tool page but the login page, more or less -- big
> grayish area with copyright notice below it. The title bar says
> "Login" and the URL is http://localhost:4848/common/index.jsf.
> Clicking on any other node has no effect. I have to reload the Admin
> Console in another browser tab again.
Yes, I know about this issue and have it on my own todo list, but I do
not think it is filed. If you can, please file this as a P3 issue and
assign it to me (id == kenpaulsen).
> But after I reload the Admin Console and click Update Tool, I get a
> popup saying, "Error (500) loading
> http://localhost:4848/updateCenter/addOn.jsf?bare=true: Internal
> Server Error". The server log stack trace begins,
>
> Oct 9, 2009 1:03:53 PM org.apache.catalina.core.StandardWrapperValve log
> WARNING: StandardWrapperValve[FacesServlet]: PWC1406:
> Servlet.service() for servlet FacesServlet threw exception
> java.lang.NullPointerException
> at
> org.apache.jasper.compiler.TagLibraryInfoImpl.toString(TagLibraryInfoImpl.java:124)
>
> at java.lang.String.valueOf(String.java:2826)
> at java.lang.StringBuilder.append(StringBuilder.java:115)
> at java.util.AbstractMap.toString(AbstractMap.java:490)
> at java.lang.String.valueOf(String.java:2826)
I don't see this... however, I may not have updatecenter installed
correctly in my build. I get the following message in my server.log
file when I click on the UC tree node:

INFO: Cannot create update center Image for /opt/v3/glassfishv3; Update
Center functionality will not be available in Admin Console

You can file this bug too if you'd like.

Thanks for reporting all this!!

Ken

>
> Nodes other than Update Tool seem to work okay.
>
>
> Thanks,
> Kim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>