logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remko Popma <remko.po...@gmail.com>
Subject Re: GC-free test failure
Date Mon, 04 Apr 2016 23:21:44 GMT
Yes occasionally happens. 

Not sure how this works. 
Can try putting a sleep() call after removing the instrumentation to encourage it to stop
observing before shutdown. 

Sent from my iPhone

> On 2016/04/05, at 3:29, Gary Gregory <garydgregory@gmail.com> wrote:
> 
> Has anyone seen this NPE before?
> 
> Failed tests:
>   GcFreeLoggingTest.testNoAllocationDuringSteadyStateLogging:60 expected:<[]> but
was:<[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)
> ]>
> 
> Tests run: 1131, Failures: 1, Errors: 0, Skipped: 32
> 
> 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

Mime
View raw message