[
https://issues.jboss.org/browse/JBDS-4133?page=com.atlassian.jira.plugin....
]
Nick Boldt edited comment on JBDS-4133 at 10/28/16 3:09 PM:
------------------------------------------------------------
OK, so here's the problem.
In lucene 3.5, the class org/apache/lucene/analysis/standard/StandardAnalyzer is in
org.apache.lucene.core_3.5.0.v20120725-1805.jar.
But in Lucene 5.4.1, the class was moved to org.apache.lucene.analyzers-common_5.4.1.jar
!lucene3.5corevs.5.4.1analyzers-common.png|thumbnail!
Since org.jboss.tools.ws.jaxrs.core only depends on bundle
*org.apache.lucene.core;bundle-version="3.5.0";visibility:=reexport*, therefore
when lucene 5.4.1 is installed via RPM dependency from
rh-eclipse46-eclipse-platform-4.6.1-2.3.el7.x86_64, the wrong version is enabled in
Eclipse, and so webservices' jaxrs.core bundle can't find the *StandardAnalyzer*
class.
So, you could depend on the two bundles, but then we'd have to start using Lucene 5.x
in devstudio's update site.
(There is a 5.2.1 in Orbit:
http://download.eclipse.org/tools/orbit/downloads/drops/S20161021172207/ )
But it's not that simple, because o.a.l.queryparser has moved around even more, into a
new bundle - org.apache.lucene.queryparser_5.4.1.jar - and even into a new package:
* ParseException was in o.a.l.queryParser in 3.5.0;
* now it's in o.a.l.queryParser.xml in 5.4.1
!lucene3.5corevs.5.4.1queryparser.png|thumbnail!
So the solution here might be to move from require-bundle on org.apache.lucene.core 3.5 to
require-bundle on the three 5.x bundles:
* org.apache.lucene.core
* org.apache.lucene.analyzers-common
* org.apache.lucene.queryparser
was (Author: nickboldt):
OK, so here's the problem.
In lucene 3.5, the class org/apache/lucene/analysis/standard/StandardAnalyzer is in
org.apache.lucene.core_3.5.0.v20120725-1805.jar, not in
org.apache.lucene.analysis_3.5.0.v20120725-1805.jar.
But in Lucene 5.4.1, the class was moved to org.apache.lucene.analyzers-common_5.4.1.jar
!lucene3.5corevs.5.4.1analyzers-common.png|thumbnail!
And o.a.l.queryparser has moved around even more, into a new bundle -
org.apache.lucene.queryparser_5.4.1.jar - and even into a new package:
* ParseException was in o.a.l.queryParser in 3.5.0;
* now it's in o.a.l.queryParser.xml in 5.4.1
!lucene3.5corevs.5.4.1queryparser.png|thumbnail!
So, while I'd like to say we can just move jbosstools-webservices from using
Require-Bundle to Import-Package to allow either flavour to work, it's not that
simple.
Help docs cannot be opened:
org.apache.lucene.index.IndexFormatTooOldException - got 2.0.3, want 5.0+
-----------------------------------------------------------------------------------------------------
Key: JBDS-4133
URL:
https://issues.jboss.org/browse/JBDS-4133
Project: Red Hat JBoss Developer Studio (devstudio)
Issue Type: Bug
Components: build, rpm
Affects Versions: 10.2.0.AM2
Reporter: Nick Boldt
Assignee: Xavier Coulon
Priority: Critical
Fix For: 10.2.0.AM3
Attachments: lucene3.5corevs.5.4.1analyzers-common.png,
lucene3.5corevs.5.4.1queryparser.png
Snippet from log attached to JBDS-4131:
{code}
!ENTRY org.eclipse.epp.logging.aeri.ide 2 10 2016-10-21 14:55:03.519
!MESSAGE Updating the index from remote
‘https://aer.ctrlflow.com/downloads/redhat/problems.zip’ failed with exception:
org.apache.lucene.index.IndexFormatTooOldException: Format version is not supported
(resource
BufferedChecksumIndexInput(MMapIndexInput(path="/tmp/1477058103380-0/segments_1"))):
-11 (needs to be between 1071082519 and 1071082519). This version of Lucene only supports
indexes created with release 4.0 and later. ; version: 2.0.3.201610111629
!STACK 0
org.eclipse.epp.logging.aeri.core.util.Logs$LogTraceException
at
org.eclipse.epp.logging.aeri.core.util.Logs$LogTraceException.newTrace(Logs.java:387)
at org.eclipse.epp.logging.aeri.core.util.Logs.log(Logs.java:134)
at
org.eclipse.epp.internal.logging.aeri.ide.server.mars.ServerProblemsHistory$UpdateIndexJob.run(ServerProblemsHistory.java:322)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55){code}
And
{code}
!ENTRY org.eclipse.help.base 4 0 2016-10-21 14:32:21.719
!MESSAGE Error trying to consume Lucene index from bundle
org.eclipse.wst.sse.doc.user_1.1.100.v201610121400 [389]. Please use an index built with
Lucene 5 or higher.
{code}
then 100s of errors like this:
{code}
!MESSAGE Help document
/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_ui_preferencePages.html
cannot be opened.
{code}
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)