java - JMX runtime input lookup class is not available because this JRE does not support JMX -
i getting above error when try running application. sure has updating log4j log4j2 since if not reference log4j2.xml file error gone.
why getting error?
here full stack trace, if helps:
2016-09-12 12:01:26,124 main warn jmx runtime input lookup class not available because jre not support jmx. jmx lookups not available, continuing configuration. java.lang.classcastexception: cannot cast org.apache.logging.log4j.core.lookup.jmxruntimeinputargumentslookup org.apache.logging.log4j.core.lookup.strlookup @ java.lang.class.cast(unknown source) @ org.apache.logging.log4j.util.loaderutil.newcheckedinstanceof(loaderutil.java:168) @ org.apache.logging.log4j.core.util.loader.newcheckedinstanceof(loader.java:301) @ org.apache.logging.log4j.core.lookup.interpolator.<init>(interpolator.java:106) @ org.apache.logging.log4j.core.config.abstractconfiguration.<init>(abstractconfiguration.java:116) @ org.apache.logging.log4j.core.config.defaultconfiguration.<init>(defaultconfiguration.java:46) @ org.apache.logging.log4j.core.layout.patternlayout$builder.build(patternlayout.java:492) @ org.apache.logging.log4j.core.layout.patternlayout.createdefaultlayout(patternlayout.java:376) @ org.apache.logging.log4j.core.appender.consoleappender$builder.<init>(consoleappender.java:168) @ org.apache.logging.log4j.core.appender.consoleappender.newbuilder(consoleappender.java:160) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) @ java.lang.reflect.method.invoke(unknown source) @ org.apache.logging.log4j.core.config.plugins.util.pluginbuilder.createbuilder(pluginbuilder.java:152) @ org.apache.logging.log4j.core.config.plugins.util.pluginbuilder.build(pluginbuilder.java:119) @ org.apache.logging.log4j.core.config.abstractconfiguration.createpluginobject(abstractconfiguration.java:918) @ org.apache.logging.log4j.core.config.abstractconfiguration.createconfiguration(abstractconfiguration.java:858) @ org.apache.logging.log4j.core.config.abstractconfiguration.createconfiguration(abstractconfiguration.java:850) @ org.apache.logging.log4j.core.config.abstractconfiguration.doconfigure(abstractconfiguration.java:479) @ org.apache.logging.log4j.core.config.abstractconfiguration.initialize(abstractconfiguration.java:219) @ org.apache.logging.log4j.core.config.abstractconfiguration.start(abstractconfiguration.java:231) @ org.apache.logging.log4j.core.loggercontext.setconfiguration(loggercontext.java:496) @ org.apache.logging.log4j.core.loggercontext.reconfigure(loggercontext.java:566) @ org.apache.logging.log4j.core.loggercontext.reconfigure(loggercontext.java:582) @ org.apache.logging.log4j.core.loggercontext.start(loggercontext.java:217) @ org.apache.logging.log4j.core.impl.log4jcontextfactory.getcontext(log4jcontextfactory.java:152) @ org.apache.logging.log4j.core.impl.log4jcontextfactory.getcontext(log4jcontextfactory.java:45) @ org.apache.logging.log4j.logmanager.getcontext(logmanager.java:307) @ org.apache.log4j.logger$privatemanager.getcontext(logger.java:59) @ org.apache.log4j.logger.getlogger(logger.java:37) @ org.apache.commons.logging.impl.log4jlogger.getlogger(log4jlogger.java:289) @ org.apache.commons.logging.impl.log4jlogger.<init>(log4jlogger.java:109) @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(unknown source) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(unknown source) @ java.lang.reflect.constructor.newinstance(unknown source) @ org.apache.commons.logging.impl.logfactoryimpl.createlogfromclass(logfactoryimpl.java:1116) @ org.apache.commons.logging.impl.logfactoryimpl.discoverlogimplementation(logfactoryimpl.java:914) @ org.apache.commons.logging.impl.logfactoryimpl.newinstance(logfactoryimpl.java:604) @ org.apache.commons.logging.impl.logfactoryimpl.getinstance(logfactoryimpl.java:336) @ org.apache.commons.logging.impl.logfactoryimpl.getinstance(logfactoryimpl.java:310) @ org.apache.commons.logging.logfactory.getlog(logfactory.java:685) @ org.apache.jasper.servlet.jspservlet.<clinit>(jspservlet.java:58) @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(unknown source) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(unknown source) @ java.lang.reflect.constructor.newinstance(unknown source) @ java.lang.class.newinstance(unknown source) @ org.mortbay.jetty.servlet.holder.newinstance(holder.java:153) @ org.mortbay.jetty.servlet.servletholder.initservlet(servletholder.java:428) @ org.mortbay.jetty.servlet.servletholder.dostart(servletholder.java:263) @ org.mortbay.component.abstractlifecycle.start(abstractlifecycle.java:50) @ org.mortbay.jetty.servlet.servlethandler.initialize(servlethandler.java:736) @ org.mortbay.jetty.servlet.context.startcontext(context.java:140) @ org.mortbay.jetty.webapp.webappcontext.startcontext(webappcontext.java:1282) @ org.mortbay.jetty.handler.contexthandler.dostart(contexthandler.java:518) @ org.mortbay.jetty.webapp.webappcontext.dostart(webappcontext.java:499) @ com.google.gwt.dev.shell.jetty.jettylauncher$webappcontextwithreload.dostart(jettylauncher.java:468) @ org.mortbay.component.abstractlifecycle.start(abstractlifecycle.java:50) @ org.mortbay.jetty.handler.handlerwrapper.dostart(handlerwrapper.java:130) @ org.mortbay.jetty.handler.requestloghandler.dostart(requestloghandler.java:115) @ org.mortbay.component.abstractlifecycle.start(abstractlifecycle.java:50) @ org.mortbay.jetty.handler.handlerwrapper.dostart(handlerwrapper.java:130) @ org.mortbay.jetty.server.dostart(server.java:224) @ org.mortbay.component.abstractlifecycle.start(abstractlifecycle.java:50) @ com.google.gwt.dev.shell.jetty.jettylauncher.start(jettylauncher.java:672) @ com.google.gwt.dev.devmode.dostartupserver(devmode.java:509) @ com.google.gwt.dev.devmodebase.startup(devmodebase.java:1068) @ com.google.gwt.dev.devmodebase.run(devmodebase.java:811) @ com.google.gwt.dev.dev
mode.main(devmode.java:311)
that warning, not real error. not indicate there real problem.
i agree showing stack trace in case unnecessary , confusing. raised ticket log4j2-1582 on log4j 2 bug tracker , fixed it.
in next version of log4j 2 (2.7), stack trace no longer show, warning message.
Comments
Post a Comment