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 107119 - NullPOinterException at org.netbeans.jemmy.ClassReference
Summary: NullPOinterException at org.netbeans.jemmy.ClassReference
Status: CLOSED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Tests (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Maksim Khramov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-19 04:58 UTC by Marian Mirilovic
Modified: 2011-05-24 13:43 UTC (History)
1 user (show)

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 Marian Mirilovic 2007-06-19 04:58:53 UTC
A lot of our tests failed with following exception :

java.lang.NullPointerException

	at org.netbeans.jemmy.ClassReference.<init>(ClassReference.java:50)

	at org.netbeans.jemmy.EventDispatcher.<init>(EventDispatcher.java:90)

	at org.netbeans.jemmy.operators.ComponentOperator.<init>(ComponentOperator.java:191)

	at org.netbeans.jemmy.operators.ContainerOperator.<init>(ContainerOperator.java:72)

	at org.netbeans.jemmy.operators.JComponentOperator.<init>(JComponentOperator.java:100)

	at org.netbeans.jellytools.TopComponentOperator.<init>(TopComponentOperator.java:161)

	at gui.window.WebFormDesignerOperator.<init>(WebFormDesignerOperator.java:57)

	at gui.window.WebFormDesignerOperator.<init>(WebFormDesignerOperator.java:52)

	at gui.window.WebFormDesignerOperator.findWebFormDesignerOperator(WebFormDesignerOperator.java:89)

	at gui.window.WebFormDesignerOperator.findWebFormDesignerOperator(WebFormDesignerOperator.java:73)

	at gui.action.OpenProjectFirstPage.open(OpenProjectFirstPage.java:98)

	at org.netbeans.performance.test.utilities.PerformanceTestCase.measureTime(PerformanceTestCase.java:294)

	at org.netbeans.performance.test.utilities.PerformanceTestCase.doMeasurement(PerformanceTestCase.java:222)

	at gui.action.OpenProjectFirstPage.testOpenSmallProjectFirstPage(OpenProjectFirstPage.java:59)

	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:164)

	at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:59)

	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:286)

	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:224)

	at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:302)

	at org.netbeans.jellytools.JellyTestCase.runBare(JellyTestCase.java:122)

	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:120)

	at org.netbeans.junit.NbTestCase.run(NbTestCase.java:165)

	at junit.framework.TestSuite.runTest(TestSuite.java:230)

	at junit.framework.TestSuite.run(TestSuite.java:225)

	at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:169)

	at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:124)

	at org.netbeans.xtest.plugin.ide.MainWithExec.run(MainWithExec.java:85)

	at org.netbeans.xtest.plugin.ide.Main$3.run(Main.java:300)

	at java.lang.Thread.run(Thread.java:619)
Comment 1 Alexander Kouznetsov 2007-06-19 08:38:08 UTC
There is no problem in jemmy. Null is passed org.netbeans.jemmy.operators.JComponentOperator constructor. Moving to
jellytools.
Comment 2 Jiri Skrivanek 2007-06-19 09:09:40 UTC
Reporter, please do not add stack trace to description. Add it as attachment :-) The failure is caused by UI changes of
the Options dialog.
Comment 3 Jiri Skrivanek 2007-06-19 09:30:19 UTC
I thought it is the same stack trace like in the commit validation. But it is something different. It is problem in
WebFormDesignerOperator. findTopComponent can retunrn null and it causes NullPointerException.
Comment 4 Marian Mirilovic 2007-06-22 10:08:56 UTC
Maksim already fixed this - Am I right ?
Comment 5 Marian Mirilovic 2007-06-25 11:05:49 UTC
verified