https://bugzilla.redhat.com/show_bug.cgi?id=1406065
Bug ID: 1406065 Summary: PyDev search always gives a java.lang.ExceptionInInitializerError Product: Fedora Version: 25 Component: eclipse-pydev Assignee: akurtako@redhat.com Reporter: rhbz@genodeftest.de QA Contact: extras-qa@fedoraproject.org CC: akurtako@redhat.com, eclipse-sig@lists.fedoraproject.org, jjohnstn@redhat.com
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
https://bugzilla.redhat.com/show_bug.cgi?id=1406065
--- Comment #1 from Christian Stadelmann rhbz@genodeftest.de --- *** Bug 1406074 has been marked as a duplicate of this bug. ***
https://bugzilla.redhat.com/show_bug.cgi?id=1406065
--- Comment #2 from Christian Stadelmann rhbz@genodeftest.de --- bug #1406074 has some more details as reported by eclipse+Abrt.
https://bugzilla.redhat.com/show_bug.cgi?id=1406065
--- Comment #3 from Fedora Update System updates@fedoraproject.org --- 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
https://bugzilla.redhat.com/show_bug.cgi?id=1406065
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1406065
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |CLOSED Resolution|--- |ERRATA Last Closed| |2017-01-19 00:55:31
--- Comment #4 from Fedora Update System updates@fedoraproject.org --- 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.
eclipse-sig@lists.fedoraproject.org