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)
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.