1 Reply Latest reply on Aug 7, 2008 7:07 AM by Max Rydahl Andersen

    error when trying to open jboss tools html editor

    Amir Lidor Newbie

      Hi,
      I'm using latest jboss tools with proper eclipse (3.3.2) JEE version.
      When trying to open an xhtml file i get the following error on one of my linux machines (other one works just fine):
      !SESSION 2008-08-06 16:00:06.958 -----------------------------------------------
      eclipse.buildId=M20080221-1800
      java.version=1.6.0_03
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
      Command-line arguments: -os linux -ws gtk -arch x86 -data /emc/romt/workspace/jbosside

      !ENTRY org.eclipse.ui 4 0 2008-08-06 16:01:48.921
      !MESSAGE Unhandled event loop exception
      !STACK 0
      java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
      at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
      at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)
      at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:131)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
      at org.jboss.tools.vpe.editor.toolbar.format.TextFormattingToolBar.createItems(TextFormattingToolBar.java:106)
      at org.jboss.tools.vpe.editor.toolbar.SplitToolBar.createToolBarControl(SplitToolBar.java:36)
      at org.jboss.tools.vpe.editor.toolbar.VpeToolBarManager.addToolBar(VpeToolBarManager.java:86)
      at org.jboss.tools.vpe.editor.mozilla.MozillaEditor.createPartControl(MozillaEditor.java:158)
      at org.jboss.tools.vpe.editor.VpeEditorPart.createVisualEditor(VpeEditorPart.java:753)
      at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor.pageChange(JSPMultiPageEditor.java:212)
      at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor.createPages(JSPMultiPageEditor.java:411)
      at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditorPart.createPartControl(JSPMultiPageEditorPart.java:125)
      at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
      at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
      at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
      at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:263)
      at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2739)
      at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651)
      at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643)
      at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
      at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590)
      at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574)
      at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2565)
      at org.eclipse.ui.ide.IDE.openEditor(IDE.java:644)
      at org.eclipse.ui.ide.IDE.openEditor(IDE.java:603)
      at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:286)
      at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:139)
      at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:194)
      at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:175)
      at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:268)
      at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:244)
      at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:316)
      at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$5.open(PackageExplorerPart.java:613)
      at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      at org.eclipse.core.runtime.Platform.run(Platform.java:857)
      at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
      at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818)
      at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079)
      at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1183)
      at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:263)
      at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:257)
      at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:297)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
      at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
      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:508)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
      at org.eclipse.equinox.launcher.Main.main(Main.java:1148)


      All other X apps works just fine... tried changing the DISPLAY environment - no luck...
      Also tried running the eclipse with the -Djava.awt.headless=true also no luck...

      Help would be appreciated as next step is to move to windows! :-)
      Thanks!