Bug 66836 - refactorings fail + running fails + Background Indexer Crash Recovery
Summary: refactorings fail + running fails + Background Indexer Crash Recovery
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 3.0 RC4   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 68189 68510 69545 69902 70784 72840 73582 78339 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-12 15:22 EDT by Adam Kumiszcza CLA
Modified: 2004-11-11 11:23 EST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kumiszcza CLA 2004-06-12 15:22:41 EDT
I have strange problems with eclipse (M9, RC1 and RC2 tested) in Linux. No 
problems for those in Windows 2000 on the same machine. Anyway, everything works 
ok, but after some time some errors appear -- refactorings go wrong (for 
instance, I encapsulate one field and every dependant class is changed, then I 
encapsulate the other field in the same class, and other classes are not changed 
and errors appear), I cannot run junit tests (after selecting ctrl+f11 or 
manually Run as.. nothing happens, no sign of activity from eclipse). After 
quitting and starting it again everything works fine until some moment and it 
starts over again.

I'm not exactly sure it is connected, but I get the following errors in my Error 
Log:

Error cze 12, 2004 19:58:55.600 Background Indexer Crash Recovery
java.lang.NullPointerException
	at java.lang.SecurityManager.checkRead(SecurityManager.java:900)
	at java.io.FileInputStream.<init>(FileInputStream.java(Inlined Compiled Code))
	at org.eclipse.jdt.internal.core.index.DiskIndex.readCategoryTable(DiskIndex.
java(Compiled Code))
	at org.eclipse.jdt.internal.core.index.DiskIndex.mergeCategory(DiskIndex.java:
360)
	at org.eclipse.jdt.internal.core.index.DiskIndex.mergeCategories(DiskIndex.
java:352)
	at org.eclipse.jdt.internal.core.index.DiskIndex.mergeWith(DiskIndex.java:444)
	at org.eclipse.jdt.internal.core.index.Index.save(Index.java:171)
	at org.eclipse.jdt.internal.core.search.indexing.IndexManager.
saveIndex(IndexManager.java:502)
	at org.eclipse.jdt.internal.core.search.indexing.SaveIndex.execute(SaveIndex.
java:40)
	at org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobManager.
java:361)
	at java.lang.Thread.run(Thread.java:568)

----
or 
----

Error cze 12, 2004 19:58:15.796 Background Indexer Crash Recovery

----

- many of those. And it seems it appears in the moment I have failed 
refactorings etc.

My configuration (parts):
eclipse.buildId=I200406111814
eclipse.commands=-os
linux
-ws
gtk
-arch
x86
-showsplash
/opt/eclipse/eclipse -showsplash 600
-exitdata
/opt/eclipse/eclipse -exitdata 1e8001
-vm
/opt/ibm-jdk-1.4.1/bin/java

eclipse.product=org.eclipse.platform
eclipse.startTime=1087062975202
eclipse.vm=/opt/ibm-jdk-1.4.1/bin/java
eclipse.vmargs=-cp
/opt/eclipse/startup.jar
org.eclipse.core.launcher.Main

eof=eof
file.encoding=ISO-8859-2
file.encoding.pkg=sun.io
file.separator=/
ibm.system.encoding=ISO-8859-2
invokedviajava=
java.assistive=ON
java.awt.fonts=
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.awt.printerjob=sun.print.PSPrinterJob
java.class.path=/opt/eclipse/startup.jar
java.class.version=48.0
java.compiler=jitc
java.endorsed.dirs=/opt/ibm-jdk-1.4.1/bin/../jre/lib/endorsed
java.ext.dirs=/opt/ibm-jdk-1.4.1/bin/../jre/lib/ext
java.fullversion=J2RE 1.4.1 IBM build cxia321411-20040301 (JIT enabled: jitc)
java.home=/opt/ibm-jdk-1.4.1/bin/../jre
java.io.tmpdir=/tmp
java.library.path=/opt/ibm-jdk-1.4.1/bin/../jre/bin:/opt/ibm-jdk-1.4.
1/jre/bin/classic:/opt/ibm-jdk-1.4.1/jre/bin:/usr/lib
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.4.1
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.4
java.util.prefs.PreferencesFactory=java.util.prefs.FileSystemPreferencesFactory
java.vendor=IBM Corporation
java.vendor.url=http://www.ibm.com/
java.vendor.url.bug=
java.version=1.4.1
java.vm.info=J2RE 1.4.1 IBM build cxia321411-20040301 (JIT enabled: jitc)
java.vm.name=Classic 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=IBM Corporation
java.vm.version=1.4.1
line.separator=

org.eclipse.jdt.debug.ui.scrapbookActive=false
org.osgi.framework.executionenvironment=
org.osgi.framework.language=pl
org.osgi.framework.os.name=Linux
org.osgi.framework.os.version=2.6.7-rc3
org.osgi.framework.processor=x86
org.osgi.framework.vendor=Eclipse
org.osgi.framework.version=1.2.0
os.arch=x86
os.name=Linux
os.version=2.6.7-rc3
osgi.arch=x86
Comment 1 Olivier Thomann CLA 2004-06-12 19:04:07 EDT
Could you please try with -vmargs -Xj9É

You might see a JIT bug. If -Xj9 is not supported, then you should try to
upgrade the VM.
Comment 2 Adam Kumiszcza CLA 2004-06-13 03:35:24 EDT
I tried /opt/eclipse/eclipse -vmargs -Xj9 and the same errors appeared after a 
moment. I'm not sure how to pass arguments to eclipse? Did I do it ok? Or should 
I run startup.jar somehow?

BTW. I forgot to mention that sometimes some command (e.g. refactoring) simply 
doesn't even start (no dialog appears) and after that a message appears "The 
command for the key you pressed failed". Here's the error log:

Error cze 13, 2004 09:27:21.740 The command for the key you pressed failed
java.lang.NullPointerException
at org.eclipse.jdt.internal.core.search.indexing.IndexManager.
getIndex(IndexManager.java:183)
at org.eclipse.jdt.internal.core.search.PatternSearchJob.
getIndexes(PatternSearchJob.java:90)
at org.eclipse.jdt.internal.core.search.PatternSearchJob.
execute(PatternSearchJob.java:58)
at org.eclipse.jdt.internal.core.search.processing.JobManager.
performConcurrentJob(JobManager.java:253)
at org.eclipse.jdt.internal.core.hierarchy.IndexBasedHierarchyBuilder.
searchAllPossibleSubTypes(IndexBasedHierarchyBuilder.java:487)
at org.eclipse.jdt.internal.core.hierarchy.IndexBasedHierarchyBuilder.
determinePossibleSubTypes(IndexBasedHierarchyBuilder.java:378)
at org.eclipse.jdt.internal.core.hierarchy.IndexBasedHierarchyBuilder.
build(IndexBasedHierarchyBuilder.java:120)
at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.compute(TypeHierarchy.
java:319)
at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.refresh(TypeHierarchy.
java:1234)
at org.eclipse.jdt.internal.core.CreateTypeHierarchyOperation.
executeOperation(CreateTypeHierarchyOperation.java:90)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:
700)
at org.eclipse.jdt.internal.core.JavaModelOperation.
runOperation(JavaModelOperation.java:739)
at org.eclipse.jdt.internal.core.SourceType.newTypeHierarchy(SourceType.java:
649)
at org.eclipse.jdt.internal.corext.refactoring.rename.MethodChecks.
isDeclaredInInterface(MethodChecks.java:98)
at org.eclipse.jdt.internal.corext.refactoring.rename.
RenameVirtualMethodProcessor.
checkInitialConditions(RenameVirtualMethodProcessor.java:70)
at org.eclipse.jdt.internal.ui.refactoring.reorg.
RenameMethodUserInterfaceStarter.activate(RenameMethodUserInterfaceStarter.java:
37)
at org.eclipse.jdt.ui.refactoring.RenameSupport.openDialog(RenameSupport.java:
108)
at org.eclipse.jdt.internal.ui.refactoring.actions.RenameJavaElementAction.
run(RenameJavaElementAction.java:175)
at org.eclipse.jdt.internal.ui.refactoring.actions.RenameJavaElementAction.
run(RenameJavaElementAction.java:128)
at org.eclipse.jdt.ui.actions.RenameAction.run(RenameAction.java:127)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.
dispatchRun(SelectionDispatchAction.java:216)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.
run(SelectionDispatchAction.java:188)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:141)
at org.eclipse.ui.internal.commands.Command.execute(Command.java:132)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.
executeCommand(WorkbenchKeyboard.java:469)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:
887)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.
processKeyEvent(WorkbenchKeyboard.java:928)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.
filterKeySequenceBindings(WorkbenchKeyboard.java:546)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$2(WorkbenchKeyboard.
java:494)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$1.
handleEvent(WorkbenchKeyboard.java:259)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled Code))
at org.eclipse.swt.widgets.Display.filterEvent(Display.java(Inlined Compiled 
Code))
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined Compiled Code))
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:2323)
at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:1808)
at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:440)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java(Compiled Code))
at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled Code))
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(Native Method)
at org.eclipse.swt.widgets.Display.eventProc(Display.java(Compiled Code))
at org.eclipse.swt.internal.gtk.OS.gtk_main_iteration(Native Method)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code))
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code))
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1333)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:252)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.
java:334)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:272)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.
java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:638)
at org.eclipse.core.launcher.Main.main(Main.java:622)

(this one was for failed rename refactoring)
Comment 3 Kent Johnson CLA 2004-06-24 11:20:45 EDT
*** Bug 68189 has been marked as a duplicate of this bug. ***
Comment 4 Adam Kumiszcza CLA 2004-06-25 02:44:53 EDT
I checked and this happens only with IBM's JDK. I'm using Sun JDK (1.4.2.04) and 
everything seems to work.
Comment 5 Kent Johnson CLA 2004-06-25 11:22:16 EDT
Do you know exactly which IBM VM's you were using?
Comment 6 Kent Johnson CLA 2004-06-25 13:46:07 EDT
From your trace, the VM was J2RE 1.4.1 IBM build cxia321411-20040301.

We have received a few non-reproduceable problems running on this VM (newer 
versions are available), in code that has not changed in months.

Closing until we can reproduce this problem on another VM.
Comment 7 Kent Johnson CLA 2004-07-12 12:38:22 EDT
*** Bug 69545 has been marked as a duplicate of this bug. ***
Comment 8 Kent Johnson CLA 2004-07-20 13:18:42 EDT
*** Bug 69902 has been marked as a duplicate of this bug. ***
Comment 9 Greg CLA 2004-07-21 07:20:34 EDT
Strange, it was working fine until I rebooted, then the indexer started crashing
again. I upgraded to 1.4.2 and it seems to have resolved the problem.  Thanks Greg
Comment 10 Kent Johnson CLA 2004-07-28 12:46:03 EDT
*** Bug 70784 has been marked as a duplicate of this bug. ***
Comment 11 Kent Johnson CLA 2004-08-29 03:16:17 EDT
*** Bug 72840 has been marked as a duplicate of this bug. ***
Comment 12 Kent Johnson CLA 2004-09-02 12:59:43 EDT
*** Bug 68510 has been marked as a duplicate of this bug. ***
Comment 13 Kent Johnson CLA 2004-09-09 16:51:42 EDT
*** Bug 73582 has been marked as a duplicate of this bug. ***
Comment 14 Kent Johnson CLA 2004-11-11 11:23:16 EST
*** Bug 78339 has been marked as a duplicate of this bug. ***