Re: [jbosstools-dev] jbosstools-3.3_trunk.aggregate - Build # 4170 - Still Failing!
by Nick Boldt
Birt issue will be fixed tonight. Had to sneak out for previously booked dinner but will address the problem tonight after that.
Target platform is called SR1-M because it's maintenance on SR1. In a couple weeks we'll have the SR2 one. (I guess it could have been called SR2-M.)
Sent from my Sony Ericsson Xperia pro
Max Rydahl Andersen <max.andersen(a)redhat.com> wrote:
>
>> I was trying to take care of emma coverage report generation problem for common component build and found that for running tests it uses org.jboss.tools.common-3.3.0.M3.jar :)
>
>why did that happen ?
>
>the birt one is a second/different problem right ?
>
>
>/max
>http://about.me/maxandersen
>
>
>
11 years, 1 month
Re: [jbosstools-dev] Visual Editor not working when bot tests are run via Maven
by Denis Golovin
My previous suggestion to add exploded bundles is not correct,
it works fine for me after I removed exploded bundles (they are already
configured in parent pom) and product (it is also configured in parent pom).
Denis
On 02/08/2012 11:06 AM, Vlado Pakan wrote:
> I have added exploded bundles to configuration. It doesn't help.
> Attached is my pom.xml file.
>
> I am using different maven plugin to run tests then maven plugin used
> in /jsf/tests/pom.xml
>
> Vlado.
>
> On 02/08/2012 06:10 PM, Denis Golovin wrote:
>> Problem is your configuration in pom.xml overrides configuration for
>> tests defined in jsf/tests/pom.xml
>>
>> you need to add
>> <explodedBundles>
>> <bundle>org.jboss.tools.vpe</bundle>
>> <bundle>org.mozilla.xulrunner.cocoa.macosx</bundle>
>> <bundle>org.mozilla.xulrunner.gtk.linux.x86</bundle>
>> <bundle>org.mozilla.xulrunner.gtk.linux.x86_64</bundle>
>> <bundle>org.mozilla.xulrunner.win32.win32.x86</bundle>
>> </explodedBundles>
>> into your configuration
>>
>> I haven't updated yet xulunner manifests to have
>>
>> Eclipse-BundleShape : dir
>>
>> that's why explodedBundles configuration is still needed.
>>
>> Denis
>>
>> On 02/08/2012 09:00 AM, Vlado Pakan wrote:
>>> No problem is there still. But missing xulrunner probably is not
>>> reason.
>>>
>>> JSF SWT Bot tests are not running when using Visual Editor with error
>>> mentioned before.
>>>
>>> But VPE unit tests run correctly.
>>>
>>> Vlado.
>>>
>>> On 02/08/2012 05:55 PM, Max Rydahl Andersen wrote:
>>>>
>>>>> XULrunner plugins are RESOLVED.
>>>>>
>>>>> All VPE Unit tests run via Maven passed.
>>>> so the problem is gone ?
>>>>
>>>>> Vlado.
>>>>>
>>>>> On 02/08/2012 02:36 PM, Max Rydahl Andersen wrote:
>>>>>> Does running the vpe unit test work for you from mvn ?
>>>>>>
>>>>>> if yes, then my guess is that you don't have enough of the
>>>>>> implicit dependencies listed in your swt bot tests.
>>>>>>
>>>>>> i.e. the xulrunner plugins.
>>>>>>
>>>>>> /max
>>>>>>
>>>>>>> I'm running SWTBot tests which needs Visual Editor. When the
>>>>>>> test opens some web page I'm getting error. See stack trace.
>>>>>>>
>>>>>>> When running tests locally everything works fine.
>>>>>>>
>>>>>>> Environment properties settings should be fine:
>>>>>>>
>>>>>>> LD_LIBRARY_PATH=/usr/java/jdk1.6.0_30/jre/lib/i386/server:/usr/java/jdk1.6.0_30/jre/lib/i386:/usr/java/jdk1.6.0_30/jre/../lib/i386:/usr/lib/firefox-3.6
>>>>>>>
>>>>>>> MOZILLA_FIVE_HOME=/usr/lib/firefox-3.6
>>>>>>>
>>>>>>> Help> About Eclipse> Installation Details>
>>>>>>> Configuration is missing these lines when comparing to locally
>>>>>>> running tests:
>>>>>>> org.eclipse.swt.browser.MozillaFactoriesRegistered=true
>>>>>>> org.eclipse.swt.browser.XULRunnerInitialized=true
>>>>>>>
>>>>>>> Command xulrunner -version called from
>>>>>>> ${org.eclipse.swt.browser.XULRunnerPath} dislpayed:
>>>>>>> Mozilla XULRunner 1.9.2.24 - 20111108102749
>>>>>>>
>>>>>>> !ENTRY org.jboss.tools.vpe 4 0 2012-02-08 12:03:25.934
>>>>>>> !MESSAGE Could not open the Visual Page Editor:
>>>>>>> org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME may
>>>>>>> not point at an embeddable GRE] [NS_InitEmbedding
>>>>>>> /home/vpakan/tmp/jbtsource/trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/target/work/plugins/org.mozilla.xulrunner.gtk.linux.x86_1.9.2.16b/xulrunner
>>>>>>> error -2147467259]
>>>>>>> !STACK 0
>>>>>>> org.jboss.tools.vpe.xulrunner.XulRunnerException:
>>>>>>> org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME may
>>>>>>> not point at an embeddable GRE] [NS_InitEmbedding
>>>>>>> /home/vpakan/tmp/jbtsource/trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/target/work/plugins/org.mozilla.xulrunner.gtk.linux.x86_1.9.2.16b/xulrunner
>>>>>>> error -2147467259]
>>>>>>> at
>>>>>>> org.jboss.tools.vpe.editor.mozilla.MozillaEditor.wrapXulRunnerError(MozillaEditor.java:694)
>>>>>>> at
>>>>>>> org.jboss.tools.vpe.editor.mozilla.MozillaEditor.showXulRunnerError(MozillaEditor.java:613)
>>>>>>> at
>>>>>>> org.jboss.tools.vpe.editor.mozilla.MozillaEditor.createPartControl(MozillaEditor.java:557)
>>>>>>> at
>>>>>>> org.jboss.tools.vpe.editor.VpeEditorPart.createVisualEditor(VpeEditorPart.java:806)
>>>>>>> at
>>>>>>> org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor.pageChange(JSPMultiPageEditor.java:251)
>>>>>>> at
>>>>>>> org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1067)
>>>>>>> at
>>>>>>> org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor.createPages(JSPMultiPageEditor.java:433)
>>>>>>> at
>>>>>>> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1198)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)
>>>>>>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:493)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
>>>>>>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:479)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:808)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:707)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:666)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2942)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)
>>>>>>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
>>>>>>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
>>>>>>> at
>>>>>>> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:355)
>>>>>>> at
>>>>>>> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:164)
>>>>>>> at
>>>>>>> org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
>>>>>>> at
>>>>>>> org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
>>>>>>> at
>>>>>>> org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
>>>>>>> at
>>>>>>> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
>>>>>>> at
>>>>>>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
>>>>>>> at
>>>>>>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
>>>>>>> at
>>>>>>> org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
>>>>>>> at
>>>>>>> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
>>>>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>>>>>>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
>>>>>>> at
>>>>>>> org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
>>>>>>> at
>>>>>>> org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
>>>>>>> at
>>>>>>> org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
>>>>>>> at
>>>>>>> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
>>>>>>> at
>>>>>>> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
>>>>>>> at
>>>>>>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>>>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
>>>>>>> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
>>>>>>> at
>>>>>>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
>>>>>>> at
>>>>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
>>>>>>> at
>>>>>>> org.eclipse.tycho.surefire.osgibooter.UITestApplication.runApplication(UITestApplication.java:31)
>>>>>>> at
>>>>>>> org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.run(AbstractUITestApplication.java:114)
>>>>>>> at
>>>>>>> org.eclipse.tycho.surefire.osgibooter.UITestApplication.start(UITestApplication.java:37)
>>>>>>> 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:344)
>>>>>>> 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:622)
>>>>>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
>>>>>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
>>>>>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
>>>>>>> Caused by: org.eclipse.swt.SWTError: No more handles
>>>>>>> [MOZILLA_FIVE_HOME may not point at an embeddable GRE]
>>>>>>> [NS_InitEmbedding
>>>>>>> /home/vpakan/tmp/jbtsource/trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/target/work/plugins/org.mozilla.xulrunner.gtk.linux.x86_1.9.2.16b/xulrunner
>>>>>>> error -2147467259]
>>>>>>> at org.eclipse.swt.SWT.error(SWT.java:4308)
>>>>>>> at
>>>>>>> org.eclipse.swt.browser.Mozilla.initXPCOM(Mozilla.java:1914)
>>>>>>> at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:700)
>>>>>>> at org.eclipse.swt.browser.Browser.<init>(Browser.java:99)
>>>>>>> at
>>>>>>> org.jboss.tools.vpe.xulrunner.browser.XulRunnerBrowser.<init>(XulRunnerBrowser.java:115)
>>>>>>> at
>>>>>>> org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor.<init>(XulRunnerEditor.java:129)
>>>>>>> at
>>>>>>> org.jboss.tools.vpe.editor.mozilla.XulRunnerEditor2.<init>(XulRunnerEditor2.java:23)
>>>>>>> at
>>>>>>> org.jboss.tools.vpe.editor.mozilla.MozillaEditor.createPartControl(MozillaEditor.java:531)
>>>>>>> ... 83 more
>>>>>>>
>>>>>>> Hint: Maybe I'm missing some feature/plugin installed because
>>>>>>> tests are not run with full JBT installed.
>>>>>>>
>>>>>>> Any help is really appreciated.
>>>>>>>
>>>>>>> Thank you, Vlado.
>>>>>>>
>>>>>>>
>>>>>> /max
>>>>>> http://about.me/maxandersen
>>>>>>
>>>>>>
>>>>>>
>>>> /max
>>>> http://about.me/maxandersen
>>>>
>>>>
>>>>
>>> _______________________________________________
>>> jbosstools-dev mailing list
>>> jbosstools-dev(a)lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/jbosstools-dev
>>
11 years, 1 month
Re: [jbosstools-dev] Visual Editor not working when bot tests are run via Maven
by Max Rydahl Andersen
> XULrunner plugins are RESOLVED.
>
> All VPE Unit tests run via Maven passed.
so the problem is gone ?
>
> Vlado.
>
> On 02/08/2012 02:36 PM, Max Rydahl Andersen wrote:
>> Does running the vpe unit test work for you from mvn ?
>>
>> if yes, then my guess is that you don't have enough of the implicit dependencies listed in your swt bot tests.
>>
>> i.e. the xulrunner plugins.
>>
>> /max
>>
>>> I'm running SWTBot tests which needs Visual Editor. When the test opens some web page I'm getting error. See stack trace.
>>>
>>> When running tests locally everything works fine.
>>>
>>> Environment properties settings should be fine:
>>>
>>> LD_LIBRARY_PATH=/usr/java/jdk1.6.0_30/jre/lib/i386/server:/usr/java/jdk1.6.0_30/jre/lib/i386:/usr/java/jdk1.6.0_30/jre/../lib/i386:/usr/lib/firefox-3.6
>>> MOZILLA_FIVE_HOME=/usr/lib/firefox-3.6
>>>
>>> Help> About Eclipse> Installation Details> Configuration is missing these lines when comparing to locally running tests:
>>> org.eclipse.swt.browser.MozillaFactoriesRegistered=true
>>> org.eclipse.swt.browser.XULRunnerInitialized=true
>>>
>>> Command xulrunner -version called from ${org.eclipse.swt.browser.XULRunnerPath} dislpayed:
>>> Mozilla XULRunner 1.9.2.24 - 20111108102749
>>>
>>> !ENTRY org.jboss.tools.vpe 4 0 2012-02-08 12:03:25.934
>>> !MESSAGE Could not open the Visual Page Editor:
>>> org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME may not point at an embeddable GRE] [NS_InitEmbedding /home/vpakan/tmp/jbtsource/trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/target/work/plugins/org.mozilla.xulrunner.gtk.linux.x86_1.9.2.16b/xulrunner error -2147467259]
>>> !STACK 0
>>> org.jboss.tools.vpe.xulrunner.XulRunnerException: org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME may not point at an embeddable GRE] [NS_InitEmbedding /home/vpakan/tmp/jbtsource/trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/target/work/plugins/org.mozilla.xulrunner.gtk.linux.x86_1.9.2.16b/xulrunner error -2147467259]
>>> at org.jboss.tools.vpe.editor.mozilla.MozillaEditor.wrapXulRunnerError(MozillaEditor.java:694)
>>> at org.jboss.tools.vpe.editor.mozilla.MozillaEditor.showXulRunnerError(MozillaEditor.java:613)
>>> at org.jboss.tools.vpe.editor.mozilla.MozillaEditor.createPartControl(MozillaEditor.java:557)
>>> at org.jboss.tools.vpe.editor.VpeEditorPart.createVisualEditor(VpeEditorPart.java:806)
>>> at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor.pageChange(JSPMultiPageEditor.java:251)
>>> at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1067)
>>> at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor.createPages(JSPMultiPageEditor.java:433)
>>> at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348)
>>> at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
>>> at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
>>> at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
>>> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
>>> at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
>>> at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
>>> at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
>>> at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
>>> at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
>>> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1198)
>>> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)
>>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:493)
>>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
>>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:479)
>>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
>>> at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
>>> at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
>>> at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
>>> at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:808)
>>> at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:707)
>>> at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:666)
>>> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2942)
>>> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
>>> at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
>>> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
>>> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>>> at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
>>> at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
>>> at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)
>>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
>>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
>>> at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:355)
>>> at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:164)
>>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
>>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
>>> at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
>>> at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
>>> at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
>>> at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
>>> at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
>>> at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
>>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
>>> at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
>>> at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
>>> at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
>>> at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
>>> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
>>> at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
>>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
>>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
>>> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
>>> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>>> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
>>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>>> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
>>> at org.eclipse.tycho.surefire.osgibooter.UITestApplication.runApplication(UITestApplication.java:31)
>>> at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.run(AbstractUITestApplication.java:114)
>>> at org.eclipse.tycho.surefire.osgibooter.UITestApplication.start(UITestApplication.java:37)
>>> 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:344)
>>> 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:622)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
>>> Caused by: org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME may not point at an embeddable GRE] [NS_InitEmbedding /home/vpakan/tmp/jbtsource/trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/target/work/plugins/org.mozilla.xulrunner.gtk.linux.x86_1.9.2.16b/xulrunner error -2147467259]
>>> at org.eclipse.swt.SWT.error(SWT.java:4308)
>>> at org.eclipse.swt.browser.Mozilla.initXPCOM(Mozilla.java:1914)
>>> at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:700)
>>> at org.eclipse.swt.browser.Browser.<init>(Browser.java:99)
>>> at org.jboss.tools.vpe.xulrunner.browser.XulRunnerBrowser.<init>(XulRunnerBrowser.java:115)
>>> at org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor.<init>(XulRunnerEditor.java:129)
>>> at org.jboss.tools.vpe.editor.mozilla.XulRunnerEditor2.<init>(XulRunnerEditor2.java:23)
>>> at org.jboss.tools.vpe.editor.mozilla.MozillaEditor.createPartControl(MozillaEditor.java:531)
>>> ... 83 more
>>>
>>> Hint: Maybe I'm missing some feature/plugin installed because tests are not run with full JBT installed.
>>>
>>> Any help is really appreciated.
>>>
>>> Thank you, Vlado.
>>>
>>>
>> /max
>> http://about.me/maxandersen
>>
>>
>>
/max
http://about.me/maxandersen
11 years, 1 month
Visual Editor not working when bot tests are run via Maven
by Vlado Pakan
Hi,
I'm running SWTBot tests which needs Visual Editor. When the test opens
some web page I'm getting error. See stack trace.
When running tests locally everything works fine.
Environment properties settings should be fine:
LD_LIBRARY_PATH=/usr/java/jdk1.6.0_30/jre/lib/i386/server:/usr/java/jdk1.6.0_30/jre/lib/i386:/usr/java/jdk1.6.0_30/jre/../lib/i386:/usr/lib/firefox-3.6
MOZILLA_FIVE_HOME=/usr/lib/firefox-3.6
Help > About Eclipse > Installation Details > Configuration is missing
these lines when comparing to locally running tests:
org.eclipse.swt.browser.MozillaFactoriesRegistered=true
org.eclipse.swt.browser.XULRunnerInitialized=true
Command xulrunner -version called from
${org.eclipse.swt.browser.XULRunnerPath} dislpayed:
Mozilla XULRunner 1.9.2.24 - 20111108102749
!ENTRY org.jboss.tools.vpe 4 0 2012-02-08 12:03:25.934
!MESSAGE Could not open the Visual Page Editor:
org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME may not
point at an embeddable GRE] [NS_InitEmbedding
/home/vpakan/tmp/jbtsource/trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/target/work/plugins/org.mozilla.xulrunner.gtk.linux.x86_1.9.2.16b/xulrunner
error -2147467259]
!STACK 0
org.jboss.tools.vpe.xulrunner.XulRunnerException:
org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME may not
point at an embeddable GRE] [NS_InitEmbedding
/home/vpakan/tmp/jbtsource/trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/target/work/plugins/org.mozilla.xulrunner.gtk.linux.x86_1.9.2.16b/xulrunner
error -2147467259]
at
org.jboss.tools.vpe.editor.mozilla.MozillaEditor.wrapXulRunnerError(MozillaEditor.java:694)
at
org.jboss.tools.vpe.editor.mozilla.MozillaEditor.showXulRunnerError(MozillaEditor.java:613)
at
org.jboss.tools.vpe.editor.mozilla.MozillaEditor.createPartControl(MozillaEditor.java:557)
at
org.jboss.tools.vpe.editor.VpeEditorPart.createVisualEditor(VpeEditorPart.java:806)
at
org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor.pageChange(JSPMultiPageEditor.java:251)
at
org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1067)
at
org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor.createPages(JSPMultiPageEditor.java:433)
at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1198)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:493)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:479)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
at
org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
at
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
at
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:808)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:707)
at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:666)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2942)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
at
org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
at
org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:355)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:164)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
at
org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
at
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at
org.eclipse.tycho.surefire.osgibooter.UITestApplication.runApplication(UITestApplication.java:31)
at
org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.run(AbstractUITestApplication.java:114)
at
org.eclipse.tycho.surefire.osgibooter.UITestApplication.start(UITestApplication.java:37)
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:344)
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:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME
may not point at an embeddable GRE] [NS_InitEmbedding
/home/vpakan/tmp/jbtsource/trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/target/work/plugins/org.mozilla.xulrunner.gtk.linux.x86_1.9.2.16b/xulrunner
error -2147467259]
at org.eclipse.swt.SWT.error(SWT.java:4308)
at org.eclipse.swt.browser.Mozilla.initXPCOM(Mozilla.java:1914)
at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:700)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:99)
at
org.jboss.tools.vpe.xulrunner.browser.XulRunnerBrowser.<init>(XulRunnerBrowser.java:115)
at
org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor.<init>(XulRunnerEditor.java:129)
at
org.jboss.tools.vpe.editor.mozilla.XulRunnerEditor2.<init>(XulRunnerEditor2.java:23)
at
org.jboss.tools.vpe.editor.mozilla.MozillaEditor.createPartControl(MozillaEditor.java:531)
... 83 more
Hint: Maybe I'm missing some feature/plugin installed because tests are
not run with full JBT installed.
Any help is really appreciated.
Thank you, Vlado.
11 years, 1 month
Re: [jbosstools-dev] Extending the AS Server View
by Max Rydahl Andersen
looks like you forgot to cc the list.
>> The biggest issue we still got is the isolation of dmr.jar - as far as I can see you are putting dmr.jar into the core plugin. Doesn't this mean that when the core plugin actually calls into our as7 services that this dmr.jar content overshadows the dmr.jar found in as7 plugin ? (this becomes important/critical when we get into the situation we were in during as71 dev time - as70 jars didn't work with as71 jars…this specific issue is solved now but once as8 comes we can't be sure).
>
> I'm not aware of all details here but I'd doubt that this so "shadowing" would happen. So far the as service bundle would not expose dmr to the outside world and would only use the dmr within its bundle boundaries. I dont see why the internal implementation within the service bundle should get anything different than it's internal dmr bundle.
if that is true (AS7 service doesn't get affected by classes loaded by the callee) then having dmr.jar as external bundle for use by others for string creation will be ok - optimally we could just pass in a ModelNode but *then* we get the shadow problem, right ?
the passed in instance will be from dmrincore.jar and possibly not compatible with the dmrinservice.jar if I see it right.
>> Because of this we (Rob and I) was discussing if it would make more sense to repackage/rename dmr (i.e. with something like jarjar) and provide that as the way to create non-conflicting model node strings ? That for sure eliminates any problem of client jars overshadowing - but of course leaves a problem if as8 changes their dmr syntax….but I think that is unlikely. What can change is the actual operation/subsystem names in as8 but that is possible to abstract out in code much easier than abstracting out client jars. Another less "intrusive" approach was to put the dmr.jar into an org.jboss.tools.as.dmr bundle that exports the dmr.jar api directly - but I guess if having dmr.jar in .core overshadows then having it in an external plugin that clients uses will result in same problem ?
>
> I'd definitely opt for the dmr-version/bundle approach. That is what osgi was invented for. If using bundles definied requirements properly things should work perfectly well. I still dont see any potential for shadowing. Or what do I miss?
Well the left over problem is the day AS8 comes with some new api added to dmr.jar then either that dmr.jar should be backwards compatible or we need an as.dmr and as.dmr8 bundle - but then clients would have to choose which one.
But since we are relying on the string operations to be sane here then we *assume* we are fine. Worth verifying with the AS7 team.
/max
http://about.me/maxandersen
11 years, 1 month