Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » frequent StructuredDocumentRegionManagementException errors
frequent StructuredDocumentRegionManagementException errors [message #495990] Fri, 06 November 2009 22:27 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: November 2009
Junior Member
I am new to the forums and I hope this is the right place for this. If not, I apologize:

So I am creating a JEE/xforms app using Eclipse Galileo. I never had these problems in Ganymede, but I encountered this particular error about 24 times today alone and ever since I started using the software with increasing frequency.

I will be typing and then all of a sudden, the editor will just freeze up and will type maybe 1 character/5 seconds, sometimes finishing the whole word, most of the time not. I only have a few files in this project, and the page that it happens on is only like 1000 lines. I looked in the logs and found that:

!ENTRY org.eclipse.wst.xml.core 4 4 2009-11-06 12:58:37.998
!MESSAGE IStructuredDocumentRegion management failed.
!STACK 0
org.eclipse.wst.xml.core.internal.document.StructuredDocumen tRegionManagementException: IStructuredDocumentRegion management failed.


was showing up each time. Can anyone tell me what I can do to fix this? It is making Eclipse nigh unusable. It is also consuming a lot of my CPU when this happens (around 50% usually).

Thanks!

I am using WinXP SP2
Eclipse IDE for Java EE Developers
Version 1.2.1.20090918-0703
-Eclipse Platform -> 3.5.1.M20090917-800
-Java EE IDE Feature 1.2.1.20090918-0703
Also, I am not getting any kind of heap space or OOM errors.

Full Stack Trace:
ENTRY org.eclipse.wst.xml.core 4 4 2009-11-06 12:58:37.998
!MESSAGE IStructuredDocumentRegion management failed.
!STACK 0
org.eclipse.wst.xml.core.internal.document.StructuredDocumen tRegionManagementException: IStructuredDocumentRegion management failed.
at org.eclipse.wst.xml.core.internal.document.XMLModelParser.re moveStructuredDocumentRegion(XMLModelParser.java:2191)
at org.eclipse.wst.xml.core.internal.document.XMLModelParser.re moveStructuredDocumentRegion(XMLModelParser.java:2221)
at org.eclipse.wst.xml.core.internal.document.XMLModelParser.re moveStructuredDocumentRegion(XMLModelParser.java:2221)
at org.eclipse.wst.xml.core.internal.document.XMLModelParser.re moveStructuredDocumentRegion(XMLModelParser.java:2221)
at org.eclipse.wst.xml.core.internal.document.XMLModelParser.re placeStructuredDocumentRegions(XMLModelParser.java:2272)
at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.node sReplaced(DOMModelImpl.java:671)
at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocume nt._fireEvent(BasicStructuredDocument.java:596)
at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocume nt.fireStructuredDocumentEvent(BasicStructuredDocument.java: 1194)
at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocume nt.internalReplaceText(BasicStructuredDocument.java:1975)
at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocume nt.replaceText(BasicStructuredDocument.java:2415)
at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocume nt.replaceText(BasicStructuredDocument.java:2400)
at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocu ment.access$2(JobSafeStructuredDocument.java:1)
at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocu ment$3.run(JobSafeStructuredDocument.java:137)
at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(Editor ExecutionContext.java:147)
at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocu ment.replaceText(JobSafeStructuredDocument.java:144)
at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocume nt.replace(BasicStructuredDocument.java:2360)
at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocu ment.access$0(JobSafeStructuredDocument.java:1)
at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocu ment$1.run(JobSafeStructuredDocument.java:88)
at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(Editor ExecutionContext.java:147)
at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocu ment.replace(JobSafeStructuredDocument.java:95)
at org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRan ge(DefaultDocumentAdapter.java:248)
at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.j ava:6634)
at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.ja va:7442)
at org.eclipse.swt.custom.StyledText.doContent(StyledText.java: 2441)
at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java: 5814)
at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.j ava:5839)
at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.j ava:5541)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1040 )
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1036 )
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1368)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4053)
at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:346)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3946 )
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4589 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:24 10)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3471)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
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(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.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: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

[Updated on: Fri, 06 November 2009 22:29]

Report message to a moderator

Re: frequent StructuredDocumentRegionManagementException errors [message #496275 is a reply to message #495990] Mon, 09 November 2009 15:11 Go to previous messageGo to next message
Nick Sandonato is currently offline Nick SandonatoFriend
Messages: 126
Registered: July 2009
Senior Member
Hello,

Just from looking at your stacktrace, I cannot infer what exactly is leading up to this exception being thrown.

If you could, please open a defect at this URL https://bugs.eclipse.org/bugs/enter_bug.cgi?product=WTP%20So urce%20Editing

providing the steps to reproduce, maybe an example file (does this happen on more than one file) and the stacktrace.

Does closing and reopening the editor help after this exception first occurs?
Re: frequent StructuredDocumentRegionManagementException errors [message #496276 is a reply to message #496275] Mon, 09 November 2009 15:17 Go to previous message
No real name is currently offline No real nameFriend
Messages: 2
Registered: November 2009
Junior Member
OK, I will open up the defect at that link.

It happened again this morning shortly after I opened the editor, so I don't think closing and re-opening does much. The next time it occurs, I will close and re-open to try it again though.

Looking further at the logs, I am also seeing the following error along with the StructuredDocumentRegion management failed issues (neither errors are visible from the editor)

org.w3c.dom.DOMException:
at org.eclipse.wst.xml.core.internal.document.ElementImpl.inser tBefore(ElementImpl.java:696)
at org.eclipse.wst.xml.core.internal.document.XMLModelParser.in sertNode(XMLModelParser.java:1309)
at org.eclipse.wst.xml.core.internal.document.XMLModelParser.in sertNode(XMLModelParser.java:1283)
at org.eclipse.wst.xml.core.internal.document.XMLModelParser.in sertStartTag(XMLModelParser.java:1351)
at org.eclipse.wst.xml.core.internal.document.XMLModelParser.in sertStartTag(XMLModelParser.java:1443)
at org.eclipse.wst.xml.core.internal.document.XMLModelParser.in sertStructuredDocumentRegion(XMLModelParser.java:1453)
at org.eclipse.wst.xml.core.internal.document.XMLModelParser.re placeStructuredDocumentRegions(XMLModelParser.java:2287)
at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.inte rnalSetNewDocument(DOMModelImpl.java:595)
at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.setS tructuredDocument(DOMModelImpl.java:870)
at org.eclipse.wst.sse.core.internal.model.AbstractModelLoader. createModel(AbstractModelLoader.java:127)
at org.eclipse.wst.sse.core.internal.FileBufferModelManager.get Model(FileBufferModelManager.java:721)
at org.eclipse.wst.sse.core.internal.model.ModelManagerImpl._ge tModelFor(ModelManagerImpl.java:658)
at org.eclipse.wst.sse.core.internal.model.ModelManagerImpl.get ModelForEdit(ModelManagerImpl.java:1390)
at org.eclipse.wst.sse.ui.StructuredTextEditor.doSetInput(Struc turedTextEditor.java:1731)
at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(Abstract TextEditor.java:3115)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:372)
at org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:759)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:756)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2579)
at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(Ab stractTextEditor.java:3133)
at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTe xtEditor.java:3160)
at org.eclipse.wst.sse.ui.StructuredTextEditor.init(StructuredT extEditor.java:2321)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:798)
at org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:644)
at org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595)
at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:271)
at org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1417)
at org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:942)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$28.runWithException(Workbe nch.java:1384)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
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(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.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: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

[Updated on: Mon, 09 November 2009 15:17]

Report message to a moderator

Previous Topic:how to reference to a utility module from ejb module?
Next Topic:HTML auto-indent not working
Goto Forum:
  


Current Time: Thu Dec 18 21:54:36 GMT 2014

Powered by FUDForum. Page generated in 0.01977 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software