Bug 201437 - [indexing] java.lang.IllegalArgumentException: Document path **path unknown** must be relative to **path unknown** at org.eclipse.jdt.internal.core.index.Index.containerRelativePath(Index.java:103)
Summary: [indexing] java.lang.IllegalArgumentException: Document path **path unknown**...
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: jst.jsp CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords: needinfo
: 216938 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-28 11:43 EDT by Michael Stevens CLA
Modified: 2013-07-18 14:26 EDT (History)
2 users (show)

See Also:


Attachments
eclipse config dump (257.41 KB, application/octet-stream)
2007-08-28 11:52 EDT, Michael Stevens CLA
no flags Details
log of JSP indexer problems (610.29 KB, text/x-log)
2007-08-29 07:46 EDT, Michael Stevens CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Stevens CLA 2007-08-28 11:43:33 EDT
-- Error Log --
Date: Tue Aug 28 16:36:44 BST 2007
Message: Background Indexer Crash Recovery
Severity: Error
Plugin ID: org.eclipse.jdt.core
Stack Trace:
java.lang.IllegalArgumentException: Document path **path unknown** must be relative to **path unknown**
at org.eclipse.jdt.internal.core.index.Index.containerRelativePath(Index.java:103)
at org.eclipse.jdt.internal.core.search.indexing.InternalSearchDocument.getContainerRelativePath(InternalSearchDocument.java:32)
at org.eclipse.jdt.internal.core.search.indexing.InternalSearchDocument.removeAllIndexEntries(InternalSearchDocument.java:40)
at org.eclipse.jdt.core.search.SearchDocument.removeAllIndexEntries(SearchDocument.java:128)
at org.eclipse.jdt.internal.core.search.JavaSearchParticipant.indexDocument(JavaSearchParticipant.java:68)
at org.eclipse.jst.jsp.core.internal.java.search.JSPSearchParticipant.indexDocument(JSPSearchParticipant.java:72)
at org.eclipse.jdt.internal.core.search.indexing.IndexManager.indexDocument(IndexManager.java:314)
at org.eclipse.jdt.internal.core.search.indexing.IndexManager$1.execute(IndexManager.java:658)
at org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobManager.java:392)
at java.lang.Thread.run(Thread.java:619)
Comment 1 Olivier Thomann CLA 2007-08-28 11:46:36 EDT
Could you please provide:
- build ID
- steps to reproduce
?

Thanks.
Comment 2 Michael Stevens CLA 2007-08-28 11:52:10 EDT
Build id is: Build id: I20070621-1340

I'll attach eclipse config log.

Rough steps to trigger are:

1) Open closed project
2) Let it index for a while
3) Close

I can retest but it's not repeatable as far as I know.

My log also shows a number of JSPIndexer problems.
Comment 3 Michael Stevens CLA 2007-08-28 11:52:40 EDT
Created attachment 77146 [details]
eclipse config dump
Comment 4 Olivier Thomann CLA 2007-08-28 11:58:14 EDT
If you go into this folder (inside your workspace root) .metadata\.plugins\org.eclipse.jdt.core, you should find a bunch of .index files.

If you remove them and restart Eclipse, the indexer will create them again.
If they are there, it doesn't create them again.

So if you delete them and on the next restart, you get the same problem, it could be useful for us to get your project.
Comment 5 Michael Stevens CLA 2007-08-28 12:09:01 EDT
Tried deleting the index files.

Played around a bit opening and closing that project, no luck in repeating it.
Comment 6 Frederic Fusier CLA 2007-08-28 14:18:54 EDT
Can you attach the log to let us see the JSPIndexer problems, then I can decide whether this bug should be moved to WebTools/jst.jsp component, thanks
Comment 7 Michael Stevens CLA 2007-08-29 07:46:45 EDT
Created attachment 77236 [details]
log of JSP indexer problems

Note that these are not the JSP indexer errors from the original bug report, but from a later test where I was able to repeat this problem (but not the JDT index error).
Comment 8 Frederic Fusier CLA 2007-08-29 09:15:17 EDT
Thanks for the feedback. Move to WebTools/jst.jsp component for further investigation as the origin seems to be a NPE while getting document path...
Comment 9 Frederic Fusier CLA 2008-01-29 12:27:15 EST
*** Bug 216938 has been marked as a duplicate of this bug. ***
Comment 10 Ian Tewksbury CLA 2010-01-22 15:30:33 EST
It would seem from the log file that the index attempted to access a bunch of jsp files that no longer existed, probably because the project was closed. Then once the project was opened again there was some issue with the JSPTranslator.

Part of me says this one maybe worth digging into a bit and seeing if there are now protections in place to protect against this but the rest of me is thinking that if for the past 2 years whenever a project with a bunch of JSPs was closed and opened a bunch of logged error messages occurred then we would know about it.  End opinion is this one deserves a bit of investigation but without information there is not much luck in anything coming from it.