Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 233354 - [quick fix] Nothing happens when executing "Add generated serial version id" in eclipse after upgrading to JDK6
Summary: [quick fix] Nothing happens when executing "Add generated serial version id" ...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3.2   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 3.4   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 307487 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-21 17:52 EDT by Kay Huber CLA
Modified: 2010-03-30 08:56 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kay Huber CLA 2008-05-21 17:52:10 EDT
After upgrading to JDK6, eclipse 3.3.2 appears to be doing nothing, when I execute quick fix "Add generated serial version id" for a class requiring a serial id.
The following stack trace appears in the .log file:

!ENTRY org.eclipse.jdt.ui 4 10001 2008-05-21 23:41:08.299
!MESSAGE Internal Error
!STACK 0
java.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(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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)
Comment 1 Kay Huber CLA 2008-05-21 17:53:50 EDT
This is my eclipse configuration:

*** Date: Mittwoch, 21. Mai 2008 23:52 Uhr MESZ

*** Platform Details:

*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
eclipse.buildId=I20070625-1500
eclipse.commands=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\dev\tools\eclipse33\eclipse.exe
-name
Eclipse
--launcher.library
C:\dev\tools\eclipse33\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
-startup
C:\dev\tools\eclipse33\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-exitdata
1540_64
-showlocation
-data
C:\dev\workspace\eclipse
-vm
C:\dev\frameworks\Java\jdk1.6.0_06\bin\javaw.exe
eclipse.ee.install.verify=false
eclipse.product=org.eclipse.platform.ide
eclipse.startTime=1211396233946
eclipse.vm=C:\dev\frameworks\Java\jdk1.6.0_06\bin\javaw.exe
eclipse.vmargs=-Xms256m
-Xmx1024m
-XX:MaxPermSize=256M
-jar
C:\dev\tools\eclipse33\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
eof=eof
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=C:\dev\tools\eclipse33\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
java.class.version=50.0
java.endorsed.dirs=C:\dev\frameworks\Java\jdk1.6.0_06\jre\lib\endorsed
java.ext.dirs=C:\dev\frameworks\Java\jdk1.6.0_06\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
java.home=C:\dev\frameworks\Java\jdk1.6.0_06\jre
java.io.tmpdir=C:\temp\kay\
java.library.path=C:\dev\frameworks\Java\jdk1.6.0_06\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\PC Connectivity Solution\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Common Files\SYSTEM\MSMAPI\1033;C:\Program Files\Bitvise Tunnelier;C:\dev\tools\subversion\svn-win32-1.4.5\bin;C:\dev\tools\Putty;C:\dev\tools\dig;C:\Program Files\Microsoft Network Monitor 3\;C:\dev\tools\maven\apache-maven-2.0.8\bin;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\Program Files\Gemplus\GemSafe Libraries\BIN;C:\Program Files\QuickTime\QTSystem\
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.6.0_06-b02
java.security.policy=/C:/dev/tools/eclipse33/configuration/org.eclipse.osgi/bundles/672/1/.cp/server.policy
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.6
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.6.0_06
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=10.0-b22
line.separator=
Comment 2 Martin Aeschlimann CLA 2008-05-22 04:19:15 EDT
The serial ID quick fix got completly rewritten in 3.4. I verified that it works with JDK 6.0. I'd be happy if you could try as well.
Comment 3 Kay Huber CLA 2008-05-22 11:26:33 EDT
I'm sorry to annoy you with this, but the latest Milestone (3.4 M7) available at http://www.eclipse.org/downloads/packages/ (taking the link: http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/M7/eclipse-java-ganymede-M7-win32.zip - should be the java-including package, no?) downloads eclipse platform, but not the JDT (nor any of the other promised features). Any hint how I can download and verify with 3.4 nevertheless?
Comment 4 Martin Aeschlimann CLA 2008-05-22 11:45:53 EDT
If it is downloading the wring thing file a bug against 'Eclipse Foundation / Community.

Use 'http://download.eclipse.org/eclipse/downloads/' for the latest Eclipse SDK build (includes platform, JDT and PDE)
Comment 5 Kay Huber CLA 2008-05-22 17:57:52 EDT
Thanks a lot - downloaded it and indeed generating serial version id now works fine with eclipse 3.4RC1 and Java 6.
Comment 6 Markus Keller CLA 2010-03-30 08:56:52 EDT
*** Bug 307487 has been marked as a duplicate of this bug. ***