- This topic has 2 replies, 2 voices, and was last updated 16 years, 9 months ago by
Loyal Water.
-
AuthorPosts
-
gMarshMemberI have created a new Java class that extends Exception which when created generates a warning indicating I need a serialVersionUID. I click on the warning and pull up the quickfix dialog box and I select the second option “Add generated serial version ID”. Nothing is generated and the warning message remains. This normally works but for some unknown reason this functionality seems to have stopped working. Is there a setting that I have accidently set incorrectly?
Regards,
gMarshAugust 28, 2008 at 5:29 pm #288683
gMarshMemberI discovered that there was an internal error generated when attempting to perform the above function. This is a copy of the error message :
=============
Error
Thu Aug 28 15:14:22 PDT 2008
Internal Errorjava.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:350)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:495)
at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:268)
at org.eclipse.ui.internal.progress.ProgressManager$3.run(ProgressManager.java:909)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:944)
at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:919)
at org.eclipse.jdt.internal.ui.text.correction.SerialVersionHashOperation.addInitializer(SerialVersionHashOperation.java:181)
at org.eclipse.jdt.internal.corext.fix.AbstractSerialVersionOperation.rewriteAST(AbstractSerialVersionOperation.java:105)
at org.eclipse.jdt.internal.corext.fix.LinkedFix.createChange(LinkedFix.java:74)
at org.eclipse.jdt.internal.ui.text.correction.FixCorrectionProposal.createTextChange(FixCorrectionProposal.java:143)
at org.eclipse.jdt.internal.ui.text.correction.CUCorrectionProposal.createChange(CUCorrectionProposal.java:438)
at org.eclipse.jdt.internal.ui.text.correction.ChangeCorrectionProposal.getChange(ChangeCorrectionProposal.java:226)
at org.eclipse.jdt.internal.ui.text.correction.ChangeCorrectionProposal.performChange(ChangeCorrectionProposal.java:102)
at org.eclipse.jdt.internal.ui.text.correction.CUCorrectionProposal.performChange(CUCorrectionProposal.java:304)
at org.eclipse.jdt.internal.ui.text.correction.CUCorrectionProposal.apply(CUCorrectionProposal.java:282)
at org.eclipse.jdt.internal.ui.text.correction.FixCorrectionProposal.apply(FixCorrectionProposal.java:179)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:806)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertSelectedProposalWithMask(CompletionProposalPopup.java:757)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$27(CompletionProposalPopup.java:753)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup$5.widgetDefaultSelected(CompletionProposalPopup.java:574)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:112)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
Caused by: java.lang.NullPointerException
at org.eclipse.core.internal.runtime.Activator.getURLConverter(Activator.java:313)
at org.eclipse.core.runtime.FileLocator.toFileURL(FileLocator.java:163)
at org.eclipse.jdt.internal.ui.text.correction.SerialVersionHashOperation.calculateSerialVersionIds(SerialVersionHashOperation.java:102)
at org.eclipse.jdt.internal.ui.text.correction.SerialVersionHashOperation.computeId(SerialVersionHashOperation.java:231)
at org.eclipse.jdt.internal.ui.text.correction.SerialVersionHashOperation.access$0(SerialVersionHashOperation.java:204)
at org.eclipse.jdt.internal.ui.text.correction.SerialVersionHashOperation$3.run(SerialVersionHashOperation.java:185)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Root exception:
java.lang.NullPointerException
at org.eclipse.core.internal.runtime.Activator.getURLConverter(Activator.java:313)
at org.eclipse.core.runtime.FileLocator.toFileURL(FileLocator.java:163)
at org.eclipse.jdt.internal.ui.text.correction.SerialVersionHashOperation.calculateSerialVersionIds(SerialVersionHashOperation.java:102)
at org.eclipse.jdt.internal.ui.text.correction.SerialVersionHashOperation.computeId(SerialVersionHashOperation.java:231)
at org.eclipse.jdt.internal.ui.text.correction.SerialVersionHashOperation.access$0(SerialVersionHashOperation.java:204)
at org.eclipse.jdt.internal.ui.text.correction.SerialVersionHashOperation$3.run(SerialVersionHashOperation.java:185)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)================
Hope this helps explain the problem.
Regards,
gMarshAugust 29, 2008 at 12:25 pm #288689
Loyal WaterMemberCan you restart MyEclipse using the -clean command and check if this works. Also, can you try to get this to work with a new project.
https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/I just want to make sure you project has not gone corrupt.
-
AuthorPosts