[
https://issues.apache.org/jira/browse/LOG4J2-1711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15674265#comment-15674265
]
mik commented on LOG4J2-1711:
-----------------------------
{quote}
If you set status to "INFO" as an attribute on the Configuration element in
your configuration file. You should see this INFO log event:
"sun.reflect.Reflection.getCallerClass is not supported.
ReflectionUtil.getCallerClass will be much slower due to this."
Do you see this?
{quote}
Do you mean first record in the following:
{code:javascript}
status: info
appenders:
Console:
- name: stdout
target: SYSTEM_OUT
ThresholdFilter:
level: warn
onMatch: deny
onMismatch: accept
PatternLayout: { pattern: "%d [%t] %p %c{1} - %m %rEx%n" }
- name: stderr
target: SYSTEM_ERR
ThresholdFilter:
level: warn
PatternLayout: { pattern: "%d [%t] %p %c{1} - %m %rEx%n" }
loggers:
root:
level: warn
appender-ref:
- ref: stdout
- ref: stderr
logger:
- name: org.springframework
level: info
{code}
If yes then I don't see "sun.reflect.Reflection.getCallerClass is not
supported. ReflectionUtil.getCallerClass will be much slower due to this."
message
> GAE sun.reflect.Reflection is a restricted class when spring web app start
> --------------------------------------------------------------------------
>
> Key: LOG4J2-1711
> URL: https://issues.apache.org/jira/browse/LOG4J2-1711
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.7
> Reporter: mik
> Priority: Critical
>
> log4j-api : 2.7
> log4j-core : 2.7
> log4j-slf4j-impl : 2.7
> log4j-web : 2.7
> jcl-over-slf4j : 1.7.21
> slf4j-api : 1.7.21
> {code:java}
> to this. java.lang.NoClassDefFoundError: sun.reflect.Reflection is a
> restricted class. Please see the Google App Engine developer's guide for more
> details.
> at
> com.google.appengine.runtime.Request.process-b2ab119ecd250b28(Request.java)
> at sun.reflect.Reflection.<clinit>(Reflection.java)
> at java.lang.reflect.Method.invoke(Method.java:42)
> at
> org.apache.logging.log4j.util.ReflectionUtil.<clinit>(ReflectionUtil.java:67)
> at
> org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:42)
> at
> org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:42)
> at
> org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29)
> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
> at
> org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
> at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:290)
> at
> org.springframework.web.servlet.DispatcherServlet.<clinit>(DispatcherServlet.java:269)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> at java.lang.Class.newInstance(Class.java:379)
> at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
> at
> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:428)
> at
> org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
> at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
> at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
> at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
> at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:446)
> at
> com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:453)
> at
> com.google.tracing.CurrentContext.runInContext(CurrentContext.java:276)
> at
> com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:312)
> at
> com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:304)
> at
> com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:450)
> at java.lang.Thread.run(Thread.java:745)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]