Bug 23211

Summary: Bug with search/reference !
Product: [Eclipse Project] JDT Reporter: Marc Boily <Marc.Boily>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: akiezun
Version: 2.0   
Target Milestone: 2.1 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Marc Boily CLA 2002-09-05 08:47:34 EDT
When i try to find reference, i receive this error il log of eclipse :

!ENTRY org.eclipse.jdt.ui 4 1 Sep 04, 2002 16:05:02.117
!MESSAGE Internal Error
!STACK 0
java.lang.reflect.InvocationTargetException: 
java.lang.ArrayIndexOutOfBoundsException
	at java.lang.System.arraycopy(Native Method)
	at org.eclipse.jdt.internal.compiler.util.ObjectVector.copyInto
(ObjectVector.java:84)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchingOpenableSet.getMatchingOpe
nables(MatchingOpenableSet.java:47)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches
(MatchLocator.java:1285)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches
(MatchLocator.java:586)
	at org.eclipse.jdt.core.search.SearchEngine.search
(SearchEngine.java:412)
	at org.eclipse.jdt.core.search.SearchEngine.search
(SearchEngine.java:358)
	at org.eclipse.jdt.internal.ui.search.JavaSearchOperation.execute
(JavaSearchOperation.java:84)
	at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run
(WorkspaceModifyOperation.java:64)
	at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1378)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:78)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:98)
!SESSION Sep 05, 2002 08:26:45.13 ----------------------------------------------
java.version=1.3.1_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -install 
file:D:/dev/eclipse/
!ENTRY org.eclipse.jdt.ui 4 1 Sep 05, 2002 08:26:45.13
!MESSAGE Internal Error
!STACK 0
java.lang.reflect.InvocationTargetException: 
java.lang.ArrayIndexOutOfBoundsException
	at java.lang.System.arraycopy(Native Method)
	at org.eclipse.jdt.internal.compiler.util.ObjectVector.copyInto
(ObjectVector.java:84)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchingOpenableSet.getMatchingOpe
nables(MatchingOpenableSet.java:47)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches
(MatchLocator.java:1285)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches
(MatchLocator.java:586)
	at org.eclipse.jdt.core.search.SearchEngine.search
(SearchEngine.java:412)
	at org.eclipse.jdt.core.search.SearchEngine.search
(SearchEngine.java:358)
	at org.eclipse.jdt.internal.ui.search.JavaSearchOperation.execute
(JavaSearchOperation.java:84)
	at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run
(WorkspaceModifyOperation.java:64)
	at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1378)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:78)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:98)

How i can resolve this problem without erasing workspace and classpath ?
Comment 1 Jerome Lanneluc CLA 2002-09-05 08:53:17 EDT
Marc, do you have a small test case that shows the problem?
Comment 2 Marc Boily CLA 2002-09-05 08:55:34 EDT
No, sorry 

I have the problem with my very large application ... :-(

Someone here have the same problem, he delete workspace and .classpath after 
reconstruct, all functionning well ... ???

What files i can delete without deleting all the workspace ?
Comment 3 Marc Boily CLA 2002-09-05 13:01:20 EDT
I found the problem .. i have put a bad directory in my classpath ...
Now all it's ok !

Thanks!
Comment 4 Jerome Lanneluc CLA 2002-09-06 04:21:46 EDT
I would be interested in knowing what was bad in your directory. We should not 
throw an ArrayIndexOutOfBoundsException in this case.
Comment 5 Marc Boily CLA 2002-09-06 07:16:18 EDT
I put the source directory like a lib folder because i want my applition get 
the .xml in java directory ... not the bin directory ..

It's that the problem  : eclipse says when i put source directory in classpath 
cannot near projet/java in projet/java ...

Comment 6 Adam Kiezun CLA 2002-09-09 14:40:29 EDT
Jerome,
we have a self-hosting workspace that has the same problem.
i can send it to you if you want.
Comment 7 Marc Boily CLA 2002-09-09 14:42:06 EDT
no, it's ok for me !
Comment 8 Jerome Lanneluc CLA 2002-10-03 09:28:41 EDT
Self-hosted workspace didn't help in knowing what was wrong.
Closing.