{"action":"created","issue":{"url":"https://api.github.com/repos/grails/grails-data-mapping/issues/576","labels_url":"https://api.github.com/repos/grails/grails-data-mapping/issues/576/labels{/name}","comments_url":"https://api.github.com/repos/grails/grails-data-mapping/issues/576/comments","events_url":"https://api.github.com/repos/grails/grails-data-mapping/issues/576/events","html_url":"https://github.com/grails/grails-data-mapping/issues/576","id":115776629,"number":576,"title":"App with hibernate and neo4j starts with errors","user":{"login":"amadfida","id":2160973,"avatar_url":"https://avatars.githubusercontent.com/u/2160973?v=3","gravatar_id":"","url":"https://api.github.com/users/amadfida","html_url":"https://github.com/amadfida","followers_url":"https://api.github.com/users/amadfida/followers","following_url":"https://api.github.com/users/amadfida/following{/other_user}","gists_url":"https://api.github.com/users/amadfida/gists{/gist_id}","starred_url":"https://api.github.com/users/amadfida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amadfida/subscriptions","organizations_url":"https://api.github.com/users/amadfida/orgs","repos_url":"https://api.github.com/users/amadfida/repos","events_url":"https://api.github.com/users/amadfida/events{/privacy}","received_events_url":"https://api.github.com/users/amadfida/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-09T01:32:17Z","updated_at":"2015-11-09T08:00:52Z","closed_at":null,"body":"Grails 2.5.2 application that depends on both hibernate and neo4j plugins, starts with errors when configuring dynamic methods in hibernate plugin, \r\n\r\n``` Groovy\r\n\r\n    plugins {\r\n        compile \":neo4j:5.0.0.BUILD-SNAPSHOT\"\r\n        runtime \":hibernate4:4.3.8.1\"\r\n        ....\r\n    }\r\n```\r\n\r\nFollowing is the error thrown,\r\n\r\n``` java\r\n\r\n2015-11-08 17:28:01,945\t[localhost-startStop-1]\tERROR\tStackTrace:213\tFull Stack Trace:\r\njava.lang.IllegalArgumentException: Constructor argument 'application' cannot be null\r\n\tat org.springframework.util.Assert.notNull(Assert.java:112)\r\n\tat org.codehaus.groovy.grails.orm.hibernate.metaclass.AbstractStaticPersistentMethod.<init>(AbstractStaticPersistentMethod.java:54)\r\n\tat org.codehaus.groovy.grails.orm.hibernate.metaclass.AbstractClausedStaticPersistentMethod.<init>(AbstractClausedStaticPersistentMethod.java:402)\r\n\tat org.codehaus.groovy.grails.orm.hibernate.metaclass.FindAllByPersistentMethod.<init>(FindAllByPersistentMethod.java:63)\r\n\tat org.codehaus.groovy.grails.orm.hibernate.HibernateGormEnhancer.createDynamicFinders(HibernateGormEnhancer.groovy:53)\r\n\tat org.grails.datastore.gorm.GormEnhancer.getFinders(GormEnhancer.groovy:207)\r\n\tat org.codehaus.groovy.grails.orm.hibernate.HibernateGormEnhancer.getStaticApi(HibernateGormEnhancer.groovy:69)\r\n\tat org.grails.datastore.gorm.GormEnhancer.<init>(GormEnhancer.groovy:84)\r\n\tat org.codehaus.groovy.grails.orm.hibernate.AbstractHibernateGormEnhancer.<init>(AbstractHibernateGormEnhancer.groovy:42)\r\n\tat org.codehaus.groovy.grails.orm.hibernate.HibernateGormEnhancer.<init>(HibernateGormEnhancer.groovy:47)\r\n\tat org.codehaus.groovy.grails.orm.hibernate.cfg.HibernateUtils.enhanceSessionFactory(HibernateUtils.groovy:114)\r\n\tat org.codehaus.groovy.grails.orm.hibernate.cfg.HibernateUtils.enhanceSessionFactories(HibernateUtils.groovy:95)\r\n\tat org.codehaus.groovy.grails.orm.hibernate.cfg.HibernateUtils.enhanceSessionFactories(HibernateUtils.groovy)\r\n\tat org.codehaus.groovy.grails.orm.hibernate.cfg.HibernateUtils$enhanceSessionFactories.call(Unknown Source)\r\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)\r\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)\r\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)\r\n\tat grails.plugin.hibernate4.HibernatePluginSupport$__clinit__closure3.doCall(HibernatePluginSupport.groovy:459)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1426)\r\n\tat org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)\r\n\tat groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)\r\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)\r\n\tat groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)\r\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)\r\n\tat groovy.lang.Closure.call(Closure.java:426)\r\n\tat org.codehaus.groovy.grails.plugins.DefaultGrailsPlugin.doWithDynamicMethods(DefaultGrailsPlugin.java:702)\r\n\tat org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager.doDynamicMethods(DefaultGrailsPluginManager.java:783)\r\n\tat org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator.configure(GrailsRuntimeConfigurator.java:172)\r\n\tat org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator.configure(GrailsRuntimeConfigurator.java:127)\r\n\tat org.codehaus.groovy.grails.web.context.GrailsConfigUtils.configureWebApplicationContext(GrailsConfigUtils.java:126)\r\n\tat org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener.initWebApplicationContext(GrailsContextLoaderListener.java:109)\r\n\tat org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)\r\n\tat org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992)\r\n\tat org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5490)\r\n\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)\r\n\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n2015-11-08 17:28:01,949\t[localhost-startStop-1]\tERROR\tStackTrace:213\tFull Stack Trace:\r\njava.lang.IllegalArgumentException: Constructor argument 'application' cannot be null\r\n\tat org.grails.datastore.gorm.GormEnhancer.getFinders(GormEnhancer.groovy:207)\r\n\tat org.grails.datastore.gorm.GormEnhancer.<init>(GormEnhancer.groovy:84)\r\n\tat grails.plugin.hibernate4.HibernatePluginSupport$__clinit__closure3.doCall(HibernatePluginSupport.groovy:459)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n2015-11-08 17:28:01,949\t[localhost-startStop-1]\tERROR\tDefaultGrailsPluginManager:213\tError configuring dynamic methods for plugin [hibernate4:4.3.10]: Constructor argument 'application' cannot be null\r\njava.lang.IllegalArgumentException: Constructor argument 'application' cannot be null\r\n\tat org.grails.datastore.gorm.GormEnhancer.getFinders(GormEnhancer.groovy:207)\r\n\tat org.grails.datastore.gorm.GormEnhancer.<init>(GormEnhancer.groovy:84)\r\n\tat grails.plugin.hibernate4.HibernatePluginSupport$__clinit__closure3.doCall(HibernatePluginSupport.groovy:459)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/grails/grails-data-mapping/issues/comments/154991516","html_url":"https://github.com/grails/grails-data-mapping/issues/576#issuecomment-154991516","issue_url":"https://api.github.com/repos/grails/grails-data-mapping/issues/576","id":154991516,"user":{"login":"graemerocher","id":66626,"avatar_url":"https://avatars.githubusercontent.com/u/66626?v=3","gravatar_id":"","url":"https://api.github.com/users/graemerocher","html_url":"https://github.com/graemerocher","followers_url":"https://api.github.com/users/graemerocher/followers","following_url":"https://api.github.com/users/graemerocher/following{/other_user}","gists_url":"https://api.github.com/users/graemerocher/gists{/gist_id}","starred_url":"https://api.github.com/users/graemerocher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemerocher/subscriptions","organizations_url":"https://api.github.com/users/graemerocher/orgs","repos_url":"https://api.github.com/users/graemerocher/repos","events_url":"https://api.github.com/users/graemerocher/events{/privacy}","received_events_url":"https://api.github.com/users/graemerocher/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T08:00:52Z","updated_at":"2015-11-09T08:00:52Z","body":"Right, I am working on this, it will be ready in a week or 2"}}