FWIW, my project is using Lucene 2.3.2

Eelco


On Tue, Jun 7, 2011 at 10:45 AM, Eelco Hillenius
<eelco.hillen...@gmail.com> wrote:
> I have a similar problem right now, and it seems to be related to the
> fact that I'm running an older Lucene version :
>
> Tue Jun 07 10:43:10 PDT 2011: Failed to load index provider lucene
> org/apache/lucene/util/Version
> java.lang.NoClassDefFoundError: org/apache/lucene/util/Version
>        at 
> org.neo4j.index.impl.lucene.LuceneDataSource.<clinit>(LuceneDataSource.java:86)
>        at 
> org.neo4j.index.impl.lucene.LuceneIndexImplementation.<init>(LuceneIndexImplementation.java:72)
>        at 
> org.neo4j.index.lucene.LuceneIndexProvider.load(LuceneIndexProvider.java:37)
>        at 
> org.neo4j.kernel.KernelData.loadIndexImplementations(KernelData.java:146)
>        at 
> org.neo4j.kernel.EmbeddedGraphDbImpl$2.initializeIndexProviders(EmbeddedGraphDbImpl.java:179)
>        at org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:159)
>        at 
> org.neo4j.kernel.EmbeddedGraphDbImpl.<init>(EmbeddedGraphDbImpl.java:189)
>        at 
> org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:79)
>        at 
> org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:63)
>        at 
> com.tinkerpop.blueprints.pgm.impls.neo4j.Neo4jGraph.<init>(Neo4jGraph.java:39)
>        at 
> com.tinkerpop.blueprints.pgm.impls.neo4j.Neo4jGraph.<init>(Neo4jGraph.java:29)
>        at ts4.graph.Neo4JModule.configure(Neo4JModule.java:38)
>        at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
>        at 
> com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
>        at com.google.inject.spi.Elements.getElements(Elements.java:101)
>        at 
> com.google.inject.InjectorShell$Builder.build(InjectorShell.java:135)
>        at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:102)
>        at com.google.inject.Guice.createInjector(Guice.java:92)
>        at com.google.inject.Guice.createInjector(Guice.java:80)
>        at com.teachscape.commons.di.Dependencies.<init>(Dependencies.java:289)
>        at com.teachscape.commons.di.Dependencies.<init>(Dependencies.java:238)
>        at ts4.graph.ImportTxlToGraphDb.main(ImportTxlToGraphDb.java:247)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
> Caused by: java.lang.ClassNotFoundException: org.apache.lucene.util.Version
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>        ... 27 more
>
>
> It took me some debugging to figure out that this exception was
> happening, because it is logged to a file (doesn't show up in the
> console I'm testing from. using SNAPSHOT gives this problem as well as
> M2 that I was using before. I have to move my test code to a different
> (clean) project so that I can test with a later Lucene version, but I
> assume that would fix the problem.
>
> Cheers,
>
> Eelco
>
> On Tue, Jun 7, 2011 at 2:19 AM, Peter Neubauer
> <peter.neuba...@neotechnology.com> wrote:
>> sSuper,
>> did you try with the latest builds, 1.4-SNAPSHOT, available from
>> https://repo.neo4j.org/content/groups/public/org/neo4j/neo4j/1.4-SNAPSHOT/ ?
>>
>> Cheers,
>>
>> /peter neubauer
>>
>> GTalk:      neubauer.peter
>> Skype       peter.neubauer
>> Phone       +46 704 106975
>> LinkedIn   http://www.linkedin.com/in/neubauer
>> Twitter      http://twitter.com/peterneubauer
>>
>> http://www.neo4j.org               - Your high performance graph database.
>> http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
>> http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
>>
>>
>> On Fri, Jun 3, 2011 at 9:31 AM, Super Wang <wangxu...@gmail.com> wrote:
>>
>>> I met this problem too, but I tried to change my MANIFEST.MF into this but
>>> not work:
>>>
>>> Manifest-Version: 1.0
>>> Bundle-ManifestVersion: 2
>>> Bundle-Name: Neo4j - Lucene Index
>>> Bundle-SymbolicName: org.neo4j.lucene-index
>>> Bundle-Version: 1.4.0.M03
>>> Bundle-ClassPath: neo4j-lucene-index-1.4.M03.jar
>>> Bundle-Vendor: The Neo4j Graph Database Project
>>> Export-Package: org.neo4j.index.lucene;version="1.4.0.M03";
>>>   uses:="org.neo4j.graphdb.index,
>>>    org.neo4j.kernel,
>>>   org.neo4j.graphdb,
>>>   org.apache.lucene.search,
>>>   org.apache.lucene.queryParser,
>>>    org.neo4j.index.impl.lucene"
>>> Built-By: tcagent
>>> Build-Jdk: 1.6.0_24
>>> Tool: Bnd-0.0.357
>>> Bundle-DocURL: http://neo4j.org/
>>> Created-By: 1.6.0_24 (Sun Microsystems Inc.)
>>> Import-Package: javax.transaction;version="1.1",
>>>  javax.transaction.xa;version="1.1",
>>>  org.apache.lucene.analysis,
>>>  org.apache.lucene.document,
>>>  org.apache.lucene.index,
>>>  org.apache.lucene.queryParser,
>>>  org.apache.lucene.search,
>>>  org.apache.lucene.store,
>>>  org.apache.lucene.util,
>>>  org.neo4j.graphdb;version="1.4",
>>>  org.neo4j.graphdb.index;version="1.4",
>>>  org.neo4j.helpers;version="1.4",
>>>  org.neo4j.helpers.collection;version="1.4",
>>>  org.neo4j.index.lucene;version="1.4",
>>>  org.neo4j.kernel;version="1.4",
>>>  org.neo4j.kernel.impl.batchinsert;version="1.4",
>>>  org.neo4j.kernel.impl.cache;version="1.4",
>>>  org.neo4j.kernel.impl.core;version="1.4",
>>>  org.neo4j.kernel.impl.index;version="1.4",
>>>  org.neo4j.kernel.impl.transaction;version="1.4",
>>>  org.neo4j.kernel.impl.transaction.xaframework;version="1.4",
>>>  org.neo4j.kernel.impl.util;version="1.4"
>>> Archiver-Version: Plexus Archiver
>>> Bundle-Description: Integration layer between Neo4j and Lucene, providing
>>> one possible implementation of the Index API.
>>> Bundle-License: http://www.gnu.org/licenses/gpl-3.0-standalone.html
>>> Bnd-LastModified: 1306490607478
>>>
>>>
>>>
>>> On Wed, May 25, 2011 at 20:41, Marco Gerber <mger...@junisphere.net>
>>> wrote:
>>>
>>> > Hi peter
>>> >
>>> > First visual inspection looks ok. I will test it in next few days.
>>> >
>>> > Regards,
>>> > Marco
>>> >
>>> >
>>> > -----Original Message-----
>>> > From: user-boun...@lists.neo4j.org on behalf of Peter Neubauer
>>> > Sent: Tue 24.05.2011 22:18
>>> > To: Neo4j user discussions
>>> > Subject: Re: [Neo4j] No index provider 'lucene' found - osgi
>>> >
>>> > Marco,
>>> > pushed,
>>> >
>>> >
>>> https://github.com/neo4j/community/commit/e8574e96315999ab04e1b484717bb2b1a3dfa9be
>>> >
>>> > Would be great if you could verify that things are working better with
>>> this
>>> > version.
>>> >
>>> > Cheers,
>>> >
>>> > /peter neubauer
>>> >
>>> > GTalk:      neubauer.peter
>>> > Skype       peter.neubauer
>>> > Phone       +46 704 106975
>>> > LinkedIn   http://www.linkedin.com/in/neubauer
>>> > Twitter      http://twitter.com/peterneubauer
>>> >
>>> > http://www.neo4j.org               - Your high performance graph
>>> database.
>>> > http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
>>> > http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
>>> >
>>> >
>>> > On Tue, May 24, 2011 at 9:59 PM, Peter Neubauer <
>>> > peter.neuba...@neotechnology.com> wrote:
>>> >
>>> > > Mmh,
>>> > > it seems moving the LuceneIndexProvider into the public
>>> > > org.neo4j.index.lucene space would the problem, right? Running the
>>> tests
>>> > > right now with the moved class to make sure things are working ...
>>> > >
>>> > > Cheers,
>>> > >
>>> > > /peter neubauer
>>> > >
>>> > > GTalk:      neubauer.peter
>>> > > Skype       peter.neubauer
>>> > > Phone       +46 704 106975
>>> > > LinkedIn   http://www.linkedin.com/in/neubauer
>>> > > Twitter      http://twitter.com/peterneubauer
>>> > >
>>> > > http://www.neo4j.org               - Your high performance graph
>>> > database.
>>> > > http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
>>> > > http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing
>>> party.
>>> > >
>>> > >
>>> > >
>>> > > On Tue, May 24, 2011 at 9:14 AM, Mattias Persson <
>>> > > matt...@neotechnology.com> wrote:
>>> > >
>>> > >> Cool, we should make the lucene index component more OSGi friendly...
>>> > this
>>> > >> seems like an easy enough fix. Thank you
>>> > >>
>>> > >> 2011/5/24 Marco Gerber <mger...@junisphere.net>
>>> > >>
>>> > >> > Hi Mattias
>>> > >> >
>>> > >> > I solved the problem after having a look on the neo4j source code.
>>> The
>>> > >> code
>>> > >> > uses java services to load any extensions on runtime. One of them is
>>> > >> defined
>>> > >> > in META-INF/services/org.neo4j.graphdb.index.IndexProvider which is
>>> > >> > 'org.neo4j.index.impl.lucene.LuceneIndexProvider' (in my opinion the
>>> > >> default
>>> > >> > index provider). However, the package containing this class isn't
>>> > >> getting
>>> > >> > exported with the bundle. So, the class isn't visibible at runtime
>>> and
>>> > >> no
>>> > >> > lucene index provider is getting loaded. So after extending the
>>> > >> MANIFEST.MF
>>> > >> > in the containing bundle called 'neo4j-lucene-index-1.3.jar
>>> > >> > [Bundle-SymbolicName: org.neo4j.lucene-index, Bundle-Version: 1.3]',
>>> > the
>>> > >> > java6Loader (in package org.neo4j.helpers.Service) service loader is
>>> > >> able to
>>> > >> > see and successfully load the lucene index provider.
>>> > >> > This is only a workaround and may be fixed in context of
>>> > >> > https://jira.springsource.org/browse/DATAGRAPH-88 .
>>> > >> >
>>> > >> > --- MANIFEST.MF.orig    2011-05-23 17:38:11.511686853 +0200
>>> > >> > +++ MANIFEST.MF.new     2011-05-23 17:37:39.163686852 +0200
>>> > >> > @@ -5,7 +5,7 @@
>>> > >> >  Build-Jdk: 1.6.0_20
>>> > >> >  Export-Package:
>>> > org.neo4j.index.lucene;uses:="org.neo4j.graphdb.index,
>>> > >> >
>>>  org.apache.lucene.search,org.neo4j.graphdb,org.apache.lucene.queryPar
>>> > >> > - ser";version="1.3"
>>> > >> > + ser";version="1.3",org.neo4j.index.impl.lucene;version="1.3"
>>> > >> >  Tool: Bnd-0.0.357
>>> > >> >  Bundle-Name: Neo4j - Lucene Index
>>> > >> >  Bundle-Vendor: The Neo4j Graph Database Project
>>> > >> >
>>> > >> > Regards,
>>> > >> > Marco
>>> > >> >
>>> > >> >
>>> > >> >
>>> > >> > -----Original Message-----
>>> > >> > From: user-boun...@lists.neo4j.org on behalf of Mattias Persson
>>> > >> > Sent: Mon 23.05.2011 14:35
>>> > >> > To: Neo4j user discussions
>>> > >> > Subject: Re: [Neo4j] No index provider 'lucene' found - osgi
>>> > >> >
>>> > >> > Hi Marco,
>>> > >> >
>>> > >> > Could you post the contents of <graphDb>/messages.log file also?
>>> > >> >
>>> > >> > 2011/5/23 Marco Gerber <mger...@junisphere.net>
>>> > >> >
>>> > >> > > Hello everybody
>>> > >> > >
>>> > >> > > I'm currently trying to make my spring based osgi application run
>>> > with
>>> > >> > > neo4j 1.3 . However, when I call
>>> > >> > > 'org.neo4j.kernel.IndexManagerImpl.forNodes' I got the following
>>> > error
>>> > >> > (see
>>> > >> > > [1] for a complete stack trace):
>>> > >> > >
>>> > >> > > > Invocation of init method failed; nested exception is
>>> > >> > > java.lang.IllegalArgumentException: No index provider 'lucene'
>>> found
>>> > >> > >
>>> > >> > > My setup is as follows:
>>> > >> > >
>>> > >> > > loaded and running bundles:
>>> > >> > > - org.apache.servicemix.bundles.lucene
>>> > >> > > - org.neo4j.kernel
>>> > >> > > - org.apache.servicemix.bundles.lucene
>>> > >> > >
>>> > >> > >
>>> > >> > > Do I have to load any lucene classes into the classpath on
>>> startup?
>>> > >> > >
>>> > >> > > Thanks a lot and let me know if I have to provide more information
>>> > >> > > Marco Gerber
>>> > >> > >
>>> > >> > > [1]
>>> > >> > > Caused by:
>>> org.springframework.beans.factory.BeanCreationException:
>>> > >> Error
>>> > >> > > creating bean with name 'myRepository': Invocation of init method
>>> > >> failed;
>>> > >> > > nested exception is java.lang.IllegalArgumentException: No index
>>> > >> provider
>>> > >> > > 'lucene' found
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:844)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:786)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:795)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:723)
>>> > >> > >        ... 20 common frames omitted
>>> > >> > > Caused by: java.lang.IllegalArgumentException: No index provider
>>> > >> 'lucene'
>>> > >> > > found
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.neo4j.kernel.IndexManagerImpl.getIndexProvider(IndexManagerImpl.java:71)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.neo4j.kernel.IndexManagerImpl.findIndexConfig(IndexManagerImpl.java:104)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.neo4j.kernel.IndexManagerImpl.getOrCreateIndexConfig(IndexManagerImpl.java:173)
>>> > >> > >        at
>>> > >> > >
>>> > org.neo4j.kernel.IndexManagerImpl.forNodes(IndexManagerImpl.java:244)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> net.junisphere.eranger.helloNeo4j.config.internal.repository.BaseRepository.<init>(BaseRepository.java:31)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> net.junisphere.eranger.helloNeo4j.config.internal.repository.ServiceRepository.init(ServiceRepository.java:35)
>>> > >> > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>> > Method)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> > >> > >        at java.lang.reflect.Method.invoke(Method.java:597)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
>>> > >> > >        at
>>> > >> > >
>>> > >> >
>>> > >>
>>> >
>>> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
>>> > >> > >        ... 33 common frames omitted
>>> > >> > > _______________________________________________
>>> > >> > > Neo4j mailing list
>>> > >> > > User@lists.neo4j.org
>>> > >> > > https://lists.neo4j.org/mailman/listinfo/user
>>> > >> > >
>>> > >> >
>>> > >> >
>>> > >> >
>>> > >> > --
>>> > >> > Mattias Persson, [matt...@neotechnology.com]
>>> > >> > Hacker, Neo Technology
>>> > >> > www.neotechnology.com
>>> > >> > _______________________________________________
>>> > >> > Neo4j mailing list
>>> > >> > User@lists.neo4j.org
>>> > >> > https://lists.neo4j.org/mailman/listinfo/user
>>> > >> >
>>> > >> >
>>> > >> > _______________________________________________
>>> > >> > Neo4j mailing list
>>> > >> > User@lists.neo4j.org
>>> > >> > https://lists.neo4j.org/mailman/listinfo/user
>>> > >> >
>>> > >> >
>>> > >>
>>> > >>
>>> > >> --
>>> > >> Mattias Persson, [matt...@neotechnology.com]
>>> > >> Hacker, Neo Technology
>>> > >> www.neotechnology.com
>>> > >> _______________________________________________
>>> > >> Neo4j mailing list
>>> > >> User@lists.neo4j.org
>>> > >> https://lists.neo4j.org/mailman/listinfo/user
>>> > >>
>>> > >
>>> > >
>>> > _______________________________________________
>>> > Neo4j mailing list
>>> > User@lists.neo4j.org
>>> > https://lists.neo4j.org/mailman/listinfo/user
>>> >
>>> >
>>> > _______________________________________________
>>> > Neo4j mailing list
>>> > User@lists.neo4j.org
>>> > https://lists.neo4j.org/mailman/listinfo/user
>>> >
>>> >
>>> _______________________________________________
>>> Neo4j mailing list
>>> User@lists.neo4j.org
>>> https://lists.neo4j.org/mailman/listinfo/user
>>>
>> _______________________________________________
>> Neo4j mailing list
>> User@lists.neo4j.org
>> https://lists.neo4j.org/mailman/listinfo/user
>>
>
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to