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.
org.openide.util.InitJobTest on JDK 1.5.0_03 on Linux java.lang.NullPointerException at java.awt.Container.createHierarchyEvents(Container.java:1335) at java.awt.Container.createHierarchyEvents(Container.java:1335) at java.awt.Container.createHierarchyEvents(Container.java:1335) at java.awt.Container.createHierarchyEvents(Container.java:1335) at java.awt.Dialog.conditionalShow(Dialog.java:450) at java.awt.Dialog.show(Dialog.java:506) at java.awt.Component.show(Component.java:1300) at java.awt.Component.setVisible(Component.java:1253) at org.openide.util.InitJobTest.testInitJob(InitJobTest.java:68) 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:585) at junit.framework.TestCase.runTest(TestCase.java:154) at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:135) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:167) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:118) at org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41)
OK but the failure is somewhere deep in Swing, so I guess I can do nothing with this...
The thing I would try is to run everything or at least initialization in AWT thread if possible. See NbTestCase.runInEQ. Not sure if that can help. But the fact that the test runs on 1.4.2 and fails on 1.5 may reveal some problem in newer version of JDK. So I guess it worths investigating.
Moved to EQ - seem to helped, so fixed: Checking in InitJobTest.java; /cvs/openide/test/unit/src/org/openide/util/InitJobTest.java,v <-- InitJobTest.java new revision: 1.4; previous revision: 1.3
pass -> closing