Bug#669000: eclipse-platform: Help search function does not work, "invalid format"

Peter De Wachter pdewacht at gmail.com
Mon Apr 16 11:58:12 UTC 2012


Package: eclipse-platform
Version: 3.7.2-1
Severity: normal
Tags: patch

When I try to use the Help/Search menu command, I get an "Errors while
indexing" message. The Eclipse error log contains the following information:

    eclipse.buildId=I20110613-1736
    java.version=1.6.0_24
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=nl_BE
    Command-line arguments:  -os linux -ws gtk -arch x86_64
    
    Error
    Mon Apr 16 12:42:00 CEST 2012
    Errors while indexing
    
    java.lang.IllegalArgumentException: invalid format: 
            at org.osgi.framework.Version.<init>(Version.java:150)
            at org.eclipse.help.internal.search.SearchIndex.isLuceneCompatible(SearchIndex.java:721)
            at org.eclipse.help.internal.search.PluginIndex.isCompatible(PluginIndex.java:152)
            at org.eclipse.help.internal.search.PluginIndex.resolve(PluginIndex.java:83)
            at org.eclipse.help.internal.search.PluginIndex.getPaths(PluginIndex.java:231)
            at org.eclipse.help.internal.search.PrebuiltIndexes.trim(PrebuiltIndexes.java:46)
            at org.eclipse.help.internal.search.PrebuiltIndexes.getIndexes(PrebuiltIndexes.java:54)
            at org.eclipse.help.internal.search.IndexingOperation.mergeIndexes(IndexingOperation.java:544)
            at org.eclipse.help.internal.search.IndexingOperation.addNewDocuments(IndexingOperation.java:152)
            at org.eclipse.help.internal.search.IndexingOperation.execute(IndexingOperation.java:106)
            at org.eclipse.help.internal.search.LocalSearchManager.updateIndex(LocalSearchManager.java:671)
            at org.eclipse.help.internal.search.LocalSearchManager.ensureIndexUpdated(LocalSearchManager.java:645)
            at org.eclipse.help.internal.search.federated.IndexerJob.run(IndexerJob.java:31)
            at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Caused by: java.util.NoSuchElementException
            at java.util.StringTokenizer.nextToken(StringTokenizer.java:349)
            at org.osgi.framework.Version.<init>(Version.java:127)
            ... 13 more


The problem seems to be that Eclipse failed to retrieve the Lucene version
number. This patch fixes it for me:

--- eclipse-3.7.2.orig/eclipse/plugins/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchIndex.java
+++ eclipse-3.7.2/eclipse/plugins/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchIndex.java
@@ -106,7 +106,7 @@ public class SearchIndex implements ISea
 
        public static final String DEPENDENCIES_KEY_ANALYZER = "analyzer"; //$NON-NLS-1$
 
-       private static final String LUCENE_BUNDLE_ID = "org.apache.lucene"; //$NON-NLS-1$
+       private static final String LUCENE_BUNDLE_ID = "org.apache.lucene.core"; //$NON-NLS-1$
 
        private static final String FIELD_NAME = "name"; //$NON-NLS-1$



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages eclipse-platform depends on:
ii  ant                            1.8.2-4
ii  ant-optional                   1.8.2-4
ii  default-jre [java6-runtime]    1:1.6-47
ii  eclipse-platform-data          3.7.2-1+pdw1
ii  eclipse-rcp                    3.7.2-1+pdw1
ii  java-common                    0.47
ii  libc6                          2.13-27
ii  libcommons-codec-java          1.5-1
ii  libcommons-el-java             1.0-7
ii  libcommons-httpclient-java     3.1-10
ii  libcommons-logging-java        1.1.1-9
ii  libjasper-java                 5.5.33-3
ii  libjetty-java                  6.1.24-6
ii  libjsch-java                   0.1.42-2
ii  liblucene2-java                2.9.4+ds1-4
ii  libservlet2.5-java             6.0.35-2
ii  openjdk-6-jre [java6-runtime]  6b24-1.11.1-5
ii  openjdk-7-jre [java6-runtime]  7~u3-2.1.1~pre1-1
ii  perl                           5.14.2-9
ii  sat4j                          2.3.1-1

Versions of packages eclipse-platform recommends:
ii  eclipse-pde  3.7.2-1+pdw1

Versions of packages eclipse-platform suggests:
ii  eclipse-jdt  3.7.2-1+pdw1

Versions of packages eclipse-platform is related to:
ii  eclipse-jdt  3.7.2-1+pdw1
ii  eclipse-pde  3.7.2-1+pdw1

-- no debconf information





More information about the pkg-java-maintainers mailing list