You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Gary Gregory <ga...@gmail.com> on 2016/04/28 01:29:56 UTC
AllocationRecorder NullPointerException
Should these tests be @Ignore'd for now?
Failed tests:
GcFreeMixedSyncAyncLoggingTest.testNoAllocationDuringSteadyStateLogging:31
Exception in thread "pool-1-thread-1" java.lang.NullPointerException
at
com.google.monitoring.runtime.instrumentation.AllocationRecorder.getObjectSize(AllocationRecorder.java:200)
at
com.google.monitoring.runtime.instrumentation.AllocationRecorder.recordAllocation(AllocationRecorder.java:244)
at
java.util.concurrent.CopyOnWriteArrayList.iterator(CopyOnWriteArrayList.java:1076)
at
org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.run(DefaultShutdownCallbackRegistry.java:70)
at java.lang.Thread.run(Thread.java:745)
expected:<[FATAL o.a.l.l.c.GcFreeMixedSyncAyncLoggingTest [main] This
message is logged to the console]> but was:<[Exception in thread
"pool-1-thread-1" java.lang.NullPointerException]>
GcFreeSynchronousLoggingTest.testNoAllocationDuringSteadyStateLogging:31
Exception in thread "pool-1-thread-1" java.lang.NullPointerException
at
com.google.monitoring.runtime.instrumentation.AllocationRecorder.getObjectSize(AllocationRecorder.java:200)
at
com.google.monitoring.runtime.instrumentation.AllocationRecorder.recordAllocation(AllocationRecorder.java:244)
at
java.util.concurrent.CopyOnWriteArrayList.iterator(CopyOnWriteArrayList.java:1076)
at
org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.run(DefaultShutdownCallbackRegistry.java:70)
at java.lang.Thread.run(Thread.java:745)
expected:<[FATAL o.a.l.l.c.GcFreeSynchronousLoggingTest [main] This
message is logged to the console]> but was:<[Exception in thread
"pool-1-thread-1" java.lang.NullPointerException]>
UdpSerializedSocketServerTest>AbstractSocketServerTest.test10ShortMessages:118->AbstractSocketServerTest.testServer:161->AbstractSocketServerTest.testServer:201
Incorrect number of events received expected:<10> but was:<7>
Gary
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
Re: AllocationRecorder NullPointerException
Posted by Remko Popma <re...@gmail.com>.
No, let me try a reflection workaround first.
Sent from my iPhone
> On 2016/04/28, at 8:29, Gary Gregory <ga...@gmail.com> wrote:
>
> Should these tests be @Ignore'd for now?
>
> Failed tests:
> GcFreeMixedSyncAyncLoggingTest.testNoAllocationDuringSteadyStateLogging:31 Exception in thread "pool-1-thread-1" java.lang.NullPointerException
> at com.google.monitoring.runtime.instrumentation.AllocationRecorder.getObjectSize(AllocationRecorder.java:200)
> at com.google.monitoring.runtime.instrumentation.AllocationRecorder.recordAllocation(AllocationRecorder.java:244)
> at java.util.concurrent.CopyOnWriteArrayList.iterator(CopyOnWriteArrayList.java:1076)
> at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.run(DefaultShutdownCallbackRegistry.java:70)
> at java.lang.Thread.run(Thread.java:745)
> expected:<[FATAL o.a.l.l.c.GcFreeMixedSyncAyncLoggingTest [main] This message is logged to the console]> but was:<[Exception in thread "pool-1-thread-1" java.lang.NullPointerException]>
> GcFreeSynchronousLoggingTest.testNoAllocationDuringSteadyStateLogging:31 Exception in thread "pool-1-thread-1" java.lang.NullPointerException
> at com.google.monitoring.runtime.instrumentation.AllocationRecorder.getObjectSize(AllocationRecorder.java:200)
> at com.google.monitoring.runtime.instrumentation.AllocationRecorder.recordAllocation(AllocationRecorder.java:244)
> at java.util.concurrent.CopyOnWriteArrayList.iterator(CopyOnWriteArrayList.java:1076)
> at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.run(DefaultShutdownCallbackRegistry.java:70)
> at java.lang.Thread.run(Thread.java:745)
> expected:<[FATAL o.a.l.l.c.GcFreeSynchronousLoggingTest [main] This message is logged to the console]> but was:<[Exception in thread "pool-1-thread-1" java.lang.NullPointerException]>
> UdpSerializedSocketServerTest>AbstractSocketServerTest.test10ShortMessages:118->AbstractSocketServerTest.testServer:161->AbstractSocketServerTest.testServer:201 Incorrect number of events received expected:<10> but was:<7>
>
> Gary
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> JUnit in Action, Second Edition
> Spring Batch in Action
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory