{"action":"created","issue":{"url":"https://api.github.com/repos/noamt/elasticsearch-grails-plugin/issues/163","repository_url":"https://api.github.com/repos/noamt/elasticsearch-grails-plugin","labels_url":"https://api.github.com/repos/noamt/elasticsearch-grails-plugin/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/noamt/elasticsearch-grails-plugin/issues/163/comments","events_url":"https://api.github.com/repos/noamt/elasticsearch-grails-plugin/issues/163/events","html_url":"https://github.com/noamt/elasticsearch-grails-plugin/issues/163","id":162683202,"number":163,"title":"SpringApplication & ClusterHealthStatus on Grails 3.1.x","user":{"login":"abrahaj","id":296327,"avatar_url":"https://avatars.githubusercontent.com/u/296327?v=3","gravatar_id":"","url":"https://api.github.com/users/abrahaj","html_url":"https://github.com/abrahaj","followers_url":"https://api.github.com/users/abrahaj/followers","following_url":"https://api.github.com/users/abrahaj/following{/other_user}","gists_url":"https://api.github.com/users/abrahaj/gists{/gist_id}","starred_url":"https://api.github.com/users/abrahaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abrahaj/subscriptions","organizations_url":"https://api.github.com/users/abrahaj/orgs","repos_url":"https://api.github.com/users/abrahaj/repos","events_url":"https://api.github.com/users/abrahaj/events{/privacy}","received_events_url":"https://api.github.com/users/abrahaj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-28T13:16:14Z","updated_at":"2016-07-15T15:02:20Z","closed_at":null,"body":"Plugin 1.2.0 fails on Grails 3.1.x (3.1.8) \r\n\r\n`Running application...\r\nERROR org.springframework.boot.SpringApplication - Application startup failed\r\norg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplicationPostProcessor' defined in books.Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugins.elasticsearch.ElasticSearchAdminService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\r\n\tat org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:120)\r\n\tat org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:678)\r\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:520)\r\n\tat org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)\r\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)\r\n\tat org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:307)\r\n\tat grails.boot.GrailsApp.run(GrailsApp.groovy:55)\r\n\tat grails.boot.GrailsApp.run(GrailsApp.groovy:374)\r\n\tat grails.boot.GrailsApp.run(GrailsApp.groovy:363)\r\n\tat grails.boot.GrailsApp$run.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 books.Application.main(Application.groovy:8)\r\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugins.elasticsearch.ElasticSearchAdminService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException\r\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)\r\n\t... 23 common frames omitted\r\nCaused by: org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugins.elasticsearch.ElasticSearchAdminService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException\r\n\tat grails.core.ArtefactHandlerAdapter.newArtefactClass(ArtefactHandlerAdapter.java:170)\r\n\tat grails.core.DefaultGrailsApplication.addArtefact(DefaultGrailsApplication.java:784)\r\n\tat grails.core.DefaultGrailsApplication.addOverridableArtefact(DefaultGrailsApplication.java:778)\r\n\tat grails.core.DefaultGrailsApplication.addOverridableArtefact(DefaultGrailsApplication.java:763)\r\n\tat org.grails.plugins.AbstractGrailsPluginManager.registerProvidedArtefacts(AbstractGrailsPluginManager.java:317)\r\n\tat grails.boot.config.GrailsApplicationPostProcessor.performGrailsInitializationSequence(GrailsApplicationPostProcessor.groovy:104)\r\n\tat grails.boot.config.GrailsApplicationPostProcessor.initializeGrailsApplication(GrailsApplicationPostProcessor.groovy:88)\r\n\tat grails.boot.config.GrailsApplicationPostProcessor.setApplicationContext(GrailsApplicationPostProcessor.groovy:208)\r\n\tat grails.boot.config.GrailsApplicationPostProcessor.<init>(GrailsApplicationPostProcessor.groovy:73)\r\n\tat grails.boot.config.GrailsAutoConfiguration.grailsApplicationPostProcessor(GrailsAutoConfiguration.groovy:62)\r\n\tat books.Application.grailsApplicationPostProcessor(Application.groovy)\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.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)\r\n\t... 24 common frames omitted\r\nCaused by: java.lang.reflect.InvocationTargetException: null\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:422)\r\n\tat org.springsource.loaded.ri.ReflectiveInterceptor.jlrConstructorNewInstance(ReflectiveInterceptor.java:1075)\r\n\tat grails.core.ArtefactHandlerAdapter.newArtefactClass(ArtefactHandlerAdapter.java:161)\r\n\t... 40 common frames omitted\r\nCaused by: java.lang.NoClassDefFoundError: org/elasticsearch/cluster/health/ClusterHealthStatus\r\n\tat java.lang.Class.getDeclaredMethods0(Native Method)\r\n\tat java.lang.Class.privateGetDeclaredMethods(Class.java:2701)\r\n\tat java.lang.Class.getDeclaredMethods(Class.java:1975)\r\n\tat org.springsource.loaded.ri.ReflectiveInterceptor.jlClassGetDeclaredMethods(ReflectiveInterceptor.java:153)\r\n\tat org.grails.core.util.ClassPropertyFetcher.init(ClassPropertyFetcher.java:185)\r\n\tat org.grails.core.util.ClassPropertyFetcher.<init>(ClassPropertyFetcher.java:95)\r\n\tat org.grails.core.util.ClassPropertyFetcher.forClass(ClassPropertyFetcher.java:86)\r\n\tat org.grails.core.util.ClassPropertyFetcher.forClass(ClassPropertyFetcher.java:61)\r\n\tat org.grails.core.AbstractGrailsClass.<init>(AbstractGrailsClass.java:91)\r\n\tat org.grails.core.AbstractInjectableGrailsClass.<init>(AbstractInjectableGrailsClass.java:31)\r\n\tat org.grails.core.DefaultGrailsServiceClass.<init>(DefaultGrailsServiceClass.java:32)\r\n\t... 46 common frames omitted\r\nCaused by: java.lang.ClassNotFoundException: org.elasticsearch.cluster.health.ClusterHealthStatus\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:381)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n\t... 57 common frames omitted\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':bootRun'.\r\n> Process 'command '/usr/java/jdk1.8.0_71/bin/java'' finished with non-zero exit value 1\r\n`\r\n\r\n\r\n\r\nBuild info:\r\n\r\n\r\n`dependencies {\r\n    compile \"org.springframework.boot:spring-boot-starter-logging\"\r\n    compile \"org.springframework.boot:spring-boot-autoconfigure\"\r\n    compile \"org.springframework.boot:spring-boot-starter-security\"\r\n    compile \"org.grails:grails-core\"\r\n    compile \"org.springframework.boot:spring-boot-starter-actuator\"\r\n    compile \"org.springframework.boot:spring-boot-starter-tomcat\"\r\n    compile \"org.grails:grails-dependencies\"\r\n    compile \"org.grails:grails-web-boot\"\r\n    compile \"org.grails.plugins:cache\"\r\n    compile \"org.grails.plugins:scaffolding\"\r\n    compile \"org.grails.plugins:hibernate4\"\r\n    compile \"org.hibernate:hibernate-ehcache\"\r\n    console \"org.grails:grails-console\"\r\n    compile 'com.bertramlabs.plugins:sass-asset-pipeline:2.9.4'\r\n    profile \"org.grails.profiles:web:3.1.8\"\r\n    runtime \"com.bertramlabs.plugins:asset-pipeline-grails:2.8.2\"\r\n    runtime 'mysql:mysql-connector-java:5.1.39'\r\n    compile 'org.grails.plugins:elasticsearch:1.2.0'`\r\n"},"comment":{"url":"https://api.github.com/repos/noamt/elasticsearch-grails-plugin/issues/comments/232976174","html_url":"https://github.com/noamt/elasticsearch-grails-plugin/issues/163#issuecomment-232976174","issue_url":"https://api.github.com/repos/noamt/elasticsearch-grails-plugin/issues/163","id":232976174,"user":{"login":"marcoscarceles","id":473056,"avatar_url":"https://avatars.githubusercontent.com/u/473056?v=3","gravatar_id":"","url":"https://api.github.com/users/marcoscarceles","html_url":"https://github.com/marcoscarceles","followers_url":"https://api.github.com/users/marcoscarceles/followers","following_url":"https://api.github.com/users/marcoscarceles/following{/other_user}","gists_url":"https://api.github.com/users/marcoscarceles/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoscarceles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoscarceles/subscriptions","organizations_url":"https://api.github.com/users/marcoscarceles/orgs","repos_url":"https://api.github.com/users/marcoscarceles/repos","events_url":"https://api.github.com/users/marcoscarceles/events{/privacy}","received_events_url":"https://api.github.com/users/marcoscarceles/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T15:02:19Z","updated_at":"2016-07-15T15:02:19Z","body":"Effectively this is a bug related to the ootb third party versions provided by Spring Boot. There's an issue with the plugin's documentation. The following should be added to `build.gradle`:\r\n\r\n```"}}
{"actor":{"display_login":"marcoscarceles"}}