Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1582

Warning should not display stacktrace

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.2
    • Fix Version/s: 2.7
    • Component/s: Configurators
    • Labels:
      None

      Description

      See http://stackoverflow.com/questions/39457075/jmx-runtime-input-lookup-class-is-not-available-because-this-jre-does-not-suppor

      This warning does not need to print the full stacktrace:

      2016-09-12 12:01:26,124 main WARN JMX runtime input lookup class is not available because this JRE does not support JMX. JMX lookups will not be available, continuing configuration. java.lang.ClassCastException: Cannot cast org.apache.logging.log4j.core.lookup.JmxRuntimeInputArgumentsLookup to org.apache.logging.log4j.core.lookup.StrLookup
          at java.lang.Class.cast(Unknown Source)
          at org.apache.logging.log4j.util.LoaderUtil.newCheckedInstanceOf(LoaderUtil.java:168)
          at org.apache.logging.log4j.core.util.Loader.newCheckedInstanceOf(Loader.java:301)
          at org.apache.logging.log4j.core.lookup.Interpolator.<init>(Interpolator.java:106)
          at org.apache.logging.log4j.core.config.AbstractConfiguration.<init>(AbstractConfiguration.java:116)
          at org.apache.logging.log4j.core.config.DefaultConfiguration.<init>(DefaultConfiguration.java:46)
          at org.apache.logging.log4j.core.layout.PatternLayout$Builder.build(PatternLayout.java:492)
          at org.apache.logging.log4j.core.layout.PatternLayout.createDefaultLayout(PatternLayout.java:376)
       ...
      

        Attachments

          Activity

            People

            • Assignee:
              remkop@yahoo.com Remko Popma
              Reporter:
              remkop@yahoo.com Remko Popma
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: