glassfish
  1. glassfish
  2. GLASSFISH-3424

Instance logs go to wrong file - partially

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.1peur1
    • Fix Version/s: 4.0
    • Component/s: admin
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: All

      Description

      How to reproduce:
      Set the logging file for an instance to any non-default location, e.g. I set it to:
      c:/temp/i1.log

      Now start the instance.

      default file == <as>/nodeagents/na/i1/logs/server.log
      Observe that the default file (<as>/nodeagents/na/i1/logs/server.log) still
      gets, in my case, 5 log messages:

      [#|2007-07-25T12:15:21.593-0700|INFO|sun-appserver9.1|javax.ee.enterprise.system.tools.sync
      ;|IdentityManager Data: User:admin|#]

      [#|2007-07-25T12:15:22.359-0700|INFO|sun-appserver9.1|javax.ee.enterprise.system.tools.sync
      ;0.500;|SYNC010: Synchronization completed in 0.500 seconds.|#]

      [#|2007-07-25T12:15:23.093-0700|INFO|sun-appserver9.1|javax.ee.enterprise.system.tools.sync
      ;0.734;|SYNC073: Repository cleaning cycle took 0.734 seconds to complete.|#]

      [#|2007-07-25T12:15:26.265-0700|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadI
      System Application Server 9.1 (build local) ...|#]

      [#|2007-07-25T12:15:26.312-0700|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadI
      enterprise.interceptor.DynamicInterceptor;|MBeanServer started:
      com.sun.enterprise.intercep

      Everything thing else goes to c:/temp/i1.log as expected

        Activity

        Hide
        Byron Nevins added a comment -

        I mostly fixed this by:

        1)Figure out the correct logfile for the instance inside NA
        2)Pass this logfile to Synch.
        3)create the correct FileHandler, using the file, in Sync and then fixup the logger.

        Now there are TWO log messages that go into the "wrong" file. By wrong I mean
        the hrd-coded <instance-root>/logs/server.log

        Both of these messages are created in the core itself after the instance is
        launched. I.e. the core does something like this:

        create instance logger
        log messages – which uses the default logfile
        read domain.xml
        fix the logger to use the correct logfile.

        I am leaving these final 2 log messages as is – they are in the core and it's
        too messy/not worth it to fix now. Here are the messages:

        ------------------

        [#|2007-07-25T15:50:10.453-0700|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=pool-1-thread-2;com.sun.enterprise.interceptor.DynamicInterceptor;|MBeanServer
        started: com.sun.enterprise.interceptor.DynamicInterceptor|#]

        [#|2007-07-25T15:50:24.531-0700|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=11;_ThreadName=main;|Starting
        Sun Java System Application Server 9.1 (build local) ...|#]

        Show
        Byron Nevins added a comment - I mostly fixed this by: 1)Figure out the correct logfile for the instance inside NA 2)Pass this logfile to Synch. 3)create the correct FileHandler, using the file, in Sync and then fixup the logger. Now there are TWO log messages that go into the "wrong" file. By wrong I mean the hrd-coded <instance-root>/logs/server.log Both of these messages are created in the core itself after the instance is launched. I.e. the core does something like this: create instance logger log messages – which uses the default logfile read domain.xml fix the logger to use the correct logfile. I am leaving these final 2 log messages as is – they are in the core and it's too messy/not worth it to fix now. Here are the messages: ------------------ [#|2007-07-25T15:50:10.453-0700|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=pool-1-thread-2;com.sun.enterprise.interceptor.DynamicInterceptor;|MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor|#] [#|2007-07-25T15:50:24.531-0700|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=11;_ThreadName=main;|Starting Sun Java System Application Server 9.1 (build local) ...|#]
        Hide
        gfbugbridge added a comment -

        <BT6585513>

        Show
        gfbugbridge added a comment - <BT6585513>
        Hide
        Byron Nevins added a comment -

        Created an attachment (id=1065)
        the fix

        Show
        Byron Nevins added a comment - Created an attachment (id=1065) the fix
        Hide
        Byron Nevins added a comment -

        fixed. changes attached

        Show
        Byron Nevins added a comment - fixed. changes attached
        Hide
        Dhiru Pandey added a comment -

        Changes backed out to fix http://bugs.sun.com/view_bug.do?bug_id=6593897

        Reopening the bug. Not a release stopper for 9.1

        Show
        Dhiru Pandey added a comment - Changes backed out to fix http://bugs.sun.com/view_bug.do?bug_id=6593897 Reopening the bug. Not a release stopper for 9.1
        Hide
        Tom Mueller added a comment -

        Cleared the Fix version field since this issue isn't going to be fixed in 9.1peur1.

        Show
        Tom Mueller added a comment - Cleared the Fix version field since this issue isn't going to be fixed in 9.1peur1.
        Hide
        Byron Nevins added a comment -

        I don't know if this is still applicable. Leaving it alive until I get time to investigate

        Show
        Byron Nevins added a comment - I don't know if this is still applicable. Leaving it alive until I get time to investigate

          People

          • Assignee:
            Byron Nevins
            Reporter:
            Byron Nevins
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: