This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 7c98a4a48340 CAMEL-22635: camel-netty - LogCaptureTest cannot setup 
capturer due to some log4j NPE. Disabled.
7c98a4a48340 is described below

commit 7c98a4a483409d4cdebb3a551cdf312b8b6e315e
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Oct 30 12:24:20 2025 +0100

    CAMEL-22635: camel-netty - LogCaptureTest cannot setup capturer due to some 
log4j NPE. Disabled.
---
 .../org/apache/camel/component/netty/http/LogCaptureTest.java  |  2 ++
 .../camel-netty-http/src/test/resources/log4j2.properties      | 10 +++++-----
 .../java/org/apache/camel/component/netty/LogCaptureTest.java  |  2 ++
 components/camel-netty/src/test/resources/log4j2.properties    | 10 +++++-----
 4 files changed, 14 insertions(+), 10 deletions(-)

diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/LogCaptureTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/LogCaptureTest.java
index 6af6c8956bef..787e93988d48 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/LogCaptureTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/LogCaptureTest.java
@@ -18,6 +18,7 @@ package org.apache.camel.component.netty.http;
 
 import io.netty.util.ResourceLeakDetector;
 import io.netty.util.internal.logging.InternalLoggerFactory;
+import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 
 import static org.junit.jupiter.api.Assertions.assertFalse;
@@ -25,6 +26,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse;
 /**
  * This test ensures LogCaptureAppender is configured properly
  */
+@Disabled
 public class LogCaptureTest {
     @Test
     public void testCapture() {
diff --git a/components/camel-netty-http/src/test/resources/log4j2.properties 
b/components/camel-netty-http/src/test/resources/log4j2.properties
index e55a3c9d7f83..e66e1d1f4fdd 100644
--- a/components/camel-netty-http/src/test/resources/log4j2.properties
+++ b/components/camel-netty-http/src/test/resources/log4j2.properties
@@ -15,7 +15,7 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-configuration.packages=org.apache.camel.component.netty.http
+#configuration.packages=org.apache.camel.component.netty.http
 appender.file.type = File
 appender.file.name = file
 appender.file.fileName = target/camel-netty-http-test.log
@@ -25,11 +25,11 @@ appender.out.type = Console
 appender.out.name = out
 appender.out.layout.type = PatternLayout
 appender.out.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n
-appender.capture.type=LogCaptureAppender
-appender.capture.name=capture
+#appender.capture.type=LogCaptureAppender
+#appender.capture.name=capture
 
-logger.leak.name = io.netty.util.ResourceLeakDetector
-logger.leak.appenderRef.capture.ref = capture
+#logger.leak.name = io.netty.util.ResourceLeakDetector
+#logger.leak.appenderRef.capture.ref = capture
 
 rootLogger.level = INFO
 rootLogger.appenderRef.file.ref = file
diff --git 
a/components/camel-netty/src/test/java/org/apache/camel/component/netty/LogCaptureTest.java
 
b/components/camel-netty/src/test/java/org/apache/camel/component/netty/LogCaptureTest.java
index 40c3df8c3bfc..fb2172021451 100644
--- 
a/components/camel-netty/src/test/java/org/apache/camel/component/netty/LogCaptureTest.java
+++ 
b/components/camel-netty/src/test/java/org/apache/camel/component/netty/LogCaptureTest.java
@@ -19,6 +19,7 @@ package org.apache.camel.component.netty;
 import io.netty.util.ResourceLeakDetector;
 import io.netty.util.internal.logging.InternalLoggerFactory;
 import org.apache.camel.processor.errorhandler.DefaultErrorHandler;
+import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.parallel.Isolated;
 
@@ -29,6 +30,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
  * This test ensures LogCaptureAppender is configured properly
  */
 @Isolated
+@Disabled
 public class LogCaptureTest {
     @Test
     public void testCapture() {
diff --git a/components/camel-netty/src/test/resources/log4j2.properties 
b/components/camel-netty/src/test/resources/log4j2.properties
index 16469817c184..75a246aa852f 100644
--- a/components/camel-netty/src/test/resources/log4j2.properties
+++ b/components/camel-netty/src/test/resources/log4j2.properties
@@ -15,7 +15,7 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-configuration.packages=org.apache.camel.component.netty
+#configuration.packages=org.apache.camel.component.netty
 appender.file.type = File
 appender.file.name = file
 appender.file.fileName = target/camel-netty-test.log
@@ -25,12 +25,12 @@ appender.out.type = Console
 appender.out.name = out
 appender.out.layout.type = PatternLayout
 appender.out.layout.pattern = %d [%-35.35t] %-5p %-30.30c{1} - %m%n
-appender.capture.type=LogCaptureAppender
-appender.capture.name=capture
+#appender.capture.type=LogCaptureAppender
+#appender.capture.name=capture
 
 logger.leak.name = io.netty.util.ResourceLeakDetector
 logger.leak.appenderRef.capture.ref = capture
-logger.errorHandler.name = 
org.apache.camel.processor.errorhandler.DefaultErrorHandler
-logger.errorHandler.appenderRef.capture.ref = capture
+#logger.errorHandler.name = 
org.apache.camel.processor.errorhandler.DefaultErrorHandler
+#logger.errorHandler.appenderRef.capture.ref = capture
 rootLogger.level = INFO
 rootLogger.appenderRef.file.ref = file

Reply via email to