grails neo4j插件获取bean错误
在我的grails项目上运行应用程序时出现此错误grails neo4j插件获取bean错误,grails,neo4j,Grails,Neo4j,在我的grails项目上运行应用程序时出现此错误 Error 2013-03-26 12:27:06,100 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing the application: Error creating bean with name 'neo4jDatastore': Cannot resolve reference to bean 'graphDatabaseSer
Error 2013-03-26 12:27:06,100 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing the application: Error creating bean with name 'neo4jDatastore': Cannot resolve reference to bean 'graphDatabaseService' while setting bean property 'graphDatabaseService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'graphDatabaseService': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.neo4j.kernel.EmbeddedGraphDatabase]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Unable to lock store [/usr/local/Cellar/neo4j/community-1.8.1-unix/libexec/data/graph.db/neostore.relationshiptypestore.db.names], this is usually a result of some other Neo4j kernel running using the same store.
Message: Error creating bean with name 'neo4jDatastore': Cannot resolve reference to bean 'graphDatabaseService' while setting bean property 'graphDatabaseService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'graphDatabaseService': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.neo4j.kernel.EmbeddedGraphDatabase]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Unable to lock store [/usr/local/Cellar/neo4j/community-1.8.1-unix/libexec/data/graph.db/neostore.relationshiptypestore.db.names], this is usually a result of some other Neo4j kernel running using the same store.
Line | Method
->> 117 | postProcessBeanFactory in org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator
| 303 |在java.util.concurrent.FutureTask$Sync中运行innerRun
|138 |运行。在java.util.concurrent.FutureTask中
|895 | java.util.concurrent.ThreadPoolExecutor$Worker中的runTask
|918 |运行。在“
^680 |在java.lang.Thread中运行
由BeanCreationException引起:创建名为“graphDatabaseService”的bean时出错:bean实例化失败;嵌套异常为org.springframework.beans.BeanInstantiationException:无法实例化bean类[org.neo4j.kernel.EmbeddedGraphDatabase]:构造函数引发异常;嵌套异常是java.lang.IllegalStateException:无法锁定存储区[/usr/local/cillar/neo4j/community-1.8.1-unix/libexec/data/graph.db/neostore.relationshiptypestore.db.names],这通常是其他一些neo4j内核使用同一存储区运行的结果。
->>117 | org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator中的postProcessBeanFactory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|303 |在java.util.concurrent.FutureTask$Sync中运行innerRun
|138 |运行。在java.util.concurrent.FutureTask中
|895 | java.util.concurrent.ThreadPoolExecutor$Worker中的runTask
|918 |运行。在“
^680 |在java.lang.Thread中运行
由BeanInstationException引起:无法实例化bean类[org.neo4j.kernel.EmbeddedGraphDatabase]:构造函数引发异常;嵌套异常是java.lang.IllegalStateException:无法锁定存储区[/usr/local/cillar/neo4j/community-1.8.1-unix/libexec/data/graph.db/neostore.relationshiptypestore.db.names],这通常是其他一些neo4j内核使用同一存储区运行的结果。
->>117 | org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator中的postProcessBeanFactory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|303 |在java.util.concurrent.FutureTask$Sync中运行innerRun
|138 |运行。在java.util.concurrent.FutureTask中
|895 | java.util.concurrent.ThreadPoolExecutor$Worker中的runTask
|918 |运行。在“
^680 |在java.lang.Thread中运行
由IllegalStateException引起:无法锁定存储区[/usr/local/cillar/neo4j/community-1.8.1-unix/libexec/data/graph.db/neostore.relationshiptypestore.db.names],这通常是其他一些neo4j内核使用同一存储区运行的结果。
->>178 |检查org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore中的存储
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|119英寸“
| 71 | . . . . . . . . 在org.neo4j.kernel.impl.nioneo.store.AbstractDynamicStore中
|47 |在org.neo4j.kernel.impl.nioneo.store.DynamicStringStore中
|111 | org.neo4j.kernel.impl.nioneo.store.StoreFactory中的newDynamicStringStore
|117 |新关系类型存储在“”
|93 |尝试新商店。在“
|82 |新店位于“
| 232 | . . . . . . . . 在org.neo4j.kernel.impl.nioneo.xa.neostorexadasource中
|457 |在org.neo4j.kernel.InternalAbstractGraphDatabase中创建
|227 |运行。在“
|79 |在org.neo4j.kernel.EmbeddedGraphDatabase中
| 70 | . . . . . . . . 在“
|117 | org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator中的postProcessBeanFactory
|303 |内部运行。在java.util.concurrent.FutureTask$Sync中
|138 |在java.util.concurrent.FutureTask中运行
|895 |运行任务。在java.util.concurrent.ThreadPoolExecutor$Worker中
|918 |磨合“
^680 |运行。在java.lang.Thread中
如有任何建议,我们将不胜感激。谢谢 答案与 您的例外情况包含- 构造函数抛出异常;嵌套异常是 java.lang.IllegalStateException:无法锁定存储 [/usr/local/ceral/neo4j/community-1.8.1-unix/libexec/data/graph.db/neostore.relationshiptypestore.db.names], 这通常是使用 同一家商店
这是不言自明的。Oops在这行的前半部分没有看到它
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . . . . . . . . in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run . . . . . . . . . in ''
^ 680 | run in java.lang.Thread
Caused by BeanCreationException: Error creating bean with name 'graphDatabaseService': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.neo4j.kernel.EmbeddedGraphDatabase]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Unable to lock store [/usr/local/Cellar/neo4j/community-1.8.1-unix/libexec/data/graph.db/neostore.relationshiptypestore.db.names], this is usually a result of some other Neo4j kernel running using the same store.
->> 117 | postProcessBeanFactory in org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . . . . . . . . in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run . . . . . . . . . in ''
^ 680 | run in java.lang.Thread
Caused by BeanInstantiationException: Could not instantiate bean class [org.neo4j.kernel.EmbeddedGraphDatabase]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Unable to lock store [/usr/local/Cellar/neo4j/community-1.8.1-unix/libexec/data/graph.db/neostore.relationshiptypestore.db.names], this is usually a result of some other Neo4j kernel running using the same store.
->> 117 | postProcessBeanFactory in org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . . . . . . . . in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run . . . . . . . . . in ''
^ 680 | run in java.lang.Thread
Caused by IllegalStateException: Unable to lock store [/usr/local/Cellar/neo4j/community-1.8.1-unix/libexec/data/graph.db/neostore.relationshiptypestore.db.names], this is usually a result of some other Neo4j kernel running using the same store.
->> 178 | checkStorage in org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 119 | <init> in ''
| 71 | <init> . . . . . . . . in org.neo4j.kernel.impl.nioneo.store.AbstractDynamicStore
| 47 | <init> in org.neo4j.kernel.impl.nioneo.store.DynamicStringStore
| 111 | newDynamicStringStore in org.neo4j.kernel.impl.nioneo.store.StoreFactory
| 117 | newRelationshipTypeStore in ''
| 93 | attemptNewNeoStore . . in ''
| 82 | newNeoStore in ''
| 232 | <init> . . . . . . . . in org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource
| 457 | create in org.neo4j.kernel.InternalAbstractGraphDatabase
| 227 | run . . . . . . . . . in ''
| 79 | <init> in org.neo4j.kernel.EmbeddedGraphDatabase
| 70 | <init> . . . . . . . . in ''
| 117 | postProcessBeanFactory in org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator
| 303 | innerRun . . . . . . . in java.util.concurrent.FutureTask$Sync
| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . . . . . . . . in java.lang.Thread