我有一个使用logback和slf4j的OSGi6.0.0项目。
目前,我正在实现一个依赖于使用org.apache.logging.log4j的外部jar的包。
在命令行执行期间,bundle my karaf控制台通过显示以下错误而冻结:
线程"Karaf本地控制台用户karaf“中的异常:org/apache/log4j/util/ReflectionUtil at org.apache.logging.log4j.core.impl.ThrowableProxy.(ThrowableProxy.java:145) at org.apache.logging.log4j.core
我没有使用Maven,这是一个独立的项目,在参考库中提供jars -当代码试图初始化工作簿时抛出错误
workbook = new XSSFWorkbook();
错误:
ERROR StatusLogger Unable to create Lookup for ctx
java.lang.NoClassDefFoundError: org/apache/logging/log4j/util/ServiceLoaderUtil
at org.apache.logging.log4j.core.impl.ThreadContextDataInjector.getService
启动Tomcat时,我得到了这个异常。
除此之外,Tomcat似乎跑得还不错。不过,我不喜欢在我的控制台例外,我的谷歌搜索没有找到相关的结果,所以帮助将是非常感谢的。谢谢
Listening for transport dt_socket at address: 8787
Handler error
java.lang.ClassNotFoundException: startup
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController
log4j:WARN No appenders could be found for logger (org.apache.pdfbox.util.PDFStreamEngine).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" java.lang.NoSuchMethodError: org.
当我运行我的项目时,出现了以下错误:
ERROR StatusLogger Unable to create Lookup for ctx
下面是整个堆栈跟踪:
无法为ctx创建查找: org/apache/logging/log4j/util/ServiceLoaderUtil at org.apache.logging.log4j.core.impl.ThreadContextDataInjector.getServiceProviders(ThreadContextDataInjector.java:77) at org.apache.logging.log4j.core.impl.Th
最近,我将Spring应用程序从1.5.10升级到2.0.3,现在面临着这个问题:当我将logging.level.root=DEBUG添加到我的application.properties中时,我会得到以下例外:
log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment).
log4j:WARN Please initialize the log4j system properly.
Exception in thr
当我在eclipse中运行WordCount时,我得到了这个问题。
log4j:WARN No appenders could be found for logger (org.apache.hadoop.util.Shell).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" java.lang
我使用eclipse调试hadoop,出现错误,如何解决这个问题?
log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in
我在控制台上收到以下日志4j错误...
11:43:57,415 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "
org.apache.log4j.Appender" variable.
11:43:57,415 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
11:43:57,41
当调用logger.error(ex.getMessage(),ex)时,会导致堆栈溢出和java.lang.OutOfMemoryError: Java堆空间,并重复调用以下堆栈跟踪。这是随机发生在我们的申请。Log4j2版本为2.17.0
at org.apache.logging.log4j.spi.AbstractLogger.handleLogMessageException(Ljava/lang/Throwable;Ljava/lang/String;Lorg/apache/logging/log4j/message/Message;)V (AbstractLogger.java:
我正在尝试运行一个简单的Junit测试。它正在测试一个春季服务呼叫。我的代码中有一个bug,我能够修复它,并且正在运行Junit。但是,Junit测试在初始化时失败,出现以下错误。我不确定我的本地设置是否已损坏或是否是Maven问题。任何帮助都将不胜感激。
java.lang.IllegalAccessError: tried to access method org.apache.logging.log4j.core.lookup.MapLookup.newMap(I)Ljava/util/HashMap; from class org.apache.logging.log4j.core.l
我刚刚在我的GAE/J应用程序中将所有java.util.logging代码迁移到log4j,但是我得到了这个错误:
[INFO] Caused by: java.lang.NoClassDefFoundError: java.lang.management.ManagementFactory is a restricted class. Please see the Google App Engine developer's guide for more details.
[INFO] at com.google.appengine.tools.development.agent
当我运行命令spark-submit spark.py时,我得到了以下错误,我不能理解我已经安装了python。我已经检查了路径,它们是正确的,python版本也是3.9。我找不到错误。请帮帮我! java.io.FileNotFoundException: Hadoop bin directory does not exist: D:\spark-3.1.2-bin-hadoop3.2\bin\bin -see https://wiki.apache.org/hadoop/WindowsProblems
at org.apache.hadoop.util.Shell.get
据我所知,这些模糊的日志消息与Tomcat的Digester日志记录组件相关。有没有人知道如何减少这些日志的冗长?
下面的调试消息似乎无限期地重复,消息之间有100-10,000行,并且由于重复的上下文切换(据我所知),我正在使用的应用程序的启动时间至少增加了20分钟。除了摘要器消息之外,没有任何东西的踪迹。
这个晦涩难懂的调试消息对任何人来说都是正常的吗?
2015-08-19 10:59:30,607 DEBUG [Digester] - < Fire end() for SetNextRule[methodName=addOperation, pa
ramType=org.apa
在运行风暴拓扑以读取Kafka主题并将数据写入Hive表时,我正在获取IllegalAccesserror :错误详细信息如下所示:
Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.apache.logging.log4j.core.lookup.MapLookup.newMap(I)Ljava/util/HashMap; from class org.apache.logging.log4j.core.lookup.MainMapLookup