junit.framework.AssertionFailedError: expected:<3> but was:<0>

SpringSource Issue Tracker | Tomasz Zarna | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    3 tests from AllIdeTests suite (out of 32) fail with the following stack traces: org.springsource.ide.eclipse.commons.internal.help.HelpPluginTest testGetSampleProjects(org.springsource.ide.eclipse.commons.internal.help.HelpPluginTest) junit.framework.AssertionFailedError: expected:<3> but was:<0> at junit.framework.Assert.fail(Assert.java:50) at junit.framework.Assert.failNotEquals(Assert.java:287) at junit.framework.Assert.assertEquals(Assert.java:67) at junit.framework.Assert.assertEquals(Assert.java:199) at junit.framework.Assert.assertEquals(Assert.java:205) at org.springsource.ide.eclipse.commons.internal.help.HelpPluginTest.testGetSampleProjects(HelpPluginTest.java:33) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62) at org.eclipse.pde.internal.junit.runtime.PlatformUITestHarness$1.run(PlatformUITestHarness.java:47) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.runApp(NonUIThreadTestApplication.java:54) at org.eclipse.pde.internal.junit.runtime.UITestApplication.runApp(UITestApplication.java:41) at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.start(NonUIThreadTestApplication.java:48) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414) org.springsource.ide.eclipse.commons.internal.configurator.ConfiguratorImporterTest testDetectExtensions(org.springsource.ide.eclipse.commons.internal.configurator.ConfiguratorImporterTest) junit.framework.AssertionFailedError: Expected extension with id prefix 'tc-server-developer-' in ConfigurableExtension [id=vfabric-tc-server-developer-2.8.0.RELEASE, autoConfigurable=true, configured=true, location=D:\apps\sts\spring-tool-suite-3.1.0.RELEASE-e4.2-win32-x86_64\vfabric-tc-server-developer-2.8.0.RELEASE], ConfigurableExtension [id=vfabric-tc-server-developer-2.7.2.RELEASE, autoConfigurable=false, configured=true, location=D:\apps\sts\spring-tool-suite-3.1.0.RELEASE-e4.2-win32-x86_64\vfabric-tc-server-developer-2.7.2.RELEASE], ConfigurableExtension [id=spring-roo-1.2.2.RELEASE, autoConfigurable=true, configured=true, location=D:\apps\sts\spring-tool-suite-3.1.0.RELEASE-e4.2-win32-x86_64\spring-roo-1.2.2.RELEASE], ConfigurableExtension [id=apache-maven-3.0.4, autoConfigurable=true, configured=true, location=D:\apps\sts\spring-tool-suite-3.1.0.RELEASE-e4.2-win32-x86_64\apache-maven-3.0.4], ConfigurableExtension [id=com.springsource.sts.ide.tests.runtime, autoConfigurable=false, configured=true, location=null], ConfigurableExtension [id=com.springsource.sts.ide.tests.runtime, autoConfigurable=false, configured=false, location=null] at junit.framework.Assert.fail(Assert.java:50) at org.springsource.ide.eclipse.commons.internal.configurator.ConfiguratorImporterTest.assertContains(ConfiguratorImporterTest.java:67) at org.springsource.ide.eclipse.commons.internal.configurator.ConfiguratorImporterTest.testDetectExtensions(ConfiguratorImporterTest.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62) at org.eclipse.pde.internal.junit.runtime.PlatformUITestHarness$1.run(PlatformUITestHarness.java:47) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.runApp(NonUIThreadTestApplication.java:54) at org.eclipse.pde.internal.junit.runtime.UITestApplication.runApp(UITestApplication.java:41) at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.start(NonUIThreadTestApplication.java:48) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414) testStartupJob(org.springsource.ide.eclipse.commons.internal.configurator.ConfiguratorImporterTest) junit.framework.AssertionFailedError: Expected auto configuration of server with id SpringSource tc Server Developer Edition v2.1 at junit.framework.Assert.fail(Assert.java:50) at junit.framework.Assert.assertTrue(Assert.java:20) at junit.framework.Assert.assertNotNull(Assert.java:218) at org.springsource.ide.eclipse.commons.internal.configurator.ConfiguratorImporterTest.assertServer(ConfiguratorImporterTest.java:72) at org.springsource.ide.eclipse.commons.internal.configurator.ConfiguratorImporterTest.testStartupJob(ConfiguratorImporterTest.java:56) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62) at org.eclipse.pde.internal.junit.runtime.PlatformUITestHarness$1.run(PlatformUITestHarness.java:47) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.runApp(NonUIThreadTestApplication.java:54) at org.eclipse.pde.internal.junit.runtime.UITestApplication.runApp(UITestApplication.java:41) at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.start(NonUIThreadTestApplication.java:48) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

    SpringSource Issue Tracker | 4 years ago | Tomasz Zarna
    junit.framework.AssertionFailedError: expected:<3> but was:<0>
  2. 0

    3 tests from AllIdeTests suite (out of 32) fail with the following stack traces: org.springsource.ide.eclipse.commons.internal.help.HelpPluginTest testGetSampleProjects(org.springsource.ide.eclipse.commons.internal.help.HelpPluginTest) junit.framework.AssertionFailedError: expected:<3> but was:<0> at junit.framework.Assert.fail(Assert.java:50) at junit.framework.Assert.failNotEquals(Assert.java:287) at junit.framework.Assert.assertEquals(Assert.java:67) at junit.framework.Assert.assertEquals(Assert.java:199) at junit.framework.Assert.assertEquals(Assert.java:205) at org.springsource.ide.eclipse.commons.internal.help.HelpPluginTest.testGetSampleProjects(HelpPluginTest.java:33) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62) at org.eclipse.pde.internal.junit.runtime.PlatformUITestHarness$1.run(PlatformUITestHarness.java:47) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.runApp(NonUIThreadTestApplication.java:54) at org.eclipse.pde.internal.junit.runtime.UITestApplication.runApp(UITestApplication.java:41) at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.start(NonUIThreadTestApplication.java:48) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414) org.springsource.ide.eclipse.commons.internal.configurator.ConfiguratorImporterTest testDetectExtensions(org.springsource.ide.eclipse.commons.internal.configurator.ConfiguratorImporterTest) junit.framework.AssertionFailedError: Expected extension with id prefix 'tc-server-developer-' in ConfigurableExtension [id=vfabric-tc-server-developer-2.8.0.RELEASE, autoConfigurable=true, configured=true, location=D:\apps\sts\spring-tool-suite-3.1.0.RELEASE-e4.2-win32-x86_64\vfabric-tc-server-developer-2.8.0.RELEASE], ConfigurableExtension [id=vfabric-tc-server-developer-2.7.2.RELEASE, autoConfigurable=false, configured=true, location=D:\apps\sts\spring-tool-suite-3.1.0.RELEASE-e4.2-win32-x86_64\vfabric-tc-server-developer-2.7.2.RELEASE], ConfigurableExtension [id=spring-roo-1.2.2.RELEASE, autoConfigurable=true, configured=true, location=D:\apps\sts\spring-tool-suite-3.1.0.RELEASE-e4.2-win32-x86_64\spring-roo-1.2.2.RELEASE], ConfigurableExtension [id=apache-maven-3.0.4, autoConfigurable=true, configured=true, location=D:\apps\sts\spring-tool-suite-3.1.0.RELEASE-e4.2-win32-x86_64\apache-maven-3.0.4], ConfigurableExtension [id=com.springsource.sts.ide.tests.runtime, autoConfigurable=false, configured=true, location=null], ConfigurableExtension [id=com.springsource.sts.ide.tests.runtime, autoConfigurable=false, configured=false, location=null] at junit.framework.Assert.fail(Assert.java:50) at org.springsource.ide.eclipse.commons.internal.configurator.ConfiguratorImporterTest.assertContains(ConfiguratorImporterTest.java:67) at org.springsource.ide.eclipse.commons.internal.configurator.ConfiguratorImporterTest.testDetectExtensions(ConfiguratorImporterTest.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62) at org.eclipse.pde.internal.junit.runtime.PlatformUITestHarness$1.run(PlatformUITestHarness.java:47) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.runApp(NonUIThreadTestApplication.java:54) at org.eclipse.pde.internal.junit.runtime.UITestApplication.runApp(UITestApplication.java:41) at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.start(NonUIThreadTestApplication.java:48) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414) testStartupJob(org.springsource.ide.eclipse.commons.internal.configurator.ConfiguratorImporterTest) junit.framework.AssertionFailedError: Expected auto configuration of server with id SpringSource tc Server Developer Edition v2.1 at junit.framework.Assert.fail(Assert.java:50) at junit.framework.Assert.assertTrue(Assert.java:20) at junit.framework.Assert.assertNotNull(Assert.java:218) at org.springsource.ide.eclipse.commons.internal.configurator.ConfiguratorImporterTest.assertServer(ConfiguratorImporterTest.java:72) at org.springsource.ide.eclipse.commons.internal.configurator.ConfiguratorImporterTest.testStartupJob(ConfiguratorImporterTest.java:56) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62) at org.eclipse.pde.internal.junit.runtime.PlatformUITestHarness$1.run(PlatformUITestHarness.java:47) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.runApp(NonUIThreadTestApplication.java:54) at org.eclipse.pde.internal.junit.runtime.UITestApplication.runApp(UITestApplication.java:41) at org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.start(NonUIThreadTestApplication.java:48) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

    SpringSource Issue Tracker | 4 years ago | Tomasz Zarna
    junit.framework.AssertionFailedError: expected:<3> but was:<0>
  3. 0

    DBUnit - Users - ComparisonFailure: expected table count in error?

    nabble.com | 11 months ago
    junit.framework.AssertionFailedError: expected:<3> but was:<0>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Summary: When executing the query "from Privilege p where :user in p.roles.users" an oracle SQLException: "missing expression" is thrown. Alternate queries were found, but this query should either work, or produce a hibernate query exception of some sort (ie malformed query, unsupported query etc), not left up to Oracle. This bug report contains: - 3 Java classes for model objects ~ TestUser.java - contains a set of TestRoles ~ TestRole.java - contains a set of TestUsers and a list of TestPrivileges ~ TestPrivilege.java - contains a set of TestRoles - 3 Hibernate mappings ~ All sets are mapped, some are inverse mappings. - 1 Hibernate configuration file ~ identifies the 3 mapping files - 1 JUnit test class with example queries ~ test1 produces invalid sql ~ test2 is valide, but unexpectedly returns no results ~ test3 is valid and returns correct results - 2 Stack traces, one from test1 and one test2 ////////////////////////////////////////////// // TestUser.java // ////////////////////////////////////////////// package au.com.dytech.find.core.hibernatetest; import java.util.HashSet; import java.util.Set; /** * A User of the system. * * @author Dytech Solutions Pty. Ltd. */ public class TestUser { Set roles; Long id; public TestUser() { roles = new HashSet(); } /** * @return Returns the id. */ public Long getId() { return id; } /** * @param id The id to set. */ public void setId(Long id) { this.id = id; } /** * @param role The role to add. */ public void addRole(TestRole role) { roles.add(role); role.getUsers().add(this); } /** * @return Returns the roles. */ public Set getRoles() { return roles; } /** * @param roles The roles to set. */ public void setRoles(Set roles) { this.roles = roles; } } ////////////////////////////////////////////// // TestRole.java // ////////////////////////////////////////////// package au.com.dytech.find.core.hibernatetest; import java.util.HashSet; import java.util.Set; /** * A role assumed by Users. * * @author Dytech Solutions Pty. Ltd. */ public class TestRole { Set privileges; Set users; Long id; public TestRole() { privileges = new HashSet(); users = new HashSet(); } /** * @return Returns the id. */ public Long getId() { return id; } /** * @param id The id to set. */ public void setId(Long id) { this.id = id; } /** * @param user The user to add. */ public void addUser(TestUser user) { user.addRole(this); } /** * @return Returns the users. */ public Set getUsers() { return users; } /** * @param users The users to set. */ public void setUsers(Set users) { this.users = users; } /** * @param privilege The pivilege to add. */ public void addPrivilege(TestPrivilege privilege) { privileges.add(privilege); privilege.getRoles().add(this); } /** * @return Returns the privileges. */ public Set getPrivileges() { return privileges; } /** * @param privileges The privileges to set. */ public void setPrivileges(Set privileges) { this.privileges = privileges; } } ////////////////////////////////////////////// // TestPrivilege.java // ////////////////////////////////////////////// package au.com.dytech.find.core.hibernatetest; import java.util.HashSet; import java.util.Set; /** * A privilege granted to roles. * * @author Dytech Solutions Pty. Ltd. */ public class TestPrivilege { Set roles; Long id; public TestPrivilege() { roles = new HashSet(); } /** * @return Returns the id. */ public Long getId() { return id; } /** * @param id The id to set. */ public void setId(Long id) { this.id = id; } /** * @param role The role to add. */ public void addRole(TestRole role) { role.addPrivilege(this); } /** * @return Returns the roles. */ public Set getRoles() { return roles; } /** * @param roles The roles to set. */ public void setRoles(Set roles) { this.roles = roles; } } ////////////////////////////////////////////// // TestUser.hbm.xml // ////////////////////////////////////////////// <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="au.com.dytech.find.core.hibernatetest.TestUser" table="TEST_USER" > <id name="id" column="id" type="long"> <generator class="native"/> </id> <set name="roles" table="TEST_USER_ROLES" lazy="false" cascade="all"> <key column="USER_ID"/> <many-to-many class = "au.com.dytech.find.core.hibernatetest.TestRole" foreign-key = "FK_TEST_USER_ROLES_ROLE" column = "ROLE_ID"/> </set> </class> </hibernate-mapping> ////////////////////////////////////////////// // TestRole.hbm.xml // ////////////////////////////////////////////// <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="au.com.dytech.find.core.hibernatetest.TestRole" table="TEST_ROLE" > <id name="id" column="id" type="long"> <generator class="native"/> </id> <set name="privileges" table="TEST_ROLE_PRIVILEGES" lazy="false" cascade="all"> <key column="ROLE_ID"/> <many-to-many class = "au.com.dytech.find.core.hibernatetest.TestPrivilege" foreign-key = "FK_TEST_ROLE_PRVLGS_PRVLG" column = "PRIVILEGE_ID"/> </set> <set name="users" inverse="true" cascade="all"> <key column="ROLE_ID"/> <many-to-many class = "au.com.dytech.find.core.hibernatetest.TestUser" foreign-key = "FK_TEST_ROLE_USERS_USER" column = "USER_ID"/> </set> </class> </hibernate-mapping> ////////////////////////////////////////////// // TestPrivilege.hbm.xml // ////////////////////////////////////////////// <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="au.com.dytech.find.core.hibernatetest.TestPrivilege" table="TEST_PRIVILEGE" > <id name="id" column="id" type="long"> <generator class="native"/> </id> <set name="roles" inverse="true" cascade="all"> <key column="PRIVILEGE_ID"/> <many-to-many class = "au.com.dytech.find.core.hibernatetest.TestRole" foreign-key = "FK_TEST_PRIVILEGE_ROLES_ROLE" column = "ROLE_ID"/> </set> </class> </hibernate-mapping> ////////////////////////////////////////////// // hibernate.cfg.xml // ////////////////////////////////////////////// <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="dialect">org.hibernate.dialect.OracleDialect</property> <property name="show_sql">false</property> <property name="cache.provider_class">org.hibernate.cache.EhCacheProvider</property> <mapping resource="au/com/dytech/find/core/hibernatetest/TestPrivilege.hbm.xml"/> <mapping resource="au/com/dytech/find/core/hibernatetest/TestRole.hbm.xml"/> <mapping resource="au/com/dytech/find/core/hibernatetest/TestUser.hbm.xml"/> </session-factory> </hibernate-configuration> ////////////////////////////////////////////// // HibernateQueryTest.java // ////////////////////////////////////////////// package au.com.dytech.find.core.hibernatetest; import java.io.File; import java.io.IOException; import java.util.Iterator; import java.util.List; import javax.naming.NamingException; import junit.framework.TestCase; import org.apache.commons.dbcp.BasicDataSource; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; import org.springframework.mock.jndi.SimpleNamingContextBuilder; import org.springframework.orm.hibernate3.SessionFactoryUtils; /** * This test exposes a bug in hibernate's query generation. * * @author Dytech Solutions Pty. Ltd. */ public class HibernateQueryTest extends TestCase { Session session; TestUser user1; TestPrivilege privilege1, privilege2, privilege3, privilege4; private Transaction transaction; /** * @see junit.framework.TestCase#setUp() */ public void setUp() throws Exception { user1 = new TestUser(); TestUser user2 = new TestUser(); TestRole role1 = new TestRole(); TestRole role2 = new TestRole(); TestRole role3 = new TestRole(); privilege1 = new TestPrivilege(); privilege2 = new TestPrivilege(); privilege3 = new TestPrivilege(); privilege4 = new TestPrivilege(); user1.addRole(role1); user1.addRole(role2); role1.addPrivilege(privilege1); role1.addPrivilege(privilege2); role2.addPrivilege(privilege1); role2.addPrivilege(privilege3); user2.addRole(role3); role3.addPrivilege(privilege1); role3.addPrivilege(privilege4); setupJndiContext(); session = getSession(); transaction = session.beginTransaction(); List oldUsers = session.createCriteria(TestUser.class).list(); for (Iterator iter = oldUsers.iterator(); iter.hasNext();) { TestUser oldUser = (TestUser) iter.next(); session.delete(oldUser); } transaction.commit(); transaction = session.beginTransaction(); session.save(user1); session.save(user2); transaction.commit(); transaction = session.beginTransaction(); } /** * @see junit.framework.TestCase#tearDown() */ public void tearDown() { transaction.commit(); } /** * Produces invalid SQL. */ public void test1() { Query query = session.createQuery("from TestPrivilege p where :user in p.roles.users"); query.setEntity("user", user1); List results = query.list(); assertEquals(3, results.size()); assertTrue(results.contains(privilege1)); assertTrue(results.contains(privilege2)); assertTrue(results.contains(privilege3)); } /** * Produces valid SQL, but no results are found. */ public void test2() { Query query = session.createQuery("from TestPrivilege p where :user in elements(p.roles.users)"); query.setEntity("user", user1); List results = query.list(); assertEquals(3, results.size()); assertTrue(results.contains(privilege1)); assertTrue(results.contains(privilege2)); assertTrue(results.contains(privilege3)); } /** * Successful Query! */ public void test3() { Query query = session.createQuery("select distinct u.roles.privileges from TestUser u where u = :user"); query.setEntity("user", user1); List results = query.list(); assertEquals(3, results.size()); assertTrue(results.contains(privilege1)); assertTrue(results.contains(privilege2)); assertTrue(results.contains(privilege3)); } /** * Create a new Hibernate Session. */ private Session getSession() { File configFile = new File( "src/code/au/com/dytech/find/core/hibernatetest/hibernate.cfg.xml").getAbsoluteFile(); Configuration cfg = new Configuration(); cfg.configure(configFile); cfg.buildMappings(); cfg.setProperty("hibernate.connection.datasource", "jdbc/FindDb"); SessionFactory sessionFactory = cfg.buildSessionFactory(); Session session = SessionFactoryUtils.getNewSession(sessionFactory); return session; } /** * Sets up testing JNDI resources * */ public void setupJndiContext() throws NamingException, IOException { if (SimpleNamingContextBuilder.getCurrentContextBuilder() == null) { SimpleNamingContextBuilder builder = SimpleNamingContextBuilder.emptyActivatedContextBuilder(); BasicDataSource ds = new BasicDataSource(); ds.setPassword("dbpassword"); ds.setDriverClassName("oracle.jdbc.driver.OracleDriver"); ds.setUsername("dbusername"); ds.setUrl("jdbc:oracle:thin:@dbserver:dbport:dbname"); ds.setMaxActive(10); ds.setInitialSize(1); builder.bind("java:comp/env/" + "jdbc/FindDb", ds); builder.bind("jdbc/FindDb", ds); } } } ////////////////////////////////////////////// // test1 stack trace // ////////////////////////////////////////////// org.hibernate.exception.SQLGrammarException: could not execute query at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:70) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.loader.Loader.doList(Loader.java:1596) at org.hibernate.loader.Loader.list(Loader.java:1577) at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:395) at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:844) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74) at au.com.dytech.find.core.hibernatetest.HibernateQueryTest.test1(HibernateQueryTest.java:97) 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:154) at junit.framework.TestCase.runBare(TestCase.java:127) 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 junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: java.sql.SQLException: ORA-00936: missing expression at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:158) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:626) at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:182) at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:589) at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:1025) at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:632) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1147) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3035) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3076) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92) at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:120) at org.hibernate.loader.Loader.getResultSet(Loader.java:1272) at org.hibernate.loader.Loader.doQuery(Loader.java:391) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218) at org.hibernate.loader.Loader.doList(Loader.java:1593) ... 23 more ////////////////////////////////////////////// // test2 stack trace // ////////////////////////////////////////////// junit.framework.AssertionFailedError: expected:<3> but was:<0> at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.failNotEquals(Assert.java:282) at junit.framework.Assert.assertEquals(Assert.java:64) at junit.framework.Assert.assertEquals(Assert.java:201) at junit.framework.Assert.assertEquals(Assert.java:207) at au.com.dytech.find.core.hibernatetest.HibernateQueryTest.test2(HibernateQueryTest.java:114) 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:154) at junit.framework.TestCase.runBare(TestCase.java:127) 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 junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

    Hibernate JIRA | 1 decade ago | Dytech Solutions
    junit.framework.AssertionFailedError: expected:<3> but was:<0>
  6. 0

    Summary: When executing the query "from Privilege p where :user in p.roles.users" an oracle SQLException: "missing expression" is thrown. Alternate queries were found, but this query should either work, or produce a hibernate query exception of some sort (ie malformed query, unsupported query etc), not left up to Oracle. This bug report contains: - 3 Java classes for model objects ~ TestUser.java - contains a set of TestRoles ~ TestRole.java - contains a set of TestUsers and a list of TestPrivileges ~ TestPrivilege.java - contains a set of TestRoles - 3 Hibernate mappings ~ All sets are mapped, some are inverse mappings. - 1 Hibernate configuration file ~ identifies the 3 mapping files - 1 JUnit test class with example queries ~ test1 produces invalid sql ~ test2 is valide, but unexpectedly returns no results ~ test3 is valid and returns correct results - 2 Stack traces, one from test1 and one test2 ////////////////////////////////////////////// // TestUser.java // ////////////////////////////////////////////// package au.com.dytech.find.core.hibernatetest; import java.util.HashSet; import java.util.Set; /** * A User of the system. * * @author Dytech Solutions Pty. Ltd. */ public class TestUser { Set roles; Long id; public TestUser() { roles = new HashSet(); } /** * @return Returns the id. */ public Long getId() { return id; } /** * @param id The id to set. */ public void setId(Long id) { this.id = id; } /** * @param role The role to add. */ public void addRole(TestRole role) { roles.add(role); role.getUsers().add(this); } /** * @return Returns the roles. */ public Set getRoles() { return roles; } /** * @param roles The roles to set. */ public void setRoles(Set roles) { this.roles = roles; } } ////////////////////////////////////////////// // TestRole.java // ////////////////////////////////////////////// package au.com.dytech.find.core.hibernatetest; import java.util.HashSet; import java.util.Set; /** * A role assumed by Users. * * @author Dytech Solutions Pty. Ltd. */ public class TestRole { Set privileges; Set users; Long id; public TestRole() { privileges = new HashSet(); users = new HashSet(); } /** * @return Returns the id. */ public Long getId() { return id; } /** * @param id The id to set. */ public void setId(Long id) { this.id = id; } /** * @param user The user to add. */ public void addUser(TestUser user) { user.addRole(this); } /** * @return Returns the users. */ public Set getUsers() { return users; } /** * @param users The users to set. */ public void setUsers(Set users) { this.users = users; } /** * @param privilege The pivilege to add. */ public void addPrivilege(TestPrivilege privilege) { privileges.add(privilege); privilege.getRoles().add(this); } /** * @return Returns the privileges. */ public Set getPrivileges() { return privileges; } /** * @param privileges The privileges to set. */ public void setPrivileges(Set privileges) { this.privileges = privileges; } } ////////////////////////////////////////////// // TestPrivilege.java // ////////////////////////////////////////////// package au.com.dytech.find.core.hibernatetest; import java.util.HashSet; import java.util.Set; /** * A privilege granted to roles. * * @author Dytech Solutions Pty. Ltd. */ public class TestPrivilege { Set roles; Long id; public TestPrivilege() { roles = new HashSet(); } /** * @return Returns the id. */ public Long getId() { return id; } /** * @param id The id to set. */ public void setId(Long id) { this.id = id; } /** * @param role The role to add. */ public void addRole(TestRole role) { role.addPrivilege(this); } /** * @return Returns the roles. */ public Set getRoles() { return roles; } /** * @param roles The roles to set. */ public void setRoles(Set roles) { this.roles = roles; } } ////////////////////////////////////////////// // TestUser.hbm.xml // ////////////////////////////////////////////// <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="au.com.dytech.find.core.hibernatetest.TestUser" table="TEST_USER" > <id name="id" column="id" type="long"> <generator class="native"/> </id> <set name="roles" table="TEST_USER_ROLES" lazy="false" cascade="all"> <key column="USER_ID"/> <many-to-many class = "au.com.dytech.find.core.hibernatetest.TestRole" foreign-key = "FK_TEST_USER_ROLES_ROLE" column = "ROLE_ID"/> </set> </class> </hibernate-mapping> ////////////////////////////////////////////// // TestRole.hbm.xml // ////////////////////////////////////////////// <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="au.com.dytech.find.core.hibernatetest.TestRole" table="TEST_ROLE" > <id name="id" column="id" type="long"> <generator class="native"/> </id> <set name="privileges" table="TEST_ROLE_PRIVILEGES" lazy="false" cascade="all"> <key column="ROLE_ID"/> <many-to-many class = "au.com.dytech.find.core.hibernatetest.TestPrivilege" foreign-key = "FK_TEST_ROLE_PRVLGS_PRVLG" column = "PRIVILEGE_ID"/> </set> <set name="users" inverse="true" cascade="all"> <key column="ROLE_ID"/> <many-to-many class = "au.com.dytech.find.core.hibernatetest.TestUser" foreign-key = "FK_TEST_ROLE_USERS_USER" column = "USER_ID"/> </set> </class> </hibernate-mapping> ////////////////////////////////////////////// // TestPrivilege.hbm.xml // ////////////////////////////////////////////// <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="au.com.dytech.find.core.hibernatetest.TestPrivilege" table="TEST_PRIVILEGE" > <id name="id" column="id" type="long"> <generator class="native"/> </id> <set name="roles" inverse="true" cascade="all"> <key column="PRIVILEGE_ID"/> <many-to-many class = "au.com.dytech.find.core.hibernatetest.TestRole" foreign-key = "FK_TEST_PRIVILEGE_ROLES_ROLE" column = "ROLE_ID"/> </set> </class> </hibernate-mapping> ////////////////////////////////////////////// // hibernate.cfg.xml // ////////////////////////////////////////////// <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="dialect">org.hibernate.dialect.OracleDialect</property> <property name="show_sql">false</property> <property name="cache.provider_class">org.hibernate.cache.EhCacheProvider</property> <mapping resource="au/com/dytech/find/core/hibernatetest/TestPrivilege.hbm.xml"/> <mapping resource="au/com/dytech/find/core/hibernatetest/TestRole.hbm.xml"/> <mapping resource="au/com/dytech/find/core/hibernatetest/TestUser.hbm.xml"/> </session-factory> </hibernate-configuration> ////////////////////////////////////////////// // HibernateQueryTest.java // ////////////////////////////////////////////// package au.com.dytech.find.core.hibernatetest; import java.io.File; import java.io.IOException; import java.util.Iterator; import java.util.List; import javax.naming.NamingException; import junit.framework.TestCase; import org.apache.commons.dbcp.BasicDataSource; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; import org.springframework.mock.jndi.SimpleNamingContextBuilder; import org.springframework.orm.hibernate3.SessionFactoryUtils; /** * This test exposes a bug in hibernate's query generation. * * @author Dytech Solutions Pty. Ltd. */ public class HibernateQueryTest extends TestCase { Session session; TestUser user1; TestPrivilege privilege1, privilege2, privilege3, privilege4; private Transaction transaction; /** * @see junit.framework.TestCase#setUp() */ public void setUp() throws Exception { user1 = new TestUser(); TestUser user2 = new TestUser(); TestRole role1 = new TestRole(); TestRole role2 = new TestRole(); TestRole role3 = new TestRole(); privilege1 = new TestPrivilege(); privilege2 = new TestPrivilege(); privilege3 = new TestPrivilege(); privilege4 = new TestPrivilege(); user1.addRole(role1); user1.addRole(role2); role1.addPrivilege(privilege1); role1.addPrivilege(privilege2); role2.addPrivilege(privilege1); role2.addPrivilege(privilege3); user2.addRole(role3); role3.addPrivilege(privilege1); role3.addPrivilege(privilege4); setupJndiContext(); session = getSession(); transaction = session.beginTransaction(); List oldUsers = session.createCriteria(TestUser.class).list(); for (Iterator iter = oldUsers.iterator(); iter.hasNext();) { TestUser oldUser = (TestUser) iter.next(); session.delete(oldUser); } transaction.commit(); transaction = session.beginTransaction(); session.save(user1); session.save(user2); transaction.commit(); transaction = session.beginTransaction(); } /** * @see junit.framework.TestCase#tearDown() */ public void tearDown() { transaction.commit(); } /** * Produces invalid SQL. */ public void test1() { Query query = session.createQuery("from TestPrivilege p where :user in p.roles.users"); query.setEntity("user", user1); List results = query.list(); assertEquals(3, results.size()); assertTrue(results.contains(privilege1)); assertTrue(results.contains(privilege2)); assertTrue(results.contains(privilege3)); } /** * Produces valid SQL, but no results are found. */ public void test2() { Query query = session.createQuery("from TestPrivilege p where :user in elements(p.roles.users)"); query.setEntity("user", user1); List results = query.list(); assertEquals(3, results.size()); assertTrue(results.contains(privilege1)); assertTrue(results.contains(privilege2)); assertTrue(results.contains(privilege3)); } /** * Successful Query! */ public void test3() { Query query = session.createQuery("select distinct u.roles.privileges from TestUser u where u = :user"); query.setEntity("user", user1); List results = query.list(); assertEquals(3, results.size()); assertTrue(results.contains(privilege1)); assertTrue(results.contains(privilege2)); assertTrue(results.contains(privilege3)); } /** * Create a new Hibernate Session. */ private Session getSession() { File configFile = new File( "src/code/au/com/dytech/find/core/hibernatetest/hibernate.cfg.xml").getAbsoluteFile(); Configuration cfg = new Configuration(); cfg.configure(configFile); cfg.buildMappings(); cfg.setProperty("hibernate.connection.datasource", "jdbc/FindDb"); SessionFactory sessionFactory = cfg.buildSessionFactory(); Session session = SessionFactoryUtils.getNewSession(sessionFactory); return session; } /** * Sets up testing JNDI resources * */ public void setupJndiContext() throws NamingException, IOException { if (SimpleNamingContextBuilder.getCurrentContextBuilder() == null) { SimpleNamingContextBuilder builder = SimpleNamingContextBuilder.emptyActivatedContextBuilder(); BasicDataSource ds = new BasicDataSource(); ds.setPassword("dbpassword"); ds.setDriverClassName("oracle.jdbc.driver.OracleDriver"); ds.setUsername("dbusername"); ds.setUrl("jdbc:oracle:thin:@dbserver:dbport:dbname"); ds.setMaxActive(10); ds.setInitialSize(1); builder.bind("java:comp/env/" + "jdbc/FindDb", ds); builder.bind("jdbc/FindDb", ds); } } } ////////////////////////////////////////////// // test1 stack trace // ////////////////////////////////////////////// org.hibernate.exception.SQLGrammarException: could not execute query at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:70) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.loader.Loader.doList(Loader.java:1596) at org.hibernate.loader.Loader.list(Loader.java:1577) at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:395) at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:844) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74) at au.com.dytech.find.core.hibernatetest.HibernateQueryTest.test1(HibernateQueryTest.java:97) 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:154) at junit.framework.TestCase.runBare(TestCase.java:127) 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 junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: java.sql.SQLException: ORA-00936: missing expression at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:158) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:626) at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:182) at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:589) at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:1025) at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:632) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1147) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3035) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3076) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92) at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:120) at org.hibernate.loader.Loader.getResultSet(Loader.java:1272) at org.hibernate.loader.Loader.doQuery(Loader.java:391) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218) at org.hibernate.loader.Loader.doList(Loader.java:1593) ... 23 more ////////////////////////////////////////////// // test2 stack trace // ////////////////////////////////////////////// junit.framework.AssertionFailedError: expected:<3> but was:<0> at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.failNotEquals(Assert.java:282) at junit.framework.Assert.assertEquals(Assert.java:64) at junit.framework.Assert.assertEquals(Assert.java:201) at junit.framework.Assert.assertEquals(Assert.java:207) at au.com.dytech.find.core.hibernatetest.HibernateQueryTest.test2(HibernateQueryTest.java:114) 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:154) at junit.framework.TestCase.runBare(TestCase.java:127) 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 junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

    Hibernate JIRA | 1 decade ago | Dytech Solutions
    junit.framework.AssertionFailedError: expected:<3> but was:<0>

  1. tzrlk 2 times, last 6 months ago
