Skip to content

Instantly share code, notes, and snippets.

@olivermt
Created December 1, 2011 16:43
Show Gist options
  • Select an option

  • Save olivermt/1418088 to your computer and use it in GitHub Desktop.

Select an option

Save olivermt/1418088 to your computer and use it in GitHub Desktop.
Grails startup mongoDB error
| Error 2011-12-01 17:37:35,282 [Thread-16] ERROR context.GrailsContextLoader - Error executing bootstraps: Error creating bean with name 'mongoDatastore': Cannot resolve reference to bean 'mongoMappingContext' while setting bean property 'mappingContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoMappingContext': FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerException
Message: Error creating bean with name 'mongoDatastore': Cannot resolve reference to bean 'mongoMappingContext' while setting bean property 'mappingContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoMappingContext': FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerException
Line | Method
->> 100 | postProcessBeanFactory in org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 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 ''
^ 680 | run in java.lang.Thread
Caused by BeanCreationException: Error creating bean with name 'mongoMappingContext': FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerException
->> 100 | postProcessBeanFactory in org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 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 ''
^ 680 | run in java.lang.Thread
Caused by NullPointerException: null
->> 662 | isExcludedProperty in org.grails.datastore.mapping.model.config.GormMappingConfigurationStrategy
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 173 | getPersistentProperties in ''
| 80 | initialize . . . . . . in org.grails.datastore.mapping.model.AbstractPersistentEntity
| 150 | addPersistentEntityInternal in org.grails.datastore.mapping.model.AbstractMappingContext
| 135 | addPersistentEntity . in ''
| 63 | getObject in org.grails.datastore.gorm.bean.factory.AbstractMappingContextFactoryBean
| 100 | postProcessBeanFactory in org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator
| 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 ''
^ 680 | run in java.lang.Thread
| Error 2011-12-01 17:37:35,285 [Thread-16] ERROR [localhost].[/] - Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener
Message: Error creating bean with name 'mongoDatastore': Cannot resolve reference to bean 'mongoMappingContext' while setting bean property 'mappingContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoMappingContext': FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerException
Line | Method
->> 100 | postProcessBeanFactory in org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 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 ''
^ 680 | run in java.lang.Thread
Caused by BeanCreationException: Error creating bean with name 'mongoMappingContext': FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerException
->> 100 | postProcessBeanFactory in org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 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 ''
^ 680 | run in java.lang.Thread
Caused by NullPointerException: null
->> 662 | isExcludedProperty in org.grails.datastore.mapping.model.config.GormMappingConfigurationStrategy
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 173 | getPersistentProperties in ''
| 80 | initialize . . . . . . in org.grails.datastore.mapping.model.AbstractPersistentEntity
| 150 | addPersistentEntityInternal in org.grails.datastore.mapping.model.AbstractMappingContext
| 135 | addPersistentEntity . in ''
| 63 | getObject in org.grails.datastore.gorm.bean.factory.AbstractMappingContextFactoryBean
| 100 | postProcessBeanFactory in org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator
| 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 ''
^ 680 | run in java.lang.Thread
| Error 2011-12-01 17:37:35,287 [Thread-14] ERROR core.StandardContext - Error listenerStart
| Error 2011-12-01 17:37:35,288 [Thread-14] ERROR core.StandardContext - Context [] startup failed due to previous errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment