Unable to run anything from Eclipse.

Bug #1800 reported by Vidar Braut Haarr on 2005-08-18
6
Affects Status Importance Assigned to Milestone
eclipse (Ubuntu)
Medium
Matthias Klose

Bug Description

Whenever I try to run any Java application from Eclipse, I get an error message in the Error Console. It happens even with a simple one-line application like this:

System.out.println(System.getProperty("java.fullversion"));

Please note I've had this bug as long as I can remember, and with several different Eclipse versions - I'm therefore inclined to think it's related to gcj, and not Eclipse.

System Details:
eclipse.buildId=I20050726-1222
java.fullversion=GNU libgcj 4.0.2 20050729 (prerelease) (Debian 4.0.1-4ubuntu1)
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=no_NO
Command-line arguments: -os linux -ws gtk -arch x86

Error Details:
gnu.xml.dom.ls.DomLSException: illegal XML character U+0
   at gnu.xml.dom.ls.DomLSParser.doParse(org.w3c.dom.ls.LSInput) (/usr/lib/libgcj.so.6.0.0)
   at gnu.xml.dom.ls.DomLSParser.parse(org.w3c.dom.ls.LSInput) (/usr/lib/libgcj.so.6.0.0)
   at gnu.xml.dom.DomDocumentBuilder.parse(org.xml.sax.InputSource) (/usr/lib/libgcj.so.6.0.0)
   at org.eclipse.debug.internal.core.LaunchManager.createInfoFromXML(java.io.InputStream) (Unknown Source)
   at org.eclipse.debug.internal.core.LaunchManager.getInfo(org.eclipse.debug.core.ILaunchConfiguration) (Unknown Source)
   at org.eclipse.debug.internal.core.LaunchConfiguration.getInfo() (Unknown Source)
   at org.eclipse.debug.internal.core.LaunchConfiguration.getType() (Unknown Source)
   at org.eclipse.debug.internal.core.LaunchManager.isValid(org.eclipse.debug.core.ILaunchConfiguration) (Unknown Source)
   at org.eclipse.debug.internal.core.LaunchManager.launchConfigurationChanged(org.eclipse.debug.core.ILaunchConfiguration) (Unknown Source)
   at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.writeNewFile() (Unknown Source)
   at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave0() (Unknown Source)
   at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave() (Unknown Source)
   at org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLaunchShortcut.createConfiguration(org.eclipse.jdt.core.IType) (Unknown Source)
   at org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLaunchShortcut.findLaunchConfiguration(org.eclipse.jdt.core.IType, java.lang.String) (Unknown Source)
   at org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLaunchShortcut.launch(org.eclipse.jdt.core.IType, java.lang.String) (Unknown Source)
   at org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLaunchShortcut.searchAndLaunch(java.lang.Object[], java.lang.String, boolean) (Unknown Source)
   at org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLaunchShortcut.launch(org.eclipse.jface.viewers.ISelection, java.lang.String) (Unknown Source)
   at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(org.eclipse.jface.viewers.ISelection, java.lang.String) (Unknown Source)
   at org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.run() (Unknown Source)
   at org.eclipse.jface.action.Action.runWithEvent(org.eclipse.swt.widgets.Event) (Unknown Source)
   at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(org.eclipse.swt.widgets.Event, boolean) (Unknown Source)
   at org.eclipse.jface.action.ActionContributionItem.access$2(org.eclipse.jface.action.ActionContributionItem, org.eclipse.swt.widgets.Event, boolean) (Unknown Source)
   at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(org.eclipse.swt.widgets.Event) (Unknown Source)
   at org.eclipse.swt.widgets.EventTable.sendEvent(org.eclipse.swt.widgets.Event) (Unknown Source)
   at org.eclipse.swt.widgets.Widget.sendEvent(org.eclipse.swt.widgets.Event) (Unknown Source)
   at org.eclipse.swt.widgets.Display.runDeferredEvents() (Unknown Source)
   at org.eclipse.swt.widgets.Display.readAndDispatch() (Unknown Source)
