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 188491 - NPE in NativeProcessBuilderTest
Summary: NPE in NativeProcessBuilderTest
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: execution (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Andrew Krasny
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2010-07-08 13:36 UTC by Alexey Vladykin
Modified: 2010-08-16 14:10 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 2010-07-08 13:36:49 UTC
Found this in Hudson logs for cnd-test-gentoo.x86, build #2188:

java.util.concurrent.ExecutionException: java.lang.NullPointerException
	at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
	at java.util.concurrent.FutureTask.get(FutureTask.java:83)
	at org.netbeans.modules.nativeexecution.AbstractNativeProcess.waitFor(AbstractNativeProcess.java:358)
	at org.netbeans.modules.nativeexecution.api.NativeProcessBuilderTest.doTestListeners(NativeProcessBuilderTest.java:147)
	at org.netbeans.modules.nativeexecution.api.NativeProcessBuilderTest.testListenersLocal(NativeProcessBuilderTest.java:94)
	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:95)
	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:365)
	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:294)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
	at org.netbeans.modules.nativeexecution.api.NativeProcessBuilderTest$1.stateChanged(NativeProcessBuilderTest.java:117)
	at org.netbeans.modules.nativeexecution.AbstractNativeProcess.setState(AbstractNativeProcess.java:456)
	at org.netbeans.modules.nativeexecution.AbstractNativeProcess.access$200(AbstractNativeProcess.java:82)
	at org.netbeans.modules.nativeexecution.AbstractNativeProcess$1.call(AbstractNativeProcess.java:178)
	at org.netbeans.modules.nativeexecution.AbstractNativeProcess$1.call(AbstractNativeProcess.java:155)
	at org.netbeans.modules.nativeexecution.support.NativeTaskExecutorService$1.call(NativeTaskExecutorService.java:67)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1957)
Comment 1 Andrew Krasny 2010-08-16 14:10:36 UTC
It is not reproducible for many builds since that... The problem with states change notification was fixed and this one looks exactly like that problem.