in short: check out if the bold sections below may save your day :-)
(This answer may help but the source problem is still not found. I'll update my findings if satisfyingly solved.)
<updates...>
update: It just happened again and occurred on dragging/positioning of one XML file (Tomcats content.xml) underneath all other files. (Opened by "XML Editor": Provider: Eclipse Web Tools Platform
, Plug-in Name: XML editor
, Version: 1.0.700.v201005192212
, Plug-in Id: org.eclipse.wst.xmleditor.doc.user
)
update2: On further looking into it the error disappears when I move the editor back to the other files (all open editors in one area). Furthermore it appears only when entering or leaving this XML editor, not on e.g. making changes to it and saving it via CRTL+S. Other than that the JBoss-related exception from below occurs on the CTRL+S event, but independent of this issue (so it may not be related at all).
update3: Getting even closer: since some time there has been a new editor positioning feature around. (Initially I was a bit confused, but now I am getting the point and even visually can see what is meant and what makes the difference...).
So there are two ways to position editors vertically or horizontally next to other editors:
- positioning it inside the same "panel" (indicated by a global and two inner panels/borders/rectangles around the editors) and
- positing it next to the old "panel" (indicated by a rectangle frame around the old panel and the new one.
So putting an editor in a new "global" panel (2.) works fine, putting it in a new "local" panel (1.) causes the issue
(that's actually very helpful because I can still continue to work quite efficiently)
(maybe somebody else could report this bug appropriately)
(it also seems not related to the XML editor mentioned above since it also happens e.g. on property files)
update 4: I am using Windows 7 in hibernate mode. Meaning I don't start my Eclipse too often. Now I realized that Eclipse itself had been started (looking at the Task Manager) 2 times (visually and using ALT+TAB for open windows navigation this was not obvious).
After (stopping/killing all open instances and) restarting the problem does not occur anymore.
update 5: In this duplicate question somebody stated it would have been solved by the latest windows update: https://stackoverflow.com/a/19316804/1915920 . I'll check this out for myself, but currently I cannot reproduce the problem anyways.
update 6: In another situation I had this and it seemed related to some property window (in this case Jasper Reports) that updated its content automatically, based on the current editor (like an outline view). So it could be a good idea to close and re-open (all) outline and/or property windows.
</...updates>
The error in general indicates, that some program(s) have (propably) unusually many (probably thousands?) of operating system file handles open.
So one should check if outside or inside of Eclipse a lot of files are opened at the same time or opened over a short period of time,
but not properly closed (they could be visually closed, but the operating system still thinks they are beeing used because
the application did not properly free the file handles somehow).
Now I have this issue currently as well. If I look in the Error Log (Window->Show View->General->Error Log)
I can see a lot of the following org.jboss.ide.eclipse.archives.core.* exceptions immediately before.
Since I don't use the installed JBoss Developer Studio Plugin (that is likely related to this one) right now and
no associated window or editor is opened (only some toolbar "JBoss Central" and perspective "JBoss" buttons) I'll have
a look if disabling these will help on this sporadic problem.
Also I closed all open editors, restarted Eclipse and open them and can't see this issue right now again.
Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
...
java.lang.NullPointerException
at org.jboss.ide.eclipse.archives.core.WorkspaceChangeListener$2.visit(WorkspaceChangeListener.java:74)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:69)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:49)
at org.jboss.ide.eclipse.archives.core.WorkspaceChangeListener.resourceChanged(WorkspaceChangeListener.java:70)
at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:396)
at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1531)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2354)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:75)
at org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:65)
at org.eclipse.ui.editors.text.TextFileDocumentProvider.executeOperation(TextFileDocumentProvider.java:456)
at org.eclipse.ui.editors.text.TextFileDocumentProvider.saveDocument(TextFileDocumentProvider.java:772)
at org.eclipse.ui.texteditor.AbstractTextEditor.performSave(AbstractTextEditor.java:5068)
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.jboss.tools.common.editor.ObjectMultiPageEditor.saveX(ObjectMultiPageEditor.java:403)
at org.jboss.tools.common.editor.ObjectMultiPageEditor.doSave(ObjectMultiPageEditor.java:385)
at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:150)
at org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:276)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.ui.internal.WorkbenchWindow$13.run(WorkbenchWindow.java:1812)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1809)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:284)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:263)
at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:155)
at org.eclipse.ui.internal.WorkbenchPage.saveSaveable(WorkbenchPage.java:3777)
at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3790)
at org.jboss.tools.common.model.ui.texteditors.SaveAction3.run(PropertiesTextEditorComponent.java:357)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:285)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:504)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:555)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:376)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:322)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:84)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1056)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1081)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1108)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1525)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4723)
at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:344)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4611)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4977)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
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:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
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:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
...
eclipse.buildId=4.3.0.I20130605-2000
java.version=1.7.0_25
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Framework arguments: -product org.eclipse.epp.package.reporting.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.reporting.product
installed plugins (Help->About Eclipse->Installation Details->Installed Software: mark all + CTRL+C):
(Eclipse Kepler Java EE and BIRT edition as base install)
Apache Directory Studio LDAP Browser 2.0.0.v20130628 org.apache.directory.studio.ldapbrowser.feature.feature.group Apache Software Foundation
DevUtilsFeature 1.0.9.201209201734 DevUtilsFeature.feature.group null
Eclipse IDE for Java and Report Developers 2.0.0.20130613-0530 epp.package.reporting null
GlassFish Tools 6.2.0.201307232054 oracle.eclipse.tools.glassfish.feature.group Oracle
JarPlug 0.6.1 com.simontuffs.eclipse.jarplug.feature.feature.group simontuffs.com
Jaspersoft Studio feature 5.2.0 com.jaspersoft.studio.feature.feature.group Jaspersoft Corporation
Java EE 5 Documentation 6.2.0.201307232054 oracle.eclipse.tools.javaee.doc.v5.feature.group Oracle
Java EE 6 Documentation 6.2.0.201307232054 oracle.eclipse.tools.javaee.doc.v6.feature.group Oracle
Java EE 7 Documentation 6.2.0.201307232054 oracle.eclipse.tools.javaee.doc.v7.feature.group Oracle
JBoss Developer Studio (Core Features) 7.0.0.GA-v20130720-0044-B364 com.jboss.jbds.product.feature.feature.group JBoss by Red Hat
Log Viewer Feature 0.9.8.8 de.anbos.eclipse.logviewer.feature.feature.group Andre Bossert
MercurialEclipse 2.1.0.201304290948 mercurialeclipse.feature.group MercurialEclipse project
MyLV 1.0.4 mylv_feature.feature.group null
Oracle ADF Documentation (11.1.1.4) 6.2.0.201307232054 oracle.eclipse.tools.adf.doc.v11114.feature.group Oracle
Oracle ADF Documentation (11.1.1.5) 6.2.0.201307232054 oracle.eclipse.tools.adf.doc.v11115.feature.group Oracle
Oracle ADF Documentation (11.1.1.6) 6.2.0.201307232054 oracle.eclipse.tools.adf.doc.v11116.feature.group Oracle
Oracle ADF Documentation (11.1.1.7) 6.2.0.201307232054 oracle.eclipse.tools.adf.doc.v11117.feature.group Oracle
Oracle ADF Documentation (12.1.2) 6.2.0.201307232054 oracle.eclipse.tools.adf.doc.v1212.feature.group Oracle
Oracle ADF Tools 6.2.0.201307232054 oracle.eclipse.tools.adf.feature.group Oracle
Oracle Cloud Tools 6.2.0.201307232054 oracle.eclipse.tools.cloud.feature.group Oracle
Oracle Coherence Tools 6.2.0.201307232054 oracle.eclipse.tools.coherence.feature.group Oracle
Oracle Database Tools 6.2.0.201307232054 oracle.eclipse.tools.database.feature.group Oracle
Oracle Java EE Tools 6.2.0.201307232054 oracle.eclipse.tools.javaee.feature.group Oracle
Oracle Maven Tools 6.2.0.201307232054 oracle.eclipse.tools.maven.feature.group Oracle
Oracle Spring Tools 6.2.0.201307232054 oracle.eclipse.tools.spring.feature.group Oracle
Oracle WebLogic Scripting Tools 6.2.0.201307232054 oracle.eclipse.tools.weblogic.scripting.feature.group Oracle
Oracle WebLogic Server Tools 6.2.0.201307232054 oracle.eclipse.tools.weblogic.feature.group Oracle
Toad® Extension for Eclipse - Community Edition - Core Plugin 1.8.3.201308140922 com.quest.toadext.core.feature.feature.group Quest Software, Inc.
Toad® Extension for Eclipse - Community Edition - MySQL DB Plugin 1.8.3.201308140922 com.quest.toadext.mysql.feature.feature.group Quest Software, Inc.
Toad® Extension for Eclipse - Community Edition - Oracle Database Plugin 1.8.3.201308140922 com.quest.toadext.feature.feature.group Quest Software, Inc.
Toad® Extension for Eclipse - Community Edition - PostgreSQL Plugin 1.8.3.201308140922 com.quest.toadext.postgre.feature.feature.group Quest Software, Inc.