Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Eclipse Bugzilla by szymon.ptaszkiewicz, 1 year ago
java.lang.IllegalArgumentException: Illegal value: -1	at org.eclipse.core.internal.resources.Resource.revertModificationStamp(Resource.java:1618)	at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.commitFileBufferContent(ResourceTextFileBuffer.java:403)	at org.eclipse.core.internal.filebuffers.ResourceFileBuffer.commit(ResourceFileBuffer.java:327)	at org.eclipse.jdt.internal.ui.javaeditor.DocumentAdapter.save(DocumentAdapter.java:472)	at org.eclipse.jdt.internal.core.CommitWorkingCopyOperation.executeOperation(CommitWorkingCopyOperation.java:123)	at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:729)	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)	at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:794)	at org.eclipse.jdt.internal.core.CompilationUnit.commitWorkingCopy(CompilationUnit.java:391)	at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.commitWorkingCopy(CompilationUnitDocumentProvider.java:1378)	at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$4.execute(CompilationUnitDocumentProvider.java:1458)	at org.eclipse.ui.editors.text.TextFileDocumentProvider$DocumentProviderOperation.run(TextFileDocumentProvider.java:132)	at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:70)	at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:108)	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)	at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:130)	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:5076)	at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSave(CompilationUnitEditor.java:1244)	at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave(CompilationUnitEditor.java:1298)	at org.eclipse.ui.texteditor.AbstractTextEditor$TextEditorSavable.doSave(AbstractTextEditor.java:7209)	at org.eclipse.ui.Saveable.doSave(Saveable.java:216)	at org.eclipse.ui.internal.SaveableHelper.doSaveModel(SaveableHelper.java:357)	at org.eclipse.ui.internal.SaveablesList$3.run(SaveablesList.java:665)	at org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:285)	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:463)	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:371)	at org.eclipse.ui.internal.WorkbenchWindow$14.run(WorkbenchWindow.java:2181)	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)	at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2177)	at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:293)	at org.eclipse.ui.internal.SaveablesList.saveModels(SaveablesList.java:675)	at org.eclipse.ui.internal.WorkbenchPage.saveAll(WorkbenchPage.java:3660)	at org.eclipse.ui.internal.WorkbenchPage.saveAllEditors(WorkbenchPage.java:3638)	at org.eclipse.ui.internal.WorkbenchPage.saveAllEditors(WorkbenchPage.java:3581)	at org.eclipse.ui.internal.ide.actions.BuildUtilities.saveEditors(BuildUtilities.java:184)	at org.eclipse.ui.internal.ide.dialogs.CleanDialog.buttonPressed(CleanDialog.java:142)	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3819)	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3430)	at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)	at org.eclipse.jface.window.Window.open(Window.java:803)	at org.eclipse.jface.dialogs.MessageDialog.open(MessageDialog.java:330)	at org.eclipse.ui.internal.ide.actions.BuildCleanAction.run(BuildCleanAction.java:50)	at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3819)	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3430)	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694)	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606)	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)	at org.eclipse.equinox.launcher.Main.main(Main.java:1488)