Error editing build.xml files with Ant Editor in Eclipse

Having trouble installing Oxygen? Got a bug to report? Post it all here.
bkbonner
Posts: 10
Joined: Fri Jan 23, 2004 7:40 pm

Error editing build.xml files with Ant Editor in Eclipse

Post by bkbonner »

Here's the message from the log file. Any ideas.

Config Details comes up blank (weird). I also have XMLBuddy installed. I'll try uninstalling it.

Code: Select all


!ENTRY org.eclipse.ui.workbench 4 2 Jan 23, 2004 10:27:07.803
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.ClassCastException
at org.apache.xerces.parsers.SAXParser.<init>(SAXParser.java:95)
at org.eclipse.ui.externaltools.internal.ant.dtd.Parser.parse(Parser.java:67)
at org.eclipse.ui.externaltools.internal.ant.dtd.Parser.parseDTD(Parser.java:144)
at org.eclipse.ui.externaltools.internal.ant.editor.PlantyCompletionProcessor.parseDtd(PlantyCompletionProcessor.java:256)
at org.eclipse.ui.externaltools.internal.ant.editor.PlantyCompletionProcessor.<init>(PlantyCompletionProcessor.java:240)
at org.eclipse.ui.externaltools.internal.ant.editor.PlantySourceViewerConfiguration.getContentAssistant(PlantySourceViewerConfiguration.java:74)
at org.eclipse.jface.text.source.SourceViewer.configure(SourceViewer.java:249)
at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:1960)
at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
at org.eclipse.ui.editors.text.TextEditor.createPartControl(TextEditor.java:746)
at org.eclipse.ui.internal.PartPane$4.run(PartPane.java:141)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:889)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:137)
at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:186)
at org.eclipse.ui.internal.EditorWorkbook.createPage(EditorWorkbook.java:387)
at org.eclipse.ui.internal.EditorWorkbook.add(EditorWorkbook.java:123)
at org.eclipse.ui.internal.EditorArea.addEditor(EditorArea.java:55)
at org.eclipse.ui.internal.EditorPresentation.openEditor(EditorPresentation.java:351)
at org.eclipse.ui.internal.EditorManager$2.run(EditorManager.java:585)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:574)
at org.eclipse.ui.internal.EditorManager.openInternalEditor(EditorManager.java:668)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:459)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:431)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2054)
at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage.java:2004)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:1991)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1986)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1879)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:237)
at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:231)
at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:155)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1838)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1545)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:845)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
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:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
-- Brian
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

Please let us know more details. For instance the Eclipse version and the operating system.

Best Regards,
George
bkbonner
Posts: 10
Joined: Fri Jan 23, 2004 7:40 pm

Sorry 'bout that

Post by bkbonner »

I'm running on Win2K SP 4. Eclipse 2.1.0 Build 200303272130.

I'm using Sun JDK 1.4.2.

I have a variety of plugins installed,
  • Sysdeo Tomcat
    JBoss XDoclet
    XML Buddy
    JFaceDBC
    Vaultec Velocity
    CodeRally
    Iron and Steel Profiler
    Omondo UML
    Hibernator
Thanks.[/list]
-- Brian
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

From your initial message it seems a Xerces conflict. One thing you can try is to put the Xerces 2.6.0 jars (the latest Xerces version that cames with oXygen) in the endorsed directory, see http://www.oxygenxml.com/download.html#eclipse for more details about this.

Best Regards,
George
bkbonner
Posts: 10
Joined: Fri Jan 23, 2004 7:40 pm

Thanks

Post by bkbonner »

I'll give it a shot and let you know.
-- Brian
jlweb58
Posts: 8
Joined: Fri Feb 06, 2004 3:50 pm
Location: Munich, Germany

Post by jlweb58 »

I have a similar problem with oXygen 3.1 and Eclipse 2.1.1, running on SuSE 8.2, j2sdk 1.4.2_03. I'm also using the XML Buddy plugin. In addition to the problems with Ant, I get a problem when I open a closed project. Here's the stack trace:

