Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7159567

inconsistent configuration for MemoryHandler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • 7
    • core-libs
    • b64
    • x86
    • linux
    • Verified

    Description

      FULL PRODUCT VERSION :
      java version "1.7.0_03"
      Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
      Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      3.0.0-16-generic #29-Ubuntu SMP Tue Feb 14 12:48:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux


      A DESCRIPTION OF THE PROBLEM :
      when deriving from java.util.MemoryHandler, the target configuration is taken from 'java.util.logging.MemoryHandler.target' property and the rest of the configuration is taken from the 'Derived.*' properties.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      - Derive empty class from MemoryHandler.
      - configure in logging.properties:
      handlers=example.DerivedMemoryHandler
      example.DerivedMemoryHandler.target=java.util.logging.ConsoleHandler
      example.DerivedMemoryHandler.push=WARNING



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      DerivedMemoryHandler gets target 'java.util.logging.ConsoleHandler'
      ACTUAL -
      does not reveive target.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      java.lang.RuntimeException: MemoryHandler can't load handler "null"

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      java.util.logging.MemoryHandler.target=java.util.logging.ConsoleHandler

      Attachments

        Activity

          People

            jgish Jim Gish (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: