For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 9 replies, 3 voices, and was last updated 18 years, 8 months ago by
Scott Anderson.
-
AuthorPosts
-
napgsMemberWhenever I work with files that are opened with the Ant Editor, I get an error at some point. Usually I can open a build.xml file the first time, but if I close and attempt to re-open the same file, the error documented below occurs. From that point forward, it’s also impossible to open any other file with the Ant Editor. The problem resolves itself temporarily by completely shutting down the IDE and re-starting it. But again, it comes back again after a short time of opening and closing ant files.
I had previously never encountered this problem until after I updated to 5.1.1 GA from 5.1.0 GA (running on RH Ent3 Linux). Before this update, I’d been using Eclipse/MyEclipse for 2-3 months without any issues.
I finally ended up completely removing MyEclipse and Eclipse itself, and re-installing everything from scratch. This didn’t fix the problem.
Any help would be greatly appreciated.
Here’s the error:
——————————-
Unable to create this part due to an internal error. Reason for the failure: org.apache.xerces.parsers.XIncludeAwareParserConfiguration
java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration
at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
at org.apache.tools.ant.util.JAXPUtils.newSAXParser(JAXPUtils.java:205)
at org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:163)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:193)
at org.apache.tools.ant.helper.ProjectHelper2.parseUnknownElement(ProjectHelper2.java:88)
at org.apache.tools.ant.taskdefs.Antlib.createAntlib(Antlib.java:75)
at org.apache.tools.ant.taskdefs.Definer.loadAntlib(Definer.java:327)
at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:236)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.eclipse.ant.internal.ui.model.AntDefiningTaskNode.configure(AntDefiningTaskNode.java:86)
at org.eclipse.ant.internal.ui.model.AntModel.resolveBuildfile(AntModel.java:501)
at org.eclipse.ant.internal.ui.model.AntModel.parseDocument(AntModel.java:326)
at org.eclipse.ant.internal.ui.model.AntModel.reconcile(AntModel.java:263)
at org.eclipse.ant.internal.ui.model.AntModel.getProjectNode(AntModel.java:1383)
at org.eclipse.ant.internal.ui.model.AntModel.getProjectNode(AntModel.java:1393)
at org.eclipse.ant.internal.ui.editor.text.AntFoldingStructureProvider.updateFoldingRegions(AntFoldingStructureProvider.java:88)
at org.eclipse.ant.internal.ui.editor.AntEditor.projectionEnabled(AntEditor.java:1370)
at org.eclipse.jface.text.source.projection.ProjectionViewer.fireProjectionEnabled(ProjectionViewer.java:481)
at org.eclipse.jface.text.source.projection.ProjectionViewer.enableProjection(ProjectionViewer.java:529)
at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1429)
at org.eclipse.ant.internal.ui.editor.AntEditor$StatusLineSourceViewer.doOperation(AntEditor.java:302)
at org.eclipse.ant.internal.ui.editor.AntEditor.createPartControl(AntEditor.java:1103)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:290)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1144)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1097)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1311)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:455)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:102)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:441)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:111)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:822)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:721)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:682)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2593)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528)
at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2500)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2485)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:98)
at org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:98)
at org.eclipse.cdt.internal.ui.cview.OpenFileGroup.runDefaultAction(OpenFileGroup.java:147)
at org.eclipse.cdt.internal.ui.cview.MainActionGroup.runDefaultAction(MainActionGroup.java:265)
at org.eclipse.cdt.internal.ui.cview.CView.handleOpen(CView.java:246)
at org.eclipse.cdt.internal.ui.cview.CView$10.open(CView.java:511)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:817)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:815)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1069)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1168)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:249)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:243)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:283)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2856)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)May 11, 2007 at 10:37 am #269970
Riyad KallaMemberHmm very strange. If this is reproducable every time, try and create a new workspace: File > Switch Workspace, and then test an Ant script in the new workspace and see if it keeps happening.
Also did your JVM that you are using to run MyEclipse change at all? Make sure you are using the Sun JRE and not GCJ, Harmony or IBM’s JRE/JDK.
May 14, 2007 at 12:58 pm #270058
napgsMemberYes, it is reproducible. I just followed your advice and created a new workspace. The same error occurred running the ant script.
We are using the Sun JRE 1.5 update 11 and have been for several months now.
May 14, 2007 at 2:40 pm #270063
Riyad KallaMemberCan you share this Ant script with me? Could you PM it to me, and include a link to this post for reference? I’ll see if I can reproduce the issue on my end.
May 16, 2007 at 6:05 pm #270189
napgsMemberI think I’ve fixed the problem. It had to do with how I was using <taskdef> to access a custom task I had written.
I tried following the examples in the Ant documentation and what other task libraries had done, but apparently the Ant editor is very finicky about how you state things and the documentation might not be telling you everything you need to know.
Syntactically it won’t mind the first time, but the second time you try and open the file with the suspect <taskdef> declared, it bugs out with the error message.
I basically just kept trying slightly different ways of using <taskdef> with my antlib.xml file until one of them worked.
May 16, 2007 at 8:04 pm #270196
Riyad KallaMemberStrange… Allen could you post how you fixed it incase anyone else runs into this issue?
May 17, 2007 at 4:34 pm #270275
napgsMemberARGH!!!!
I haven’t quite fixed the problem yet. I’m getting the error again.
But I know it’s that custom task JAR of mine that’s causing it. Even after the Ant editor chokes, it will still open Ant files that do not touch that custom task with a <taskdef>.
This problem is not a part of MyEclipse. I replicated it using base Eclipse v3.2.1 as well.
But I will post the solution when I finally figure out what I’m doing wrong.
May 17, 2007 at 4:46 pm #270276
Riyad KallaMemberThanks for keeping us posted… did you try searching the Eclipse bugs to see if it’s already reported? (sometimes they offer workarounds or better yet, plugin patches)
https://bugs.eclipse.org/bugs/query.cgi?format=advancedJuly 13, 2007 at 9:50 am #272696
napgsMemberI finally did track down this bug. It’s referenced in two places:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=152793
http://issues.apache.org/bugzilla/show_bug.cgi?id=42208
So far it looks like the Ant project team has the ball on this one.
July 13, 2007 at 4:47 pm #272709
Scott AndersonParticipantThanks for the followup information. We appreciate it!
-
AuthorPosts
