Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325147 - [search] ClassCastException in IndexSelector#initializeIndexLocations()
Summary: [search] ClassCastException in IndexSelector#initializeIndexLocations()
Status: CLOSED DUPLICATE of bug 323824
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: Future   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-13 14:04 EDT by Nitin Dahyabhai CLA
Modified: 2013-12-10 10:25 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nitin Dahyabhai CLA 2010-09-13 14:04:35 EDT
!ENTRY org.eclipse.core.jobs 4 2 2010-09-10 14:22:36.250
!MESSAGE An internal error occurred during: "JavaScript Search".
!STACK 0
java.lang.ClassCastException: org.eclipse.wst.jsdt.internal.core.PackageFragmentRoot cannot be cast to org.eclipse.wst.jsdt.internal.core.JavaProject
	at org.eclipse.wst.jsdt.internal.core.search.IndexSelector.initializeIndexLocations(IndexSelector.java:137)
	at org.eclipse.wst.jsdt.internal.core.search.IndexSelector.getIndexLocations(IndexSelector.java:201)
	at org.eclipse.wst.jsdt.internal.core.search.JavaSearchParticipant.selectIndexes(JavaSearchParticipant.java:117)
	at org.eclipse.wst.jsdt.internal.core.search.PatternSearchJob.getIndexes(PatternSearchJob.java:82)
	at org.eclipse.wst.jsdt.internal.core.search.PatternSearchJob.ensureReadyToRun(PatternSearchJob.java:53)
	at org.eclipse.wst.jsdt.internal.core.search.processing.JobManager.performConcurrentJob(JobManager.java:178)
	at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.findMatches(BasicSearchEngine.java:246)
	at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.search(BasicSearchEngine.java:512)
	at org.eclipse.wst.jsdt.core.search.SearchEngine.search(SearchEngine.java:243)
	at org.eclipse.wst.jsdt.internal.ui.search.JavaSearchQuery.run(JavaSearchQuery.java:136)
	at org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:91)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Nitin Dahyabhai CLA 2010-09-13 14:27:44 EDT
Not sure why that line number is indicated as the trigger, possibly some unrelated in-workspace changes.  

JavaProject focusProject = focus instanceof LibraryFragmentRoot || focus instanceof PackageFragmentRoot ? (JavaProject) focus.getParent() : (JavaProject) focus; is the actual trigger.
Comment 2 Victor Rubezhny CLA 2013-11-29 09:45:26 EST
This is a duplicate of Bug #323824
Comment 3 Chris Jaun CLA 2013-12-10 10:25:04 EST

*** This bug has been marked as a duplicate of bug 323824 ***