When opening AntView with certain build.xml files a window
popups saying:
"Unable to create part:
AntView"
Clicking OK opens AntView with this message
in red:
"An error has occurred when creating this
view"
Adjunted is a build.xml files that produces this
error.
And another that does not produce this error on this
system:
Win2K J2SDK1.4.1 Eclipse2.0.1 Ant1.5
XDoclet1.1.2
Eclipse log file excerpt:
!ENTRY
org.eclipse.ui 4 2 sep 29, 2002 04:53:28.938
!MESSAGE
Problems occurred when invoking code from plug-in:
"org.eclipse.ui".
!STACK
0
java.lang.IllegalArgumentException: Argument not
valid
at
org.eclipse.swt.SWT.error(SWT.java:2105)
at
org.eclipse.swt.SWT.error(SWT.java:2051)
at
org.eclipse.swt.widgets.Widget.error(Widget.java:370)
at
org.eclipse.swt.widgets.Item.setImage(Item.java:155)
at
org.eclipse.swt.widgets.TreeItem.setImage(TreeItem.java:653)
at
org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:85)
at
org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:354)
at
org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:1136)
at
org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:258)
at
org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:243)
at
org.eclipse.jface.viewers.AbstractTreeViewer$2.run(AbstractTreeViewer.java:646)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:688)
at
org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:638)
at
org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:234)
at
org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:875)
at
com.r2tech.eclipse.antview.views.AntView.createPartControl(AntView.java:72)
at
org.eclipse.ui.internal.PartPane$4.run(PartPane.java:136)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:839)
at
org.eclipse.core.runtime.Platform.run(Platform.java:416)
at
org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:134)
at
org.eclipse.ui.internal.PartPane.createControl(PartPane.java:178)
at
org.eclipse.ui.internal.ViewPane.createControl(ViewPane.java:181)
at
org.eclipse.ui.internal.PartTabFolder.createPartTab(PartTabFolder.java:249)
at
org.eclipse.ui.internal.PartTabFolder.replaceChild(PartTabFolder.java:685)
at
org.eclipse.ui.internal.PartTabFolder.replace(PartTabFolder.java:625)
at
org.eclipse.ui.internal.PerspectivePresentation.addPart(PerspectivePresentation.java:188)
at
org.eclipse.ui.internal.Perspective.showView(Perspective.java:1334)
at
org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:559)
at
org.eclipse.ui.internal.WorkbenchPage.access$7(WorkbenchPage.java:541)
at
org.eclipse.ui.internal.WorkbenchPage$12.run(WorkbenchPage.java:2306)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:66)
at
org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:2303)
at
org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:2293)
at
org.eclipse.ui.internal.ShowViewAction.run(ShowViewAction.java:41)
at
org.eclipse.jface.action.Action.runWithEvent(Action.java:749)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:407)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:361)
at
org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:352)
at
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:47)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1529)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1291)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1256)
at
org.eclipse.ui.internal.Workbench.run(Workbench.java:1239)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:775)
at
org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
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:247)
at
org.eclipse.core.launcher.Main.run(Main.java:703)
at
org.eclipse.core.launcher.Main.main(Main.java:539)
A buildfile that produces the error and one that doesn't
Logged In: YES
user_id=398209
Please try release 2.2.8 and let me know if your problem is
resolved
Logged In: YES
user_id=498187
I too get the error "An error has occurred when creating this
view". This is with version 2.2.8. The same build file worked
fine with the previous version.
Heres the error i got:
!MESSAGE Problems occurred when invoking code from plug-
in: "org.eclipse.ui".
!STACK 0
java.lang.NoClassDefFoundError:
org/xml/sax/SAXParseException
at
com.r2tech.eclipse.antview.views.AntView.createPartControl
(AntView.java:66)
at org.eclipse.ui.internal.PartPane$4.run
(PartPane.java:136)
at
org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:839)
at org.eclipse.core.runtime.Platform.run
(Platform.java:416)
at
org.eclipse.ui.internal.PartPane.createChildControl
(PartPane.java:134)
at org.eclipse.ui.internal.PartPane.createControl
(PartPane.java:178)
at org.eclipse.ui.internal.ViewPane.createControl
(ViewPane.java:181)
at
org.eclipse.ui.internal.PartTabFolder.createPartTab
(PartTabFolder.java:249)
at
org.eclipse.ui.internal.PartTabFolder.replaceChild
(PartTabFolder.java:685)
at org.eclipse.ui.internal.PartTabFolder.replace
(PartTabFolder.java:625)
at
org.eclipse.ui.internal.PerspectivePresentation.addPart
(PerspectivePresentation.java:188)
at org.eclipse.ui.internal.Perspective.showView
(Perspective.java:1334)
at
org.eclipse.ui.internal.WorkbenchPage.busyShowView
(WorkbenchPage.java:559)
at
org.eclipse.ui.internal.WorkbenchPage.access$7
(WorkbenchPage.java:541)
at org.eclipse.ui.internal.WorkbenchPage$12.run
(WorkbenchPage.java:2306)
at
org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:66)
at
org.eclipse.ui.internal.WorkbenchPage.showView
(WorkbenchPage.java:2303)
at
org.eclipse.ui.internal.WorkbenchPage.showView
(WorkbenchPage.java:2293)
at org.eclipse.ui.internal.ShowViewAction.run
(ShowViewAction.java:41)
at org.eclipse.jface.action.Action.runWithEvent
(Action.java:749)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetS
election(ActionContributionItem.java:407)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetE
vent(ActionContributionItem.java:361)
at
org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:352)
at
org.eclipse.jface.action.ActionContributionItem$ActionListener
.handleEvent(ActionContributionItem.java:47)
at org.eclipse.swt.widgets.EventTable.sendEvent
(EventTable.java:77)
at org.eclipse.swt.widgets.Widget.sendEvent
(Widget.java:827)
at
org.eclipse.swt.widgets.Display.runDeferredEvents
(Display.java:1529)
at
org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:1291)
at org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java:1256)
at org.eclipse.ui.internal.Workbench.run
(Workbench.java:1239)
at
org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:775)
at org.eclipse.core.boot.BootLoader.run
(BootLoader.java:462)
at java.lang.reflect.Method.invoke(Native Method)
at org.eclipse.core.launcher.Main.basicRun
(Main.java:247)
at org.eclipse.core.launcher.Main.run
(Main.java:703)
at org.eclipse.core.launcher.Main.main
(Main.java:539)
Logged In: YES
user_id=398209
No response.