|
Long story short, I am unable to save objects in my BootStrap when using the Neo4J plugin. If I attempt to save an object directly in the BootStrap, I get an error (perhaps a NullPointerException) in the Neo4J persistence manager:
| Error 2012-08-12 15:32:41,893 [pool-7-thread-1] ERROR context.GrailsContextLoader - Error executing bootstraps: null Message: null Line | Method ->> 252 | getResource in org.neo4j.kernel.impl.persistence.PersistenceManager - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 155 | nodeCreate in '' | 270 | createNode . . . . . . . . . . . in org.neo4j.kernel.impl.core.NodeManager | 317 | createNode in org.neo4j.kernel.EmbeddedGraphDbImpl | 103 | createNode . . . . . . . . . . . in org.neo4j.kernel.EmbeddedGraphDatabase | 125 | persist in org.grails.datastore.gorm.neo4j.Neo4jSession | 166 | doSave . . . . . . . . . . . . . in org.grails.datastore.gorm.GormInstanceApi | 143 | doCall in org.grails.datastore.gorm.GormInstanceApi$_save_closure4 | 301 | execute . . . . . . . . . . . . in org.grails.datastore.mapping.core.DatastoreUtils | 34 | execute in org.grails.datastore.gorm.AbstractDatastoreApi | 142 | save . . . . . . . . . . . . . . in org.grails.datastore.gorm.GormInstanceApi | 102 | save in '' | 257 | call . . . . . . . . . . . . . . in org.grails.datastore.gorm.InstanceMethodInvokingClosure | 18 | doCall in BootStrap$_closure3 | 12 | doCall . . . . . . . . . . . . . in BootStrap$_closure1 | 300 | evaluateEnvironmentSpecificBlock in grails.util.Environment | 293 | executeForEnvironment . . . . . in '' | 269 | executeForCurrentEnvironment in '' | 303 | innerRun . . . . . . . . . . . . in java.util.concurrent.FutureTask$Sync | 138 | run in java.util.concurrent.FutureTask | 886 | runTask . . . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker | 908 | run in '' ^ 662 | run . . . . . . . . . . . . . . in java.lang.Thread I've also tried placing my object creation into a service that the BootStrap calls. In that case, it is unable to get the transactionManager bean. | Error 2012-08-11 22:13:26,241 [pool-7-thread-1] ERROR context.GrailsContextLoader - Error executing bootstraps: Error creating bean with name 'bootStrapService': Cannot create inner bean '(inner bean)' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#2': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wodFetcherService': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined Message: Error creating bean with name 'bootStrapService': Cannot create inner bean '(inner bean)' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#2': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wodFetcherService': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined This occurs when running the application and when running integration tests. This is how I have my DataConfig for Neo4J:
development {
grails {
neo4j {
type = "embedded"
location = "C:\\Users\\Joe\\AppData\\Local\\Temp\\neo4j"
params = []
}
}
}
test {
grails {
neo4j {
type = "embedded"
location = "C:\\Users\\Joe\\AppData\\Local\\Temp\\neo4j"
params = []
}
}
}
Do any of you guys know what could be causing this problem? Thanks! Joe |
| Powered by Nabble | Edit this page |
