[ 
https://issues.apache.org/jira/browse/LOG4J2-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Remko Popma updated LOG4J2-1581:
--------------------------------
    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:

{noformat}
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)
 ...
{noformat}

Also: http://stackoverflow.com/q/39160265/1446916

Different error, also no need for the stacktrace. 

  was:
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:

{noformat}
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)
 ...
{noformat}


> Warning should not display stacktrace
> -------------------------------------
>
>                 Key: LOG4J2-1581
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1581
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Configurators
>    Affects Versions: 2.6.2
>            Reporter: Remko Popma
>            Assignee: Remko Popma
>             Fix For: 2.7
>
>
> 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:
> {noformat}
> 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)
>  ...
> {noformat}
> Also: http://stackoverflow.com/q/39160265/1446916
> Different error, also no need for the stacktrace. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to