[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-6909) org.jboss.tools.hibernate.ui.test/HibernateUiTestSuite/testAction/ :: java.lang.NoSuchMethodError: org.eclipse.swt.widgets.Display.internal_new_GC(Lorg/eclipse/swt/graphics/GCData; )I

Vitali Yemialyanchyk (JIRA) jira-events at lists.jboss.org
Mon Sep 6 08:06:52 EDT 2010


     [ https://jira.jboss.org/browse/JBIDE-6909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitali Yemialyanchyk resolved JBIDE-6909.
-----------------------------------------

    Resolution: Done


fixed. Denis, this is gist of mock tests - we should mock all methods which are called in test process, we should call all these methods cause Eclipse architecture - with new Eclipse version Eclipse developers enhance internal architecture and now is possible to delete these methods mocks - and this fix the issue.

> org.jboss.tools.hibernate.ui.test/HibernateUiTestSuite/testAction/ :: java.lang.NoSuchMethodError: org.eclipse.swt.widgets.Display.internal_new_GC(Lorg/eclipse/swt/graphics/GCData;)I
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-6909
>                 URL: https://jira.jboss.org/browse/JBIDE-6909
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 3.2.0.M2, 3.2.0.Beta
>            Reporter: Nick Boldt
>            Assignee: Vitali Yemialyanchyk
>            Priority: Minor
>             Fix For: 3.2.0.Beta
>
>
> http://hudson.qa.jboss.com/hudson/view/DevStudio_Tycho/job/jbosstools-3.2.0.M2/148/testReport/org.jboss.tools.hibernate.ui.test/HibernateUiTestSuite/testAction/
> Error Message
> org.eclipse.swt.widgets.Display.internal_new_GC(Lorg/eclipse/swt/graphics/GCData;)I
> Stacktrace
> java.lang.NoSuchMethodError: org.eclipse.swt.widgets.Display.internal_new_GC(Lorg/eclipse/swt/graphics/GCData;)I
> 	at org.jboss.tools.hibernate.ui.diagram.editors.actions.test.ExportImageActionTest$2.<init>(ExportImageActionTest.java:110)
> 	at org.jboss.tools.hibernate.ui.diagram.editors.actions.test.ExportImageActionTest.testAction(ExportImageActionTest.java:76)
> 	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: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:232)
> 	at junit.framework.TestSuite.run(TestSuite.java:227)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:232)
> 	at junit.framework.TestSuite.run(TestSuite.java:227)
> 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
> 	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
> 	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
> 	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
> 	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
> 	at org.codehaus.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:75)
> 	at org.codehaus.tycho.surefire.osgibooter.AbstractUITestApplication$1.run(AbstractUITestApplication.java:25)
> 	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> 	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
> 	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3527)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3174)
> 	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
> 	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
> 	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
> 	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
> 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
> 	at org.codehaus.tycho.surefire.osgibooter.UITestApplication.runApplication(UITestApplication.java:21)
> 	at org.codehaus.tycho.surefire.osgibooter.AbstractUITestApplication.run(AbstractUITestApplication.java:109)
> 	at org.codehaus.tycho.surefire.osgibooter.UITestApplication.start(UITestApplication.java:27)
> 	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:369)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> 	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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list