我正在使用Cygwin的“窗口上的kafka”,并试图创建一个主题并得到以下错误
log4j:ERROR Could not read configuration file from URL [file:/cygdrive/d/kafka/bin/../config/tools-log4j.properties].
java.io.FileNotFoundException: \cygdrive\d\kafka\bin\..\config\tools-log4j.properties (The system cannot find the path specified)
at java
当调用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:
image.png
这是报错信息:
log4j:WARN No appenders could be found for logger (com.qcloud.vod.VodUploadClient).
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.NoSuchMethod
我使用log4j登录我的项目。我尝试了下面的代码,但它打印在控制台上,而不是在文件中。有人能告诉我缺少什么吗,我第一次使用log4j
代码:
public void testCase1() {
System.out.println("In test method 1 now");
Logger log = Logger.getLogger(DisplayCtrlTestCases.class.getName());
log.debug("Hello this is a debug message");
log.info("Hello th
我收到两个警告。
log4j:WARN No appenders could be found for logger (com.org.Resolver).
log4j:WARN Please initialize the log4j system properly.
如何解决这个问题?
我的java类名Resolver.java
在java类中,我调用
private static Log log = LogFactory.getLog(Resolver.class);
当我使用smslib运行我的程序时,当我在netbeans上运行它时,它工作得很好,但是当我生成jar文件并运行它时,控制台显示了这个错误。对如何解决这个问题有什么想法吗?您的帮助我们将不胜感激。
log4j:WARN No appenders could be found for logger (smslib).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
E
当我尝试使用蓝牙转换器将视频文件从pc传输到移动电话时,出现以下错误。有人知道吗?
run:
BlueCove log redirected to log4j
log4j:WARN No appenders could be found for logger (com.intel.bluetooth).
log4j:WARN Please initialize the log4j system properly.
BlueCove version 2.1.0 on bluesoleil
java.io.IOException: Device not d
当我想创建文件hibernate.hbm.xml时,eclipse错误消息如下:
“发生了错误。有关详细信息,请参阅错误日志。java.lang.NullPointerException”
为什么?
在运行主文件时,还有一件关于错误系统的事情,我也会得到错误:
"log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.a
我尝试在Java应用程序中使用log4j进行日志记录,方法如下:我在应用程序中定义了一个log4j.xml。
我正在尝试使用以下命令访问它
DOMConfigurator.configure( "src/log4j.xml");
logger.warn( "Login Process has started a warning message" );
但是它一直抛出以下错误
**编辑错误信息
log4j:ERROR Could not parse file [src/log4j.xml].
java.io.FileNotFoundException
我创建了一个实用程序,用于将一些文本数据移动到SQL数据库中,并实现了用于调试目的的日志记录(Log4j)。一旦我创建了我的实用程序的jar并调用它来执行,该实用程序就可以正常工作,但每次输出之前都会出现以下错误消息: log4j:ERROR Could not read configuration file [log4j.properties].
java.io.FileNotFoundException: log4j.properties (The system cannot find the file specified)
at java.io.FileInputStr
我正试图在Ubuntu16.04上设置合流-4.1.1。为了启动ZooKeeper服务器,我按照下面的从Confluent的根目录运行。
出现的错误是-
log4j:ERROR Could not read configuration file from URL [file:./bin/../config/log4j.properties].
java.io.FileNotFoundException: ./bin/../config/log4j.properties (No such file or directory)
at java.io.FileInputStream.open
我正在使用JSF、Spring和Hibernate开发Java Web应用程序。我需要设置Log4J。我包含了必要的库并创建了一个简单的log4j.properties文件。
在Tomcat输出中,它输出
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/l
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.
我使用双倍创建了这个示例程序
在IDE中运行时出现以下错误
log4j:WARN No appenders could be found for logger (org.apache.flink.api.scala.ClosureCleaner$).
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"
我一直在努力学习GATE,特别是ANNIE和TwitIE。我在GATE网站()上看到了一个独立的ANNIE java代码。我正在尝试运行java文件,但总是收到这个错误消息(因为我真的不了解如何嵌入GATE,请告诉我如何一步一步地操作):
log4j:WARN No appenders could be found for logger (gate.Gate).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#n
我使用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
log4j:WARN No appenders could be found for logger (it.uniroma1.lcl.babelnet.BabelNetConfiguration).
log4j:WARN Please initialize the log4j system properly.
java.lang.NullPointerException
at java.io.File.<init>(File.java:277)
at it.uniroma1.lcl.babelnet.BabelNet.<init>(BabelNet.ja
由于log4j上的问题(CVE-2021-44228),我将一些应用程序迁移到log4j 2.15.0 (使用JBoss EAP7.1和JDK1.8.0_211-B12),没有任何问题。现在我想从log4j 2.15.0迁移到2.16.0。
当我尝试时,我有以下错误
15:20:59,361 WARN [org.jboss.as.server.deployment] (MSC service thread
1-8) WFLYSRV0003: Could not index class
META-INF/versions/9/module-info.class at
/C:/jboss
我在"dist文件夹“中通过javaFX运行.jar应用程序时遇到了问题,后来,我已经通过NetBeans清理和构建了项目。
C:\NetBeansProjects\Gestore\dist>java -jar
Gestore.jar
log4j:ERROR Could not read configuration file [conf\log4j.properties].
java.io.FileNotFoundException: conf\log4j.properties (Impossibile trovare il per
corso specificato)
如何解决以下错误...我是不是遗漏了一些jar文件?
log4j:WARN No appenders could be found for logger (smslib).
log4j:WARN Please initialize the log4j system properly.
org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: javax.comm.PortInUseException: Port currently owned by Unknown Window
已经两天了,我试图在我的计算机上配置smslib,当我试图执行压缩文件中包含的示例代码(SendMessage)时,我总是得到以下异常:
log4j:WARN No appenders could be found for logger (smslib).
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
我正在尝试用maven编译Apache log4j的特定快照。
我得到了这个错误:
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[WARNING] 'buil