glassfish
  1. glassfish
  2. GLASSFISH-15129

Admin Console takes more time to load and throws a Severe message on server.log

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 3.1_b32
    • Component/s: admin_gui
    • Labels:
      None
    • Environment:

      Windows2oo8R2,Solaris Sparc ,EOL5

      Description

      Issue 1 :

      Install 3.1B32 and access the admin console.

      Admin console takes more time to load , at the same time you can see a below error message on server.log.

      [#|2010-12-13T11:55:11.598+0530|SEVERE|oracle-glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|
      _ThreadID=21;_ThreadName=Thread-3;|java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost
      :4848/management/domain
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
      at com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter$1.run(AdminConsoleAdapter.java:350)

      Issue 2:

      Restart the domain and try to access the admin console i.e http://hostname:4848
      You get a blank screen.Looks like console hangs.
      You need to clear the cookies and cache history every time before accessing the admin console.

      1. 3.1B32-adminconsole.rtf
        7.69 MB
        hsbhavya
      2. 3.1B33_server.log
        27 kB
        hsbhavya
      3. b33_server.log
        36 kB
        hsbhavya

        Activity

        Hide
        Anissa Lam added a comment -

        We looked at the attached server.log again. We see some timing issues here.
        How do you run the test ? Sounds like on your machine, the tests are started too soon after server start. None of the listener has started yet when you launch GUI. Can you modify your test script to wait a while after server started before launching GUI ? That maybe also why no one sees this exception excepts you.

        As to why AdminConsoleAdapter is involved before the admin listener starts, I need to talk to others to find out.

        [#|2010-12-16T16:13:43.791+0530|INFO|oracle-glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=15;_ThreadName=Thread-1;|The Admin Console is installing...|#]

        [#|2010-12-16T16:13:43.815+0530|INFO|oracle-glassfish3.1|javax.enterprise.system.tools.admin.com.sun.enterprise.container.common|_ThreadID=15;_ThreadName=Thread-1;|User [] from host localhost does not have administration access|#]

        [#|2010-12-16T16:13:44.183+0530|SEVERE|oracle-glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=15;_ThreadName=Thread-1;|java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:4848/management/domain
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
        at com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter$1.run(AdminConsoleAdapter.java:378)

        #]

        [#|2010-12-16T16:13:44.435+0530|INFO|oracle-glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=15;_ThreadName=Thread-1;|The Admin Console is already installed, but not yet loaded.|#]

        [#|2010-12-16T16:13:44.438+0530|INFO|oracle-glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=15;_ThreadName=Thread-1;|The Admin Console is starting. Please wait.|#]

        [#|2010-12-16T16:13:47.945+0530|INFO|oracle-glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=15;_ThreadName=Thread-1;|WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]|#]

        [#|2010-12-16T16:13:47.968+0530|INFO|oracle-glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=15;_ThreadName=Thread-1;|WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181]|#]

        [#|2010-12-16T16:13:47.991+0530|INFO|oracle-glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=15;_ThreadName=Thread-1;|WEB0169: Created HTTP listener [admin-listener] on host/port [0.0.0.0:4848]|#]

        [#|2010-12-16T16:13:48.131+0530|INFO|oracle-glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=15;_ThreadName=Thread-1;|WEB0171: Created virtual server [server]|#]

        Show
        Anissa Lam added a comment - We looked at the attached server.log again. We see some timing issues here. How do you run the test ? Sounds like on your machine, the tests are started too soon after server start. None of the listener has started yet when you launch GUI. Can you modify your test script to wait a while after server started before launching GUI ? That maybe also why no one sees this exception excepts you. As to why AdminConsoleAdapter is involved before the admin listener starts, I need to talk to others to find out. [#|2010-12-16T16:13:43.791+0530|INFO|oracle-glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=15;_ThreadName=Thread-1;|The Admin Console is installing...|#] [#|2010-12-16T16:13:43.815+0530|INFO|oracle-glassfish3.1|javax.enterprise.system.tools.admin.com.sun.enterprise.container.common|_ThreadID=15;_ThreadName=Thread-1;|User [] from host localhost does not have administration access|#] [#|2010-12-16T16:13:44.183+0530|SEVERE|oracle-glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=15;_ThreadName=Thread-1;|java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:4848/management/domain at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) at com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter$1.run(AdminConsoleAdapter.java:378) #] [#|2010-12-16T16:13:44.435+0530|INFO|oracle-glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=15;_ThreadName=Thread-1;|The Admin Console is already installed, but not yet loaded.|#] [#|2010-12-16T16:13:44.438+0530|INFO|oracle-glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=15;_ThreadName=Thread-1;|The Admin Console is starting. Please wait.|#] [#|2010-12-16T16:13:47.945+0530|INFO|oracle-glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=15;_ThreadName=Thread-1;|WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080] |#] [#|2010-12-16T16:13:47.968+0530|INFO|oracle-glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=15;_ThreadName=Thread-1;|WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181] |#] [#|2010-12-16T16:13:47.991+0530|INFO|oracle-glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=15;_ThreadName=Thread-1;|WEB0169: Created HTTP listener [admin-listener] on host/port [0.0.0.0:4848] |#] [#|2010-12-16T16:13:48.131+0530|INFO|oracle-glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=15;_ThreadName=Thread-1;|WEB0171: Created virtual server [server] |#]
        Hide
        Anissa Lam added a comment -

        So far, no one has seen this exception except the submitter. More like individual's env and single case. Lower to minor.

        Show
        Anissa Lam added a comment - So far, no one has seen this exception except the submitter. More like individual's env and single case. Lower to minor.
        Hide
        hsbhavya added a comment - - edited

        I had sent a mail regarding my system details 3days back itself.I does not why you did not get it.
        Anyways here is my machine details :

        Note : I am accessing the GUI from my local machine .
        Browser detail : Mozilla firefox 3.6

        >> 1. does this cause any noticeable function lost ?
        >>>>>> Admin gui takes more time to load.

        >> Are you able to access REST after starting the server - for eg. localhost:4848/management/domain?
        >>>>>> I am able to access "http://localhost:4848/management/domain?" without any issue.

        >> So, do you add password to default user ? or add another user ?
        >>>>>> I am adding password to default user i.e admin (adminadmin)

        As you have suggested I am attaching the server.log for the below scenario :

        I also want you to attach another server.log for the following:

        Show
        hsbhavya added a comment - - edited I had sent a mail regarding my system details 3days back itself.I does not why you did not get it. Anyways here is my machine details : Note : I am accessing the GUI from my local machine . Browser detail : Mozilla firefox 3.6 >> 1. does this cause any noticeable function lost ? >>>>>> Admin gui takes more time to load. >> Are you able to access REST after starting the server - for eg. localhost:4848/management/domain? >>>>>> I am able to access "http://localhost:4848/management/domain?" without any issue. >> So, do you add password to default user ? or add another user ? >>>>>> I am adding password to default user i.e admin (adminadmin) As you have suggested I am attaching the server.log for the below scenario : I also want you to attach another server.log for the following: start domain go to http://<hostname>:4848/management/domain BEFORE accessing GUI
        Hide
        hsbhavya added a comment -

        Server.log file before accessing GUI

        Show
        hsbhavya added a comment - Server.log file before accessing GUI
        Hide
        Anissa Lam added a comment -

        Thanks for the update. I have removed the machine info from previous comment for privacy.

        Now, you answer the key questions:

        >> So, do you add password to default user ? or add another user ?
        >>> I am adding password to default user i.e admin (adminadmin)

        Since there is password restriction, the following log is expected.

        [#|2010-12-13T11:55:11.598+0530|SEVERE|oracle-glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|
        _ThreadID=21;_ThreadName=Thread-3;|java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost
        :4848/management/domain
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
        at com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter$1.run(AdminConsoleAdapter.java:350)

        Thats an optimization in the AdminConsoleAdapter to speed the initialization, to start loading REST in another thread. However, since password is required, it failed, and thus the log.
        Since we can't load REST in parallel, that maybe why you are seeing a slightly longer starting time.

        Closing the issue.

        Show
        Anissa Lam added a comment - Thanks for the update. I have removed the machine info from previous comment for privacy. Now, you answer the key questions: >> So, do you add password to default user ? or add another user ? >>> I am adding password to default user i.e admin (adminadmin) Since there is password restriction, the following log is expected. [#|2010-12-13T11:55:11.598+0530|SEVERE|oracle-glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging| _ThreadID=21;_ThreadName=Thread-3;|java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost :4848/management/domain at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313) at com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter$1.run(AdminConsoleAdapter.java:350) Thats an optimization in the AdminConsoleAdapter to speed the initialization, to start loading REST in another thread. However, since password is required, it failed, and thus the log. Since we can't load REST in parallel, that maybe why you are seeing a slightly longer starting time. Closing the issue.

          People

          • Assignee:
            hsbhavya
            Reporter:
            hsbhavya
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: