MDC NullPointerException in WSAD debug


I was using the Log4J 's MDC class to store some values in the Thread for logging.
When I started my WAS Test Environment server in debug mode...
I received a NullPointerException in java.lang.InheritableThreadLocal.java (69)
The Source code for this class says...
66| public Object get() {
67|     Thread ourThread = Thread.currentThread();
68|     Map map = ourThread.inheritableThreadLocals;
69|     Object value = map.get(key);

After searching on the internet found that this is actually a bug in the JRE of WSAD.
The way around for this problem is to disable the "hot method replace" functionality in WSAD.

Link: Apache Mail archive link

No comments: