2011-07-12 54 views
2

Eclipse每天嘗試創建新文件時都會給我一個錯誤。彈出一個窗口說XMLModelUpdater.changeStructuredDocumentRegion中的StackOverflowError

未處理的事件循環異常 java.lang.StackOverflowError的

,當我在日誌中開拓錯誤,它表明:

java.lang.StackOverflowError 
    at org.eclipse.wst.xml.core.internal.document.StructuredDocumentRegionProxy.setStructuredDocumentRegion(StructuredDocumentRegionProxy.java:338) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:423) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 
    at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) 

此外,在錯誤日誌,我看到一些標題「無法創建編輯器ID org.eclipse.jdt.ui.CompilationUnitEditor:該文件不存在。」 點擊,我得到:

org.eclipse.core.runtime.CoreException: The file does not exist. 
at org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:237) 
at org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112) 
at org.eclipse.ui.editors.text.TextFileDocumentProvider.createFileInfo(TextFileDocumentProvider.java:559) 
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.createFileInfo(CompilationUnitDocumentProvider.java:979) 
at org.eclipse.ui.editors.text.TextFileDocumentProvider.connect(TextFileDocumentProvider.java:478) 
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.connect(CompilationUnitDocumentProvider.java:1243) 
at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4213) 
at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:237) 
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1451) 
at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.internalDoSetInput(JavaEditor.java:2563) 
at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.doSetInput(JavaEditor.java:2536) 
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSetInput(CompilationUnitEditor.java:1395) 
at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3200) 
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464) 
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372) 
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759) 
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) 
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756) 
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2642) 
at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3218) 
at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3245) 
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:828) 
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647) 
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) 
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) 
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313) 
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180) 
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270) 
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65) 
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473) 
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245) 
at org.eclipse.ui.internal.PartStack.handleDeferredEvents(PartStack.java:1213) 
at org.eclipse.ui.internal.LayoutPart.deferUpdates(LayoutPart.java:400) 
at org.eclipse.ui.internal.PartSashContainer.handleDeferredEvents(PartSashContainer.java:1409) 
at org.eclipse.ui.internal.LayoutPart.deferUpdates(LayoutPart.java:400) 
at org.eclipse.ui.internal.WorkbenchPage.handleDeferredEvents(WorkbenchPage.java:1495) 
at org.eclipse.ui.internal.WorkbenchPage.deferUpdates(WorkbenchPage.java:1485) 
at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1459) 
at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1514) 
at org.eclipse.ui.internal.EditorPane.doHide(EditorPane.java:61) 
at org.eclipse.ui.internal.PartStack.close(PartStack.java:537) 
at org.eclipse.ui.internal.EditorStack.close(EditorStack.java:206) 
at org.eclipse.ui.internal.PartStack$1.close(PartStack.java:120) 
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:83) 
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:269) 
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:278) 
at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1) 
at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$1.closeButtonPressed(DefaultTabFolder.java:71) 
at org.eclipse.ui.internal.presentations.PaneFolder.notifyCloseListeners(PaneFolder.java:631) 
at org.eclipse.ui.internal.presentations.PaneFolder$3.close(PaneFolder.java:206) 
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1598) 
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:261) 
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) 
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) 
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) 
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) 
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) 
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) 
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) 
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) 
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) 
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) 
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) 
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 
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(Main.java:622) 
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) 
at org.eclipse.equinox.launcher.Main.run(Main.java:1410) 

,此外,每當我終於接近日食,我得到這個: http://img94.imageshack.us/img94/3204/eclipseerror.jpg

任何和所有幫助表示讚賞!謝謝。

回答

0

StackOverflowError幾乎總是由無限遞歸造成的。換句話說,一個錯誤。增加可用的堆空間不會修復它。

我已更新問題標題,以使知道此代碼的人更有可能看到並提供明確答案。缺席的是,你應該打開了一個錯誤:

https://bugs.eclipse.org/bugs/enter_bug.cgi?classification=WebTools

確保包括你使用的是什麼版本的Eclipse和導致的StackOverflowError什麼操作的信息。關注StackOverflowError,因爲第二個異常可能是由它引起的。當JVM由於超過堆棧深度限制而中止代碼時,會發生不好的事情。

+0

有一個XML問題。奇怪,因爲它是從Android開發站點直接複製的,但是在這個更新之間,問題已經解決。謝謝你的幫助。 – DefZep

+0

如果您仍然存在導致此問題的XML文件,並且可以在更新後重現該問題,請確保在上述URL中打開一個錯誤,並將該文件作爲附件。沒有XML文件應該導致StackOverflowError。 –

+0

是這樣做的細分市場。被複制的代碼有元素元素作爲,據我所知應該工作得很好,但無論什麼原因,在我的機器上導致eclipse出現問題。 – DefZep