https://bugzilla.redhat.com/show_bug.cgi?id=1263580
Bug ID: 1263580 Summary: An internal error occurred during: "Repository registry initialization". Product: Fedora Version: 23 Component: eclipse-m2e-core Assignee: gerard@ryan.lt Reporter: sgehwolf@redhat.com QA Contact: extras-qa@fedoraproject.org CC: eclipse-sig@lists.fedoraproject.org, gerard@ryan.lt, mizdebsk@redhat.com
Description of problem: When I load up my workspace which includes maven projects an error dialog pops up with the following error: "An internal error occurred during: "Repository registry initialization".
Version-Release number of selected component (if applicable): eclipse-m2e-core-1.6.1-1.fc23.noarch
How reproducible: 100%
Steps to Reproduce: 1. Import a maven project using Import => Maven => Existing Maven projects 2. Observe the error dialog appearing. 3. Error dialog appears every time the same workspace is loaded.
Actual results: Error dialog appearing.
Expected results: No error dialog. Either ignore Lucene version used or discover the lucene version in use somehow.
Additional info: Stack trace from the error log: java.lang.NoSuchFieldError: LUCENE_36 at org.apache.maven.index.context.NexusIndexWriter.defaultConfig(NexusIndexWriter.java:60) at org.apache.maven.index.context.DefaultIndexingContext.getWriterConfig(DefaultIndexingContext.java:512) at org.apache.maven.index.context.DefaultIndexingContext.openAndWarmup(DefaultIndexingContext.java:500) at org.apache.maven.index.context.DefaultIndexingContext.prepareIndex(DefaultIndexingContext.java:201) at org.apache.maven.index.context.DefaultIndexingContext.<init>(DefaultIndexingContext.java:150) at org.apache.maven.index.context.DefaultIndexingContext.<init>(DefaultIndexingContext.java:170) at org.apache.maven.index.DefaultNexusIndexer.addIndexingContextForced(DefaultNexusIndexer.java:147) at org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager.createIndexingContext(NexusIndexManager.java:964) at org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager.setIndexDetails(NexusIndexManager.java:931) at org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager.repositoryAdded(NexusIndexManager.java:877) at org.eclipse.m2e.core.internal.repository.RepositoryRegistry.addRepository(RepositoryRegistry.java:163) at org.eclipse.m2e.core.internal.repository.RepositoryRegistry.updateRegistry(RepositoryRegistry.java:236) at org.eclipse.m2e.core.internal.repository.RepositoryRegistryUpdateJob.run(RepositoryRegistryUpdateJob.java:47) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
$ rpm -q lucene lucene-5.3.0-1.fc23.noarch
https://bugzilla.redhat.com/show_bug.cgi?id=1263580
--- Comment #1 from Severin Gehwolf sgehwolf@redhat.com --- $ rpm -qa | grep eclipse eclipse-e4-importer-0.1.0-0.3.git5ac5197.fc23.noarch eclipse-swt-4.5.0-14.fc23.x86_64 eclipse-webtools-servertools-3.7.0-1.fc23.noarch eclipse-jgit-4.0.1-4.fc23.noarch eclipse-remote-2.0.0-1.fc23.noarch eclipse-rse-3.7.0-2.fc23.noarch eclipse-p2-discovery-4.5.0-14.fc23.noarch eclipse-gef-3.10.0-1.fc23.noarch eclipse-linuxtools-4.0.0-6.fc23.noarch eclipse-dtp-1.12.0-5.fc23.noarch eclipse-equinox-osgi-4.5.0-14.fc23.x86_64 eclipse-m2e-workspace-0.2.0-2.fc23.noarch eclipse-webtools-common-core-3.7.0-1.fc23.noarch eclipse-webtools-sourceediting-3.7.0-1.fc23.noarch eclipse-ptp-9.0.0-1.fc23.x86_64 eclipse-filesystem-1.0-5.fc23.x86_64 eclipse-cdt-8.7.0-8.fc23.x86_64 eclipse-webtools-servertools-core-3.7.0-1.fc23.noarch eclipse-linuxtools-libhover-4.0.0-6.fc23.noarch eclipse-emf-runtime-2.11.0-3.fc23.noarch eclipse-xsd-2.10.1-4.fc23.noarch eclipse-emf-core-2.11.0-3.fc23.x86_64 eclipse-mylyn-docs-wikitext-3.16.0-2.fc23.noarch eclipse-m2e-core-1.6.1-1.fc23.noarch eclipse-pde-4.5.0-14.fc23.x86_64 eclipse-cdt-parsers-8.7.0-8.fc23.x86_64 devassistant-dap-eclipse-0.10.0dev-9.fc23.noarch eclipse-jdt-4.5.0-14.fc23.x86_64 eclipse-egit-4.0.1-4.fc23.noarch eclipse-fedorapackager-0.5.0-5.fc23.noarch eclipse-mylyn-3.16.0-2.fc23.noarch eclipse-changelog-4.0.0-6.fc23.noarch eclipse-platform-4.5.0-14.fc23.x86_64 eclipse-ecf-core-3.10.1-1.fc23.x86_64 maven-eclipse-plugin-2.9-14.fc23.noarch eclipse-rpm-editor-4.0.0-6.fc23.noarch eclipse-webtools-common-3.7.0-1.fc23.noarch eclipse-tm-terminal-4.0.0-2.fc23.noarch
https://bugzilla.redhat.com/show_bug.cgi?id=1263580
--- Comment #2 from Gerard Ryan gerard@ryan.lt --- Hi Severin,
I had a quick look at this today (I couldn't spend enough time on it yet to provide a fix though). I believe that the change will need to be made in maven-indexer (another one of my packages).
What's happening is that maven-indexer (and eclipse-m2e-core) have not been keeping up to date with lucene as aggressively as Fedora. In maven indexer, this LUCENE_36 is a constant that comes from a class in lucene that has the supported API versions. In 5.x, the 3.x API versions appear to have been dropped, so that's why we're seeing this error.
There's an (as yet unreleased) commit in maven-indexer repo to update to a newer version of lucene, I don't know why it hasn't been released yet (it has been there for a while).
What we could do in Fedora is update to an unreleased version of maven-indexer to get this patch, but then we might hit other issues (it might be unreleased because there are things broken; or the interface that m2e-core uses has changed; or anything else).
There's also a constant in that class, LATEST, which should always work. As you suggest, we should probably change to use this, and I'll probably do this, once I've fixed the actual issue. This would at least prevent this blocker from appearing (although it might just mask other issues down the line).
Thanks for reporting, Gerard.
https://bugzilla.redhat.com/show_bug.cgi?id=1263580
Max Kovgan kovganm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kovganm@gmail.com
--- Comment #3 from Max Kovgan kovganm@gmail.com --- Any ETA on the issue? it currently reproduces pretty steadily for: eclipse-m2e-core-1.6.2-2.fc23.noarch
https://bugzilla.redhat.com/show_bug.cgi?id=1263580
--- Comment #4 from Fedora Update System updates@fedoraproject.org --- eclipse-m2e-core-1.6.2-3.fc23 maven-indexer-5.1.1-8.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-27e4145ca1
https://bugzilla.redhat.com/show_bug.cgi?id=1263580
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1263580
--- Comment #5 from Gerard Ryan gerard@ryan.lt --- Sorry, I kept putting this off...thanks for reminding me Max. Please try the new update & let me know if it fixes the issue for you.
https://bugzilla.redhat.com/show_bug.cgi?id=1263580
--- Comment #6 from Max Kovgan kovganm@gmail.com --- works for me :) Thanks!
https://bugzilla.redhat.com/show_bug.cgi?id=1263580
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #7 from Fedora Update System updates@fedoraproject.org --- eclipse-m2e-core-1.6.2-3.fc23, maven-indexer-5.1.1-8.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update eclipse-m2e-core maven-indexer' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-27e4145ca1
https://bugzilla.redhat.com/show_bug.cgi?id=1263580
Mat Booth mat.booth@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mat.booth@redhat.com
--- Comment #8 from Mat Booth mat.booth@redhat.com --- When I installed this update, I get errors like this in my workspace log:
http://fpaste.org/300518/08796114/
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.m2e.core.internal.MavenPluginActivator.start() of bundle org.eclipse.m2e.core. Caused by: java.lang.NoClassDefFoundError: org/apache/lucene/index/IndexableField Caused by: java.lang.ClassNotFoundException: org.apache.lucene.index.IndexableField cannot be found by org.eclipse.m2e.maven.indexer_1.6.2.20151213-0055
So are still missing a dependency?
I see no lucene jars in /usr/share/eclipse/dropins/m2e-core/eclipse/plugins/ so maybe we are missing some symlinks?
https://bugzilla.redhat.com/show_bug.cgi?id=1263580
--- Comment #9 from Mat Booth mat.booth@redhat.com --- Aha, so the problem is because I did not get the maven-indexer update at the same time as the eclipse-m2e-core update.
As discussed on IRC, amending the Requires on maven-indexer should fix this -- thanks for your help!
https://bugzilla.redhat.com/show_bug.cgi?id=1263580
--- Comment #10 from Fedora Update System updates@fedoraproject.org --- eclipse-m2e-core-1.6.2-4.fc23 maven-indexer-5.1.1-8.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-27e4145ca1
https://bugzilla.redhat.com/show_bug.cgi?id=1263580
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1263580
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #11 from Fedora Update System updates@fedoraproject.org --- eclipse-m2e-core-1.6.2-4.fc23, maven-indexer-5.1.1-8.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update eclipse-m2e-core maven-indexer' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-27e4145ca1
https://bugzilla.redhat.com/show_bug.cgi?id=1263580
--- Comment #12 from Fedora Update System updates@fedoraproject.org --- eclipse-m2e-core-1.6.2-4.fc23, maven-indexer-5.1.1-8.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1263580
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |eclipse-m2e-core-1.6.2-4.fc | |23 Resolution|--- |ERRATA Last Closed| |2015-12-18 02:53:10
eclipse-sig@lists.fedoraproject.org