!ENTRY org.eclipse.core.resources 4 368 Feb 06, 2004 13:26:10.29
!MESSAGE Resource /common_util does not exist.
!ENTRY org.eclipse.jface 4 2 Feb 06, 2004 13:28:10.611
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
at org.eclipse.core.internal.resources.Project.getDescription(Project.java:297)
at org.eclipse.ui.actions.BuildAction.hasBuilder(BuildAction.java:138)
at org.eclipse.ui.actions.BuildAction.getProjectsToBuild(BuildAction.java:120)
at org.eclipse.ui.actions.BuildAction.updateSelection(BuildAction.java:269)
at org.eclipse.ui.actions.SelectionListenerAction.selectionChanged(SelectionListenerAction.java:208)
at org.eclipse.ui.actions.SelectionListenerAction.selectionChanged(SelectionListenerAction.java:221)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:159)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:157)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:1290)
at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1020)
at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:362)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart.projectStateChanged(PackageExplorerPart.java:1198)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider$6.run(PackageExplorerContentProvider.java:601)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider$7.run(PackageExplorerContentProvider.java:611)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:98)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1936)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1727)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
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:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)


If I delete the oXygen plugin directory and restart Eclipse everything works again. Any ideas?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Did you try to put the Xerces jars that come with <oXygen/> in the endorsed directory (usually <home-dir-of-JRE-running-Eclipse>\lib\endorsed) ?
jlweb58
Posts: 8
Joined: Fri Feb 06, 2004 3:50 pm
Location: Munich, Germany

Post by jlweb58 »

Haven't tried that yet -- I'm usually leery about putting 3rd party jars in that directory, since I prefer to control my classpaths explicitly. I'll let you know if I find the time to try it later.
jlweb58
Posts: 8
Joined: Fri Feb 06, 2004 3:50 pm
Location: Munich, Germany

Post by jlweb58 »

The answer seems to be that XML Buddy conflicts with oXygen - it also uses
xerces. Copying the xerces jars to $JRE/lib/ext causes Eclipse to be unable
to start at all, until XML Buddy is deleted. The Eclipse log reveals the following stack trace:

!SESSION ----------------------------------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 Feb 06, 2004 15:26:07.701
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ExceptionInInitializerError
at org.eclipse.core.internal.plugins.RegistryLoader.processManifestFile(RegistryLoader.java:89)
at org.eclipse.core.internal.plugins.RegistryLoader.processPluginPathFile(RegistryLoader.java:136)
at org.eclipse.core.internal.plugins.RegistryLoader.processPluginPathEntry(RegistryLoader.java:127)
at org.eclipse.core.internal.plugins.RegistryLoader.processManifestFiles(RegistryLoader.java:104)
at org.eclipse.core.internal.plugins.RegistryLoader.parseRegistry(RegistryLoader.java:63)
at org.eclipse.core.internal.plugins.RegistryLoader.parseRegistry(RegistryLoader.java:71)
at org.eclipse.core.internal.runtime.InternalPlatform.parsePlugins(InternalPlatform.java:890)
at org.eclipse.core.internal.runtime.InternalPlatform.loadRegistry(InternalPlatform.java:834)
at org.eclipse.core.internal.runtime.InternalPlatform.loaderStartup(InternalPlatform.java:684)
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:324)
at org.eclipse.core.internal.boot.InternalBootLoader.startup(InternalBootLoader.java:1040)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:838)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
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:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
Caused by: java.lang.ClassCastException
at org.apache.xerces.parsers.SAXParser.<init>(SAXParser.java:95)
at org.eclipse.core.internal.plugins.PluginParser.initializeParser(PluginParser.java:80)
at org.eclipse.core.internal.plugins.PluginParser.<clinit>(PluginParser.java:44)
... 23 more

Without XML Buddy in the system oXygen seems not to cause the side effects
mentioned. above.
Post Reply