You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From testcontainers documentation: Testcontainers, and many of the libraries it uses, utilize slf4j for logging. In order to see logs from Testcontainers, your project should include an SLF4J implementation (Logback is recommended).
I expect testcontainers to support org.slf4j.slf4j-log4j12
The next NullPointerException appears:
Caused by: java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:459)
at org.apache.log4j.MDC.put0(MDC.java:150)
at org.apache.log4j.MDC.put(MDC.java:85)
at org.slf4j.impl.Log4jMDCAdapter.put(Log4jMDCAdapter.java:60)
at org.slf4j.MDC.put(MDC.java:116)
at org.testcontainers.utility.AuditLogger.doLog(AuditLogger.java:34)
at org.testcontainers.dockerclient.AuditLoggingDockerClient.lambda$startContainerCmd$3(AuditLoggingDockerClient.java:43)
at org.testcontainers.dockerclient.AuditLoggingDockerClient.lambda$wrappedCommand$14(AuditLoggingDockerClient.java:102)
at com.sun.proxy.$Proxy20.exec(Unknown Source)
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:201)
... 18 more
AuditLoggingDockerClient (for commands START,REMOVE,STOP,KILL,CREATE_NETWORK,REMOVE_NETWORK) has call like this:
So image = null.
org.slf4j.impl.Log4jMDCAdapter uses Hashtable where therev is a check for value != null during call 'put'. So NullPointerException occurs.
Possible fix is to use image="" instead of image=null
The text was updated successfully, but these errors were encountered:
Hi, I am also facing the same issue. Can you please tell what's the resolution. What's is meant by 1.3.1 in above comment.
I am having my app deployed over tomcat 8.0.42 version.Please help.
From testcontainers documentation:
Testcontainers, and many of the libraries it uses, utilize slf4j for logging. In order to see logs from Testcontainers, your project should include an SLF4J implementation (Logback is recommended).
I expect testcontainers to support org.slf4j.slf4j-log4j12
The next NullPointerException appears:
AuditLoggingDockerClient (for commands START,REMOVE,STOP,KILL,CREATE_NETWORK,REMOVE_NETWORK) has call like this:
So image = null.
org.slf4j.impl.Log4jMDCAdapter uses Hashtable where therev is a check for value != null during call 'put'. So NullPointerException occurs.
Possible fix is to use image="" instead of image=null
The text was updated successfully, but these errors were encountered: