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 61033 - initJobTest fails on NPE
Summary: initJobTest fails on NPE
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Simonek
URL: http://beetle.czech:8080/unittest/Tes...
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2005-07-15 14:31 UTC by Jaroslav Tulach
Modified: 2008-12-22 23:02 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 Jaroslav Tulach 2005-07-15 14:31:24 UTC
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)
Comment 1 David Simonek 2005-07-15 15:51:52 UTC
OK but the failure is somewhere deep in Swing, so I guess I can do nothing with
this...
Comment 2 Jaroslav Tulach 2005-07-15 22:21:22 UTC
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. 
Comment 3 David Simonek 2005-09-07 16:25:46 UTC
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
Comment 4 Marian Mirilovic 2005-12-12 13:01:47 UTC
pass -> closing