Caused by: org.xml.sax.SAXParseException@4152fa0
   at gnu.xml.aelfred2.SAXDriver.fatal(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
   at gnu.xml.aelfred2.XmlParser.error(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
   at gnu.xml.aelfred2.XmlParser.readCh() (/usr/lib/libgcj.so.6.0.0)
   at gnu.xml.aelfred2.XmlParser.skipWhitespace() (/usr/lib/libgcj.so.6.0.0)
   at gnu.xml.aelfred2.XmlParser.parseMisc() (/usr/lib/libgcj.so.6.0.0)
   at gnu.xml.aelfred2.XmlParser.parseProlog() (/usr/lib/libgcj.so.6.0.0)
   at gnu.xml.aelfred2.XmlParser.parseDocument() (/usr/lib/libgcj.so.6.0.0)
   at gnu.xml.aelfred2.XmlParser.doParse(java.lang.String, java.lang.String, java.io.Reader, java.io.InputStream, java.lang.String) (/usr/lib/libgcj.so.6.0.0)
   at gnu.xml.aelfred2.SAXDriver.parse(org.xml.sax.InputSource) (/usr/lib/libgcj.so.6.0.0)
   at gnu.xml.aelfred2.XmlReader.parse(org.xml.sax.InputSource) (/usr/lib/libgcj.so.6.0.0)
   at gnu.xml.dom.ls.DomLSParser.doParse(org.w3c.dom.ls.LSInput) (/usr/lib/libgcj.so.6.0.0)
   at gnu.xml.dom.ls.DomLSParser.parse(org.w3c.dom.ls.LSInput) (/usr/lib/libgcj.so.6.0.0)
   at gnu.xml.dom.DomDocumentBuilder.parse(org.xml.sax.InputSource) (/usr/lib/libgcj.so.6.0.0)
   at org.eclipse.debug.internal.core.LaunchManager.createInfoFromXML(java.io.InputStream) (Unknown Source)
   at org.eclipse.debug.internal.core.LaunchManager.getInfo(org.eclipse.debug.core.ILaunchConfiguration) (Unknown Source)
   at org.eclipse.debug.internal.core.LaunchConfiguration.getInfo() (Unknown Source)
   at org.eclipse.debug.internal.core.LaunchConfiguration.getType() (Unknown Source)
   at org.eclipse.debug.internal.core.LaunchManager.isValid(org.eclipse.debug.core.ILaunchConfiguration) (Unknown Source)
   at org.eclipse.debug.internal.core.LaunchManager.launchConfigurationChanged(org.eclipse.debug.core.ILaunchConfiguration) (Unknown Source)
   at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.writeNewFile() (Unknown Source)
   at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave0() (Unknown Source)
   at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave() (Unknown Source)
   at org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLaunchShortcut.createConfiguration(org.eclipse.jdt.core.IType) (Unknown Source)
   at org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLaunchShortcut.findLaunchConfiguration(org.eclipse.jdt.core.IType, java.lang.String) (Unknown Source)
   at org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLaunchShortcut.launch(org.eclipse.jdt.core.IType, java.lang.String) (Unknown Source)
   at org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLaunchShortcut.searchAndLaunch(java.lang.Object[], java.lang.String, boolean) (Unknown Source)
   at org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationLaunchShortcut.launch(org.eclipse.jface.viewers.ISelection, java.lang.String) (Unknown Source)
   at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(org.eclipse.jface.viewers.ISelection, java.lang.String) (Unknown Source)
   at org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.run() (Unknown Source)
   at org.eclipse.jface.action.Action.runWithEvent(org.eclipse.swt.widgets.Event) (Unknown Source)
   at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(org.eclipse.swt.widgets.Event, boolean) (Unknown Source)
   at org.eclipse.jface.action.ActionContributionItem.access$2(org.eclipse.jface.action.ActionContributionItem, org.eclipse.swt.widgets.Event, boolean) (Unknown Source)
   at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(org.eclipse.swt.widgets.Event) (Unknown Source)
   at org.eclipse.swt.widgets.EventTable.sendEvent(org.eclipse.swt.widgets.Event) (Unknown Source)
   at org.eclipse.swt.widgets.Widget.sendEvent(org.eclipse.swt.widgets.Event) (Unknown Source)

Changed in eclipse:
assignee: nobody → motu

I had a problem with gcj and eclipse also. It can be reproduced by installing gcj and eclipse and trying to checkout a CVS repository using SSH (extssh) like the ones on sourceforge when used by the developers. I have tryed to checkout two developer repositories from sourceforge.net and had the same problem. It threw NullPointer exceptions and did not check the files out.

Benjamin Montgomery (bmonty) wrote :

Does this problem occur with the 3.1-10ubuntu1 version of the Eclipse package?

I have no idea. When trying to upgrade to the latest Eclipse packages, I've gotten 4 different conflicts and errors about missing files here and there (I reinstalled my computer yesterday, so you might say this is a /relatively/ clean system, hence I'm pretty stunned that this should be possible.)

And when I finally get it installed (purging everything and manually editing postinst files so dpkg could actually --force-all purge without _ERRORS_ ...), it won't start.

java.lang.RuntimeException: No application id has been found.
   at org.eclipse.core.internal.runtime.PlatformActivator$1.run(java.lang.Object) (/usr/lib/eclipse/plugins.gcj/org.eclipse.core.runtime_3.1.0.jar.so)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(java.lang.Object) (/usr/lib/eclipse/plugins.gcj/org.eclipse.osgi_3.1.0.jar.so)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(java.lang.String[], java.lang.Runnable) (/usr/lib/eclipse/plugins.gcj/org.eclipse.osgi_3.1.0.jar.so)
   at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (/usr/lib/libgcj.so.6.0.0)
   at org.eclipse.core.launcher.Main.invokeFramework(java.lang.String[], java.net.URL[]) (/usr/lib/eclipse/plugins.gcj/org.eclipse.platform_3.1.0/startup.jar.so)
   at org.eclipse.core.launcher.Main.basicRun(java.lang.String[]) (/usr/lib/eclipse/plugins.gcj/org.eclipse.platform_3.1.0/startup.jar.so)
   at org.eclipse.core.launcher.Main.run(java.lang.String[]) (/usr/lib/eclipse/plugins.gcj/org.eclipse.platform_3.1.0/startup.jar.so)
   at org.eclipse.core.launcher.Main.main(java.lang.String[]) (/usr/lib/eclipse/plugins.gcj/org.eclipse.platform_3.1.0/startup.jar.so)
   at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
   at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)

Works now.

It seems I can't close my own bugs.

Matthias Klose (doko) on 2005-10-09
Changed in eclipse:
assignee: motu → doko
status: New → Fixed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers