Community
Participate
Working Groups
Lucene CQs: https://dev.eclipse.org/ipzilla/show_bug.cgi?id=6033 https://dev.eclipse.org/ipzilla/show_bug.cgi?id=6034 https://dev.eclipse.org/ipzilla/show_bug.cgi?id=6035 https://dev.eclipse.org/ipzilla/show_bug.cgi?id=6036 https://dev.eclipse.org/ipzilla/show_bug.cgi?id=6037 https://dev.eclipse.org/ipzilla/show_bug.cgi?id=6038 https://dev.eclipse.org/ipzilla/show_bug.cgi?id=6039 https://dev.eclipse.org/ipzilla/show_bug.cgi?id=6040 https://dev.eclipse.org/ipzilla/show_bug.cgi?id=6041 Solr CQs: https://dev.eclipse.org/ipzilla/show_bug.cgi?id=6042 https://dev.eclipse.org/ipzilla/show_bug.cgi?id=6043
Committed!
Created attachment 212915 [details] Dependencies for Orion Thanks, Gunnar. I just pulled the lucene and solr projects into my Orion workspace and had to make these changes to make it work. Now, I am not very sure if this was absolutely necessary. Is this change really required and should it go to the orbit projects or is there a way I can make it work by just making changes in the Orion projects? TIA
(In reply to comment #2) > Thanks, Gunnar. I just pulled the lucene and solr projects into my Orion > workspace and had to make these changes to make it work. I'm not sure about that spatial dependency but the IO makes sense. I'm pretty sure I ran a PDE analysis but it likely didn't catch all the required dependencies. I'll add Commons IO. Meanwhile, Can you test with the spatial package being optional?
(In reply to comment #3) > Meanwhile, Can you test with the spatial package being optional? Hmm.. It works with optional. I don't know why it produced an error earlier. Perhaps a clean+build could have helped me. Anyway, with the common.io.* inclusion, everything should work well now. Thanks!
I see the version of the commons IO has been upped to 2.0.0 but I am unable to find the project in the corresponding branch (v2_0_0) in orbit. Am I looking at the wrong place?
Commons IO 2.0.0 is not in Orbit but 2.0.1 is.
(In reply to comment #6) > Commons IO 2.0.0 is not in Orbit but 2.0.1 is. Thanks, I looked around in few other similar sounding branches, such as 2.2.0, but missed out that one. Everything looks alright now.
(In reply to comment #4) > Hmm.. It works with optional. I don't know why it produced an error earlier. > Perhaps a clean+build could have helped me. Anyway, with the common.io.* > inclusion, everything should work well now. Thanks! It compiles alright. But at run time, I get a ClassDefNotFoundError. As an alternative, I am importing the spatial package from Orion project that uses solr/core. Do you think that's the way to go? The Orion project is using the spatial classes only indirectly, i.e. through solr/core.
(In reply to comment #8) > It compiles alright. But at run time, I get a ClassDefNotFoundError. Can you post the stack? Can you also issue a "diag <solr.core.bundle.id>" on the OSGi console and print the output here? I'm wondering how the package import in your Orion bundles is related. Usually, Equinox should wire the optional dependencies all in if they are available at runtime. If it's required for some search functionality then we'll have to make more packages mandatory. I just tried to be conservative in the first run.
(In reply to comment #9) > I'm wondering how the package import in your Orion bundles is related. Usually, > Equinox should wire the optional dependencies all in if they are available at > runtime. If it's required for some search functionality then we'll have to make > more packages mandatory. I just tried to be conservative in the first run. It's essentially the same problem as the one I reported few comments above with the spatial package. It works either when I make the package mandatory or when I import it in my project.
Created attachment 212987 [details] Stacktrace The attachment has the stack trace with the NoClassDefFoundError. And the osgi command produces this: osgi> diag <solr.core.bundle.id> 2012-03-21 16:16:50.901 [Finalizer thread] ERROR org.apache.solr.core.SolrCore - REFCOUNT ERROR: unreferenced org.apache.solr.core.SolrCore@71067106 (Eclipse Web Search) has a reference count of 1 gogo: IllegalArgumentException: Cannot coerce diag(String) to any of [(long[])]
(In reply to comment #11) > osgi> diag <solr.core.bundle.id> Sorry, I wasn't clear enough. You need to replace "<solr.core.bundle.id>" with the number (bundle id) of the Solr Core bundle. You can get that number using the "ss solr" command.
Here is it: osgi> diag 33 reference:file:/C:/work/Orion/workspace/org.apache.solr.core/ [33] Direct constraints which are unresolved: Missing optionally imported package org.apache.commons.csv_[1.0.0,2.0.0). Missing optionally imported package org.apache.lucene.spatial_3.5.0. Missing optionally imported package org.apache.lucene.spatial.geohash_3.5.0. Missing optionally imported package org.apache.lucene.spatial.geometry_3.5.0. Missing optionally imported package org.apache.lucene.spatial.geometry.shape_3.5.0. Missing optionally imported package org.apache.lucene.spatial.tier_3.5.0. Missing optionally imported package org.apache.lucene.spatial.tier.projections_3.5.0. Missing optionally imported package org.mortbay.jetty_6.1.0. Missing optionally imported package org.mortbay.jetty.servlet_6.1.0. Missing optionally imported package org.mortbay.log_6.1.0.
Thanks, can you also check if there is a bundle which exports the package, i.e. is the relevant Lucene bundle installed and resolved?
(In reply to comment #14) > Thanks, can you also check if there is a bundle which exports the package, i.e. > is the relevant Lucene bundle installed and resolved? I have the org.apache.lucene.spatial project in my workspace and the manifest has something like this: Bundle-SymbolicName: org.apache.lucene.spatial Bundle-Version: 3.5.0.qualifier Export-Package: org.apache.lucene.spatial;version="3.5.0", org.apache.lucene.spatial.geohash;version="3.5.0", ... ...