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 29172

Summary: Too many errors from tests
Product: qa Reporter: Marian Mirilovic <mmirilovic>
Component: JellytoolsAssignee: issues@qa <issues>
Status: CLOSED FIXED    
Severity: blocker CC: pzavadsky
Priority: P1    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Marian Mirilovic 2002-11-29 10:02:59 UTC
[nb_dev](20021129)

CC'ing Peter Z. for cooperation.

After Peter's changes in core we have today too
many tets finish with next error.


java.lang.NoSuchMethodError:
org.netbeans.core.windows.WindowManagerImpl.uiModeManager()Lorg/netbeans/core/windows/UIModeManager;
        at
org.netbeans.jellytools.MainWindowOperator.isMDI(MainWindowOperator.java:117)
        at
org.netbeans.jellytools.NbFrameOperator.waitContainer(NbFrameOperator.java:250)
        at
org.netbeans.jellytools.NbFrameOperator.<init>(NbFrameOperator.java:71)
        at
org.netbeans.jellytools.ExplorerOperator.<init>(ExplorerOperator.java:48)
        at
gui.windowsystem.mainwindow.MainMenu.selectNodeAndCheckMainMenu(MainMenu.java:455)
        at
gui.windowsystem.mainwindow.MainMenu.testMenuItemsWhenFilesystemSelected(MainMenu.java:167)
        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:324)
        at
junit.framework.TestCase.runTest(TestCase.java:166)
        at
junit.framework.TestCase.runBare(TestCase.java:140)
        at
org.netbeans.jellytools.JellyTestCase.runBare(JellyTestCase.java:75)
        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:131)
        at
org.netbeans.junit.NbTestCase.run(NbTestCase.java:76)
        at
junit.framework.TestSuite.runTest(TestSuite.java:173)
        at
junit.framework.TestSuite.run(TestSuite.java:168)
        at
org.netbeans.xtest.junit.JUnitTestRunnerExt.run(JUnitTestRunnerExt.java:249)
        at
org.netbeans.xtest.junit.JUnitTaskExt.executeInVM(JUnitTaskExt.java:482)
        at
org.netbeans.xtest.junit.JUnitTaskExt.execute(JUnitTaskExt.java:304)
        at
org.netbeans.xtest.junit.JUnitTaskExt.execute(JUnitTaskExt.java:280)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:104)
        at
org.apache.tools.ant.Task.perform(Task.java:217)
        at
org.apache.tools.ant.Target.execute(Target.java:184)
        at
org.apache.tools.ant.Target.performTasks(Target.java:202)
        at
org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at
org.netbeans.xtest.AntRunner.run(AntRunner.java:76)
        at
org.netbeans.xtest.AntRunner.main(AntRunner.java:27)
        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:324)
        at
org.openide.execution.ThreadExecutor.executeClass(ThreadExecutor.java:119)
        at
org.openide.execution.ThreadExecutor$TERunnable.run(ThreadExecutor.java:186)
        at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:118)
Comment 1 Peter Zavadsky 2002-11-29 10:27:37 UTC
I've changed accessing of singletons from WindowsManagerImpl methods
to it getDefault methods.
It has to do with StateManger, UIModeManager, PersistenceManager,
DeferredPerformer, (hope I don't forgot one), and now I'm checkiing in
also with TabbedContainerUIManager.

Please replace codes like:
WindowManagerImpl.getInstance().xxxManager() ...

with

XxxManager.getDefault ...


Thanks
Comment 2 Jiri Skrivanek 2002-12-02 10:02:48 UTC
Fixed by Adam Sotona in version 2.0.35.
Comment 3 Marian Mirilovic 2002-12-02 11:00:36 UTC
verified