查看 xml 个文件时 Eclipse 出现奇怪的错误
Strange error in Eclipse when viewing xml files
使用 XML 编辑器打开 xml 文件时,我在 IBM RAD 中遇到以下错误:
An error has occurred. See error log for more details.
Aborted cyclic load attempt for model with id: /Example/src/com/example/resources/example-config.xml
打开错误日志显示同一错误的多个实例:Unhandled event loop exception
查看错误有以下堆栈跟踪:
java.lang.NullPointerException
at org.eclipse.swt.custom.CTabFolder.getItem(Unknown Source)
at org.eclipse.swt.custom.CTabFolder._getToolTip(Unknown Source)
at org.eclipse.swt.custom.CTabFolder._setToolTipText(Unknown Source)
at org.eclipse.swt.custom.CTabFolder.onMouse(Unknown Source)
at org.eclipse.swt.custom.CTabFolder.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
at org.eclipse.ui.internal.Workbench.access(Unknown Source)
at org.eclipse.ui.internal.Workbench.run(Unknown Source)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Unknown Source)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
at org.eclipse.equinox.launcher.Main.run(Unknown Source)
at org.eclipse.equinox.launcher.Main.main(Unknown Source)
和以下会话数据:
eclipse.buildId=unknown
java.fullversion=JRE 1.6.0 IBM J9 2.4 Windows 7 x86-32 jvmwi3260sr11-20120801_118201 (JIT enabled, AOT enabled)
J9VM - 20120801_118201
JIT - r9_20120608_24176ifx1
GC - 20120516_AA
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product com.ibm.rational.rad.product.v80.ide
Command-line arguments: -os win32 -ws win32 -arch x86 -product com.ibm.rational.rad.product.v80.ide`
我还看到了原始中止循环加载尝试错误的记录,其中包含堆栈跟踪:
org.eclipse.core.runtime.OperationCanceledException: Aborted cyclic load attempt for model with id: /Example/src/com/prototype/resources/example-config.xml
at org.eclipse.wst.sse.core.internal.model.ModelManagerImpl$SharedObject.loop(Unknown Source)
at org.eclipse.wst.sse.core.internal.model.ModelManagerImpl$SharedObject.waitForLoadAttempt(Unknown Source)
at org.eclipse.wst.sse.core.internal.model.ModelManagerImpl.getExistingModel(Unknown Source)
at org.eclipse.wst.sse.core.internal.model.ModelManagerImpl.getExistingModelForRead(Unknown Source)
at org.eclipse.wst.xml.ui.internal.tabletree.XMLTableTreeViewer.setDocument(Unknown Source)
at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.disconnectDesignPage(Unknown Source)
at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.dispose(Unknown Source)
at org.eclipse.ui.internal.EditorReference.createPartHelper(Unknown Source)
at org.eclipse.ui.internal.EditorReference.createPart(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Unknown Source)
at org.eclipse.ui.internal.PartPane.setVisible(Unknown Source)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(Unknown Source)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(Unknown Source)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(Unknown Source)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(Unknown Source)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(Unknown Source)
at org.eclipse.ui.internal.PartStack.setSelection(Unknown Source)
at org.eclipse.ui.internal.PartStack.showPart(Unknown Source)
at org.eclipse.ui.internal.PartStack.add(Unknown Source)
at org.eclipse.ui.internal.EditorStack.add(Unknown Source)
at org.eclipse.ui.internal.PartStack.add(Unknown Source)
at org.eclipse.ui.internal.EditorStack.add(Unknown Source)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(Unknown Source)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(Unknown Source)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(Unknown Source)
at org.eclipse.ui.internal.EditorManager.createEditorTab(Unknown Source)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(Unknown Source)
at org.eclipse.ui.internal.EditorManager.openEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.access(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.run(Unknown Source)
at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(Unknown Source)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(Unknown Source)
at org.eclipse.ui.actions.OpenWithMenu.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
at org.eclipse.ui.internal.Workbench.access(Unknown Source)
at org.eclipse.ui.internal.Workbench.run(Unknown Source)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Unknown Source)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
at org.eclipse.equinox.launcher.Main.run(Unknown Source)
at org.eclipse.equinox.launcher.Main.main(Unknown Source)
我正在使用 IBM RAD v 8.0.4.2,它使用 Eclipse 3.6.2。
我希望这是一个简单的配置问题,我不需要重新安装,因为我在公司环境中工作并且获取软件 installed/re-installed 很痛苦。
斯佩茨
此错误与 Eclipse 中的此错误相似
https://bugs.eclipse.org/bugs/show_bug.cgi?id=332238
它已在 Eclipse WTP 3.3.2 中修复,但 RAD 8.0.x 使用 WTP 3.2.5。我的建议是,如果可能的话,至少升级到 8.5,否则您将需要联系 IBM 支持
http://www-01.ibm.com/software/rational/support/contact.html
希望对您有所帮助
使用 XML 编辑器打开 xml 文件时,我在 IBM RAD 中遇到以下错误:
An error has occurred. See error log for more details.
Aborted cyclic load attempt for model with id: /Example/src/com/example/resources/example-config.xml
打开错误日志显示同一错误的多个实例:Unhandled event loop exception
查看错误有以下堆栈跟踪:
java.lang.NullPointerException
at org.eclipse.swt.custom.CTabFolder.getItem(Unknown Source)
at org.eclipse.swt.custom.CTabFolder._getToolTip(Unknown Source)
at org.eclipse.swt.custom.CTabFolder._setToolTipText(Unknown Source)
at org.eclipse.swt.custom.CTabFolder.onMouse(Unknown Source)
at org.eclipse.swt.custom.CTabFolder.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
at org.eclipse.ui.internal.Workbench.access(Unknown Source)
at org.eclipse.ui.internal.Workbench.run(Unknown Source)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Unknown Source)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
at org.eclipse.equinox.launcher.Main.run(Unknown Source)
at org.eclipse.equinox.launcher.Main.main(Unknown Source)
和以下会话数据:
eclipse.buildId=unknown
java.fullversion=JRE 1.6.0 IBM J9 2.4 Windows 7 x86-32 jvmwi3260sr11-20120801_118201 (JIT enabled, AOT enabled)
J9VM - 20120801_118201
JIT - r9_20120608_24176ifx1
GC - 20120516_AA
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product com.ibm.rational.rad.product.v80.ide
Command-line arguments: -os win32 -ws win32 -arch x86 -product com.ibm.rational.rad.product.v80.ide`
我还看到了原始中止循环加载尝试错误的记录,其中包含堆栈跟踪:
org.eclipse.core.runtime.OperationCanceledException: Aborted cyclic load attempt for model with id: /Example/src/com/prototype/resources/example-config.xml
at org.eclipse.wst.sse.core.internal.model.ModelManagerImpl$SharedObject.loop(Unknown Source)
at org.eclipse.wst.sse.core.internal.model.ModelManagerImpl$SharedObject.waitForLoadAttempt(Unknown Source)
at org.eclipse.wst.sse.core.internal.model.ModelManagerImpl.getExistingModel(Unknown Source)
at org.eclipse.wst.sse.core.internal.model.ModelManagerImpl.getExistingModelForRead(Unknown Source)
at org.eclipse.wst.xml.ui.internal.tabletree.XMLTableTreeViewer.setDocument(Unknown Source)
at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.disconnectDesignPage(Unknown Source)
at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.dispose(Unknown Source)
at org.eclipse.ui.internal.EditorReference.createPartHelper(Unknown Source)
at org.eclipse.ui.internal.EditorReference.createPart(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Unknown Source)
at org.eclipse.ui.internal.PartPane.setVisible(Unknown Source)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(Unknown Source)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(Unknown Source)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(Unknown Source)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(Unknown Source)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(Unknown Source)
at org.eclipse.ui.internal.PartStack.setSelection(Unknown Source)
at org.eclipse.ui.internal.PartStack.showPart(Unknown Source)
at org.eclipse.ui.internal.PartStack.add(Unknown Source)
at org.eclipse.ui.internal.EditorStack.add(Unknown Source)
at org.eclipse.ui.internal.PartStack.add(Unknown Source)
at org.eclipse.ui.internal.EditorStack.add(Unknown Source)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(Unknown Source)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(Unknown Source)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(Unknown Source)
at org.eclipse.ui.internal.EditorManager.createEditorTab(Unknown Source)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(Unknown Source)
at org.eclipse.ui.internal.EditorManager.openEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.access(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.run(Unknown Source)
at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(Unknown Source)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(Unknown Source)
at org.eclipse.ui.actions.OpenWithMenu.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
at org.eclipse.ui.internal.Workbench.access(Unknown Source)
at org.eclipse.ui.internal.Workbench.run(Unknown Source)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Unknown Source)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
at org.eclipse.equinox.launcher.Main.run(Unknown Source)
at org.eclipse.equinox.launcher.Main.main(Unknown Source)
我正在使用 IBM RAD v 8.0.4.2,它使用 Eclipse 3.6.2。
我希望这是一个简单的配置问题,我不需要重新安装,因为我在公司环境中工作并且获取软件 installed/re-installed 很痛苦。
斯佩茨
此错误与 Eclipse 中的此错误相似
https://bugs.eclipse.org/bugs/show_bug.cgi?id=332238
它已在 Eclipse WTP 3.3.2 中修复,但 RAD 8.0.x 使用 WTP 3.2.5。我的建议是,如果可能的话,至少升级到 8.5,否则您将需要联系 IBM 支持
http://www-01.ibm.com/software/rational/support/contact.html
希望对您有所帮助