Bug 1406065 - PyDev search always gives a java.lang.ExceptionInInitializerError
Summary: PyDev search always gives a java.lang.ExceptionInInitializerError
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: eclipse-pydev
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alexander Kurtakov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1406074 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-19 15:55 UTC by Christian Stadelmann
Modified: 2017-01-19 05:55 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-19 05:55:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Christian Stadelmann 2016-12-19 15:55:12 UTC
Description of problem:
Every time I search in eclipse using the "PyDev Search" feature, I get an error.

Version-Release number of selected component (if applicable):
eclipse-pydev-5.4.0-1.fc25.x86_64
eclipse-pydev-5.1.2-1.fc25.x86_64

How reproducible:
always, even on a fresh project with just a single file

Steps to Reproduce:
1. have a workspace with any PyDev project
2. open search (Ctrl+H)
3. search for any term

Actual results:
Always gives an Error

Expected results:
No error

Additional info:


Backtrace on a fresh project:

eclipse.buildId=4.6.1.v20160915-0852
java.version=1.8.0_111
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Command-line arguments:  -os linux -ws gtk -arch x86_64

org.eclipse.core.jobs
Error
Mon Dec 19 16:51:49 CET 2016
An internal error occurred during: "PyDev Index Search".

java.lang.NoClassDefFoundError: Could not initialize class org.apache.lucene.codecs.Codec$Holder
	at org.apache.lucene.codecs.Codec.getDefault(Codec.java:140)
	at org.apache.lucene.index.LiveIndexWriterConfig.<init>(LiveIndexWriterConfig.java:120)
	at org.apache.lucene.index.IndexWriterConfig.<init>(IndexWriterConfig.java:140)
	at org.python.pydev.shared_core.index.IndexApi.init(IndexApi.java:100)
	at org.python.pydev.shared_core.index.IndexApi.<init>(IndexApi.java:82)
	at org.python.pydev.shared_core.index.IndexApi.<init>(IndexApi.java:95)
	at com.python.pydev.analysis.additionalinfo.ReferenceSearchesLucene.internalSearch(ReferenceSearchesLucene.java:157)
	at com.python.pydev.analysis.additionalinfo.ReferenceSearchesLucene.search(ReferenceSearchesLucene.java:94)
	at com.python.pydev.analysis.search_index.PySearchIndexQuery.run(PySearchIndexQuery.java:84)
	at org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:92)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)



Backtrace on an older project:

eclipse.buildId=4.6.1.v20160915-0852
java.version=1.8.0_111
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Command-line arguments:  -os linux -ws gtk -arch x86_64

org.eclipse.core.jobs
Error
Mon Dec 19 16:47:34 CET 2016
An internal error occurred during: "PyDev Index Search".

java.lang.ExceptionInInitializerError
	at org.apache.lucene.codecs.PostingsFormat.forName(PostingsFormat.java:112)
	at org.apache.lucene.codecs.lucene54.Lucene54Codec.<init>(Lucene54Codec.java:161)
	at org.apache.lucene.codecs.lucene54.Lucene54Codec.<init>(Lucene54Codec.java:81)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at java.lang.Class.newInstance(Class.java:442)
	at org.apache.lucene.util.NamedSPILoader.reload(NamedSPILoader.java:72)
	at org.apache.lucene.util.NamedSPILoader.<init>(NamedSPILoader.java:49)
	at org.apache.lucene.util.NamedSPILoader.<init>(NamedSPILoader.java:38)
	at org.apache.lucene.codecs.Codec$Holder.<clinit>(Codec.java:47)
	at org.apache.lucene.codecs.Codec.getDefault(Codec.java:140)
	at org.apache.lucene.index.LiveIndexWriterConfig.<init>(LiveIndexWriterConfig.java:120)
	at org.apache.lucene.index.IndexWriterConfig.<init>(IndexWriterConfig.java:140)
	at org.python.pydev.shared_core.index.IndexApi.init(IndexApi.java:100)
	at org.python.pydev.shared_core.index.IndexApi.<init>(IndexApi.java:82)
	at org.python.pydev.shared_core.index.IndexApi.<init>(IndexApi.java:95)
	at com.python.pydev.analysis.additionalinfo.ReferenceSearchesLucene.internalSearch(ReferenceSearchesLucene.java:157)
	at com.python.pydev.analysis.additionalinfo.ReferenceSearchesLucene.search(ReferenceSearchesLucene.java:94)
	at com.python.pydev.analysis.search_index.PySearchIndexQuery.run(PySearchIndexQuery.java:84)
	at org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:92)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.ClassCastException: class org.apache.lucene.codecs.lucene50.Lucene50PostingsFormat
	at java.lang.Class.asSubclass(Class.java:3404)
	at org.apache.lucene.util.SPIClassIterator.next(SPIClassIterator.java:158)
	at org.apache.lucene.util.NamedSPILoader.reload(NamedSPILoader.java:70)
	at org.apache.lucene.util.NamedSPILoader.<init>(NamedSPILoader.java:51)
	at org.apache.lucene.util.NamedSPILoader.<init>(NamedSPILoader.java:38)
	at org.apache.lucene.codecs.PostingsFormat$Holder.<clinit>(PostingsFormat.java:49)
	... 23 more

Comment 1 Christian Stadelmann 2016-12-19 16:14:36 UTC
*** Bug 1406074 has been marked as a duplicate of this bug. ***

Comment 2 Christian Stadelmann 2016-12-19 16:15:44 UTC
bug #1406074 has some more details as reported by eclipse+Abrt.

Comment 3 Fedora Update System 2017-01-14 17:50:41 UTC
ecj-4.6.2-1.fc25 eclipse-4.6.2-3.fc25 eclipse-dltk-5.7.0-1.fc25 eclipse-ecf-3.13.3-1.fc25 eclipse-egit-4.6.0-1.fc25 eclipse-egit-github-4.6.0-1.fc25 eclipse-epp-logging-2.0.3-2.fc25 eclipse-jgit-4.6.0-2.fc25 eclipse-mpc-1.5.3-1.fc25 eclipse-pdt-4.2.0-1.fc25 lucene4-4.10.4-7.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-ddde4436aa

Comment 4 Fedora Update System 2017-01-19 05:55:31 UTC
ecj-4.6.2-1.fc25, eclipse-4.6.2-3.fc25, eclipse-dltk-5.7.0-1.fc25, eclipse-ecf-3.13.3-1.fc25, eclipse-egit-4.6.0-1.fc25, eclipse-egit-github-4.6.0-1.fc25, eclipse-epp-logging-2.0.3-2.fc25, eclipse-jgit-4.6.0-2.fc25, eclipse-mpc-1.5.3-1.fc25, eclipse-pdt-4.2.0-1.fc25, lucene4-4.10.4-7.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.