This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 166609 - MemoryCacheTest fails on Windows XP
Summary: MemoryCacheTest fails on Windows XP
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2009-06-05 14:32 UTC by Alexey Vladykin
Modified: 2010-02-04 04:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Vladykin 2009-06-05 14:32:47 UTC
Test log says:

SEVERE: Error in RequestProcessor org.netbeans.modules.cnd.repository.disk.MemoryCacheTest$MyProcess
org.openide.util.RequestProcessor$Item: task failed due to: java.lang.NullPointerException
	at org.openide.util.RequestProcessor.post(RequestProcessor.java:267)
	at org.netbeans.modules.cnd.repository.disk.MemoryCacheTest.testCache(MemoryCacheTest.java:88)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:88)
	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:336)
	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:273)
	at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:355)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at org.netbeans.junit.NbTestCase.run(NbTestCase.java:213)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
	at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
Caused by: java.lang.NullPointerException
	at org.netbeans.modules.cnd.repository.disk.MemoryCache$SlicedMap.getSilce(MemoryCache.java:91)
	at org.netbeans.modules.cnd.repository.disk.MemoryCache$SlicedMap.access$200(MemoryCache.java:83)
	at org.netbeans.modules.cnd.repository.disk.MemoryCache.processQueue(MemoryCache.java:236)
	at org.netbeans.modules.cnd.repository.disk.MemoryCache.putIfAbsent(MemoryCache.java:166)
	at org.netbeans.modules.cnd.repository.disk.MemoryCacheTest$MyProcess.run(MemoryCacheTest.java:135)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)
Comment 1 Leonid Lenyashin 2009-09-28 12:42:07 UTC
Please evaluate
Comment 2 Vladimir Voskresensky 2009-10-05 10:40:13 UTC
will check when tests are recovered
Comment 3 Alexey Vladykin 2010-02-04 04:25:39 UTC
Fixed by Alexander in http://hg.netbeans.org/cnd-main/rev/cfd8d7277fe3
Although the root cause is still a mystery...