7 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. junit.framework.AssertionFailedError

    expected:<3> but was:<0>

    at junit.framework.Assert.fail()
  2. JUnit
    Assert.assertEquals
    1. junit.framework.Assert.fail(Assert.java:50)
    2. junit.framework.Assert.failNotEquals(Assert.java:287)
    3. junit.framework.Assert.assertEquals(Assert.java:67)
    4. junit.framework.Assert.assertEquals(Assert.java:199)
    5. junit.framework.Assert.assertEquals(Assert.java:205)
    5 frames
  3. org.springsource.ide
    HelpPluginTest.testGetSampleProjects
    1. org.springsource.ide.eclipse.commons.internal.help.HelpPluginTest.testGetSampleProjects(HelpPluginTest.java:33)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  5. JUnit
    JUnit38ClassRunner.run
    1. junit.framework.TestCase.runTest(TestCase.java:168)
    2. junit.framework.TestCase.runBare(TestCase.java:134)
    3. junit.framework.TestResult$1.protect(TestResult.java:110)
    4. junit.framework.TestResult.runProtected(TestResult.java:128)
    5. junit.framework.TestResult.run(TestResult.java:113)
    6. junit.framework.TestCase.run(TestCase.java:124)
    7. junit.framework.TestSuite.runTest(TestSuite.java:243)
    8. junit.framework.TestSuite.run(TestSuite.java:238)
    9. junit.framework.TestSuite.runTest(TestSuite.java:243)
    10. junit.framework.TestSuite.run(TestSuite.java:238)
    11. org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
    11 frames
  6. JUnit4 Runner
    JUnit4TestReference.run
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    1 frame
  7. JUnit3 Runner
    RemoteTestRunner.run
    1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    4 frames
  8. PDE JUnit Plug-in Test
    PlatformUITestHarness$1.run
    1. org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62)
    2. org.eclipse.pde.internal.junit.runtime.PlatformUITestHarness$1.run(PlatformUITestHarness.java:47)
    2 frames
  9. RWT
    Display.readAndDispatch
    1. org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    2. org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
    3. org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
    4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
    4 frames
  10. Eclipse Workbench SWT
    PartRenderingEngine$9.run
    1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
    1 frame
  11. Databinding
    Realm.runWithDefault
    1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    1 frame
  12. Eclipse Workbench SWT
    PartRenderingEngine.run
    1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
    1 frame
  13. Eclipse Workbench
    E4Workbench.createAndRunUI
    1. org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
    1 frame
  14. Eclipse UI
    Workbench$5.run
    1. org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
    1 frame
  15. Databinding
    Realm.runWithDefault
    1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    1 frame
  16. Eclipse UI
    Workbench.createAndRunWorkbench
    1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
    1 frame
  17. Eclipse UI
    PlatformUI.createAndRunWorkbench
    1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    1 frame
  18. Eclipse IDE
    IDEApplication.start
    1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
    1 frame
  19. PDE JUnit Plug-in Test
    NonUIThreadTestApplication.start
    1. org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.runApp(NonUIThreadTestApplication.java:54)
    2. org.eclipse.pde.internal.junit.runtime.UITestApplication.runApp(UITestApplication.java:41)
    3. org.eclipse.pde.internal.junit.runtime.NonUIThreadTestApplication.start(NonUIThreadTestApplication.java:48)
    3 frames
  20. Equinox Container
    EclipseAppHandle.run
    1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    1 frame
  21. Eclipse OSGi
    EclipseStarter.run
    1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
    4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    4 frames
  22. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  23. Equinox
    Main.main
    1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    3. org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    4. org.eclipse.equinox.launcher.Main.main(Main.java:1414)
    4 frames