Connected to the target VM, address: '127.0.0.1:52886', transport: 'socket'
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.1.4.RELEASE)
2017-03-07 14:06:29.528 INFO 7500 --- [ main] com.water.es.Bootstrap : Starting Bootstrap on gz39-014903 with PID 7500 (E:\personal\github\mw-es\mw-es-service\target\classes started by zhangmiaojie in E:\personal\github\mw-es)
2017-03-07 14:06:29.600 INFO 7500 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1db2b13: startup date [Tue Mar 07 14:06:29 CST 2017]; root of context hierarchy
2017-03-07 14:06:30.531 INFO 7500 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'beanNameViewResolver' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.class]]
2017-03-07 14:06:31.373 INFO 7500 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$d2fa63a5] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-03-07 14:06:31.906 INFO 7500 --- [ main] .t.TomcatEmbeddedServletContainerFactory : Server initialized with port: 8081
2017-03-07 14:06:32.134 INFO 7500 --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat
2017-03-07 14:06:32.135 INFO 7500 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/7.0.54
2017-03-07 14:06:32.320 INFO 7500 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2017-03-07 14:06:32.321 INFO 7500 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2726 ms
2017-03-07 14:06:33.045 INFO 7500 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2017-03-07 14:06:33.048 INFO 7500 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2017-03-07 14:06:33.362 INFO 7500 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-03-07 14:06:33.657 INFO 7500 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2017-03-07 14:06:33.659 INFO 7500 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest)
2017-03-07 14:06:33.699 INFO 7500 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-03-07 14:06:33.699 INFO 7500 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-03-07 14:06:33.771 INFO 7500 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1db2b13: startup date [Tue Mar 07 14:06:29 CST 2017]; root of context hierarchy
2017-03-07 14:06:34.132 WARN 7500 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IArticleRepositories': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
2017-03-07 14:06:34.136 INFO 7500 --- [ main] o.apache.catalina.core.StandardService : Stopping service Tomcat
2017-03-07 14:06:34.145 INFO 7500 --- [ main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [file:/D:/Program%20Files/Java/JDK1.8/jre/lib/charsets.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/deploy.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/javaws.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/jce.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/jfr.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/jfxswt.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/jsse.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/management-agent.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/plugin.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/resources.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/rt.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/access-bridge-32.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/cldrdata.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/dnsns.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/jaccess.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/jfxrt.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/localedata.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/nashorn.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/sunec.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/sunjce_provider.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/sunmscapi.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/sunpkcs11.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/zipfs.jar, file:/E:/personal/github/mw-es/mw-es-service/target/classes/, file:/D:/local/repo/org/springframework/boot/spring-boot-starter-web/1.1.4.RELEASE/spring-boot-starter-web-1.1.4.RELEASE.jar, file:/D:/local/repo/org/springframework/boot/spring-boot-starter/1.1.4.RELEASE/spring-boot-starter-1.1.4.RELEASE.jar, file:/D:/local/repo/org/springframework/boot/spring-boot/1.1.4.RELEASE/spring-boot-1.1.4.RELEASE.jar, file:/D:/local/repo/org/springframework/boot/spring-boot-autoconfigure/1.1.4.RELEASE/spring-boot-autoconfigure-1.1.4.RELEASE.jar, file:/D:/local/repo/org/springframework/boot/spring-boot-starter-logging/1.1.4.RELEASE/spring-boot-starter-logging-1.1.4.RELEASE.jar, file:/D:/local/repo/org/slf4j/jul-to-slf4j/1.7.7/jul-to-slf4j-1.7.7.jar, file:/D:/local/repo/org/slf4j/log4j-over-slf4j/1.7.7/log4j-over-slf4j-1.7.7.jar, file:/D:/local/repo/ch/qos/logback/logback-classic/1.1.2/logback-classic-1.1.2.jar, file:/D:/local/repo/ch/qos/logback/logback-core/1.1.2/logback-core-1.1.2.jar, file:/D:/local/repo/org/yaml/snakeyaml/1.13/snakeyaml-1.13.jar, file:/D:/local/repo/org/springframework/boot/spring-boot-starter-tomcat/1.1.4.RELEASE/spring-boot-starter-tomcat-1.1.4.RELEASE.jar, file:/D:/local/repo/org/apache/tomcat/embed/tomcat-embed-core/7.0.54/tomcat-embed-core-7.0.54.jar, file:/D:/local/repo/org/apache/tomcat/embed/tomcat-embed-el/7.0.54/tomcat-embed-el-7.0.54.jar, file:/D:/local/repo/org/apache/tomcat/embed/tomcat-embed-logging-juli/7.0.54/tomcat-embed-logging-juli-7.0.54.jar, file:/D:/local/repo/org/hibernate/hibernate-validator/5.0.3.Final/hibernate-validator-5.0.3.Final.jar, file:/D:/local/repo/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar, file:/D:/local/repo/org/jboss/logging/jboss-logging/3.1.1.GA/jboss-logging-3.1.1.GA.jar, file:/D:/local/repo/com/fasterxml/classmate/1.0.0/classmate-1.0.0.jar, file:/D:/local/repo/org/springframework/data/spring-data-elasticsearch/2.0.4.RELEASE/spring-data-elasticsearch-2.0.4.RELEASE.jar, file:/D:/local/repo/commons-lang/commons-lang/2.6/commons-lang-2.6.jar, file:/D:/local/repo/joda-time/joda-time/2.9.4/joda-time-2.9.4.jar, file:/D:/local/repo/org/elasticsearch/elasticsearch/2.2.0/elasticsearch-2.2.0.jar, file:/D:/local/repo/org/apache/lucene/lucene-core/5.4.1/lucene-core-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-backward-codecs/5.4.1/lucene-backward-codecs-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-analyzers-common/5.4.1/lucene-analyzers-common-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-queries/5.4.1/lucene-queries-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-memory/5.4.1/lucene-memory-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-highlighter/5.4.1/lucene-highlighter-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-queryparser/5.4.1/lucene-queryparser-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-sandbox/5.4.1/lucene-sandbox-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-suggest/5.4.1/lucene-suggest-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-misc/5.4.1/lucene-misc-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-join/5.4.1/lucene-join-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-grouping/5.4.1/lucene-grouping-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-spatial/5.4.1/lucene-spatial-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-spatial3d/5.4.1/lucene-spatial3d-5.4.1.jar, file:/D:/local/repo/com/spatial4j/spatial4j/0.5/spatial4j-0.5.jar, file:/D:/local/repo/org/elasticsearch/securesm/1.0/securesm-1.0.jar, file:/D:/local/repo/com/carrotsearch/hppc/0.7.1/hppc-0.7.1.jar, file:/D:/local/repo/org/joda/joda-convert/1.2/joda-convert-1.2.jar, file:/D:/local/repo/com/fasterxml/jackson/dataformat/jackson-dataformat-smile/2.6.2/jackson-dataformat-smile-2.6.2.jar, file:/D:/local/repo/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.6.2/jackson-dataformat-yaml-2.6.2.jar, file:/D:/local/repo/com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.6.2/jackson-dataformat-cbor-2.6.2.jar, file:/D:/local/repo/com/ning/compress-lzf/1.0.2/compress-lzf-1.0.2.jar, file:/D:/local/repo/com/tdunning/t-digest/3.0/t-digest-3.0.jar, file:/D:/local/repo/org/hdrhistogram/HdrHistogram/2.1.6/HdrHistogram-2.1.6.jar, file:/D:/local/repo/commons-cli/commons-cli/1.3.1/commons-cli-1.3.1.jar, file:/D:/local/repo/com/twitter/jsr166e/1.1.0/jsr166e-1.1.0.jar, file:/D:/local/repo/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar, file:/D:/local/repo/org/slf4j/jcl-over-slf4j/1.7.21/jcl-over-slf4j-1.7.21.jar, file:/D:/local/repo/org/springframework/data/spring-data-commons/1.12.2.RELEASE/spring-data-commons-1.12.2.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-jdbc/4.3.6.RELEASE/spring-jdbc-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-beans/4.3.6.RELEASE/spring-beans-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/data/spring-data-redis/1.5.0.RELEASE/spring-data-redis-1.5.0.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-web/4.3.6.RELEASE/spring-web-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-webmvc/4.3.6.RELEASE/spring-webmvc-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-expression/4.3.6.RELEASE/spring-expression-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-core/4.3.6.RELEASE/spring-core-4.3.6.RELEASE.jar, file:/D:/local/repo/commons-logging/commons-logging/1.2/commons-logging-1.2.jar, file:/D:/local/repo/org/springframework/spring-oxm/4.3.6.RELEASE/spring-oxm-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-aop/4.3.6.RELEASE/spring-aop-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-tx/4.3.6.RELEASE/spring-tx-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-context/4.3.6.RELEASE/spring-context-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-context-support/4.0.2.RELEASE/spring-context-support-4.0.2.RELEASE.jar, file:/D:/local/repo/org/springframework/ldap/spring-ldap-core/1.3.1.RELEASE/spring-ldap-core-1.3.1.RELEASE.jar, file:/D:/local/repo/com/fasterxml/jackson/core/jackson-databind/2.6.0/jackson-databind-2.6.0.jar, file:/D:/local/repo/com/fasterxml/jackson/core/jackson-annotations/2.6.0/jackson-annotations-2.6.0.jar, file:/D:/local/repo/com/fasterxml/jackson/core/jackson-core/2.6.0/jackson-core-2.6.0.jar, file:/D:/local/repo/org/aspectj/aspectjrt/1.5.4/aspectjrt-1.5.4.jar, file:/D:/local/repo/org/aspectj/aspectjweaver/1.8.2/aspectjweaver-1.8.2.jar, file:/D:/local/repo/com/google/guava/guava/18.0/guava-18.0.jar, file:/D:/local/repo/org/elasticsearch/client/transport/5.1.2/transport-5.1.2.jar, file:/D:/local/repo/org/elasticsearch/plugin/transport-netty3-client/5.1.2/transport-netty3-client-5.1.2.jar, file:/D:/local/repo/org/elasticsearch/plugin/transport-netty4-client/5.1.2/transport-netty4-client-5.1.2.jar, file:/D:/local/repo/io/netty/netty-buffer/4.1.6.Final/netty-buffer-4.1.6.Final.jar, file:/D:/local/repo/io/netty/netty-codec/4.1.6.Final/netty-codec-4.1.6.Final.jar, file:/D:/local/repo/io/netty/netty-codec-http/4.1.6.Final/netty-codec-http-4.1.6.Final.jar, file:/D:/local/repo/io/netty/netty-common/4.1.6.Final/netty-common-4.1.6.Final.jar, file:/D:/local/repo/io/netty/netty-handler/4.1.6.Final/netty-handler-4.1.6.Final.jar, file:/D:/local/repo/io/netty/netty-resolver/4.1.6.Final/netty-resolver-4.1.6.Final.jar, file:/D:/local/repo/io/netty/netty-transport/4.1.6.Final/netty-transport-4.1.6.Final.jar, file:/D:/local/repo/org/elasticsearch/plugin/reindex-client/5.1.2/reindex-client-5.1.2.jar, file:/D:/local/repo/org/elasticsearch/client/rest/5.1.2/rest-5.1.2.jar, file:/D:/local/repo/org/apache/httpcomponents/httpasyncclient/4.1.2/httpasyncclient-4.1.2.jar, file:/D:/local/repo/org/apache/httpcomponents/httpcore-nio/4.4.5/httpcore-nio-4.4.5.jar, file:/D:/local/repo/org/elasticsearch/plugin/lang-mustache-client/5.1.2/lang-mustache-client-5.1.2.jar, file:/D:/local/repo/com/github/spullara/mustache/java/compiler/0.9.3/compiler-0.9.3.jar, file:/D:/local/repo/org/elasticsearch/plugin/percolator-client/5.1.2/percolator-client-5.1.2.jar, file:/D:/local/repo/com/alibaba/fastjson/1.2.10/fastjson-1.2.10.jar, file:/D:/local/repo/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar, file:/D:/local/repo/log4j/log4j/1.2.16/log4j-1.2.16.jar, file:/D:/local/repo/jline/jline/0.9.94/jline-0.9.94.jar, file:/D:/local/repo/junit/junit/3.8.1/junit-3.8.1.jar, file:/D:/local/repo/io/netty/netty/3.7.0.Final/netty-3.7.0.Final.jar, file:/D:/local/repo/com/101tec/zkclient/0.10/zkclient-0.10.jar, file:/E:/personal/github/mw-es/mw-es-api/target/classes/, file:/D:/local/repo/com/alibaba/dubbo/2.8.4/dubbo-2.8.4.jar, file:/D:/local/repo/aopalliance/aopalliance/1.0/aopalliance-1.0.jar, file:/D:/local/repo/org/javassist/javassist/3.15.0-GA/javassist-3.15.0-GA.jar, file:/D:/local/repo/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar, file:/D:/local/repo/org/apache/httpcomponents/httpclient/4.2.1/httpclient-4.2.1.jar, file:/D:/local/repo/org/apache/httpcomponents/httpcore/4.2.1/httpcore-4.2.1.jar, file:/D:/local/repo/commons-codec/commons-codec/1.6/commons-codec-1.6.jar, file:/D:/local/repo/commons-pool/commons-pool/1.6/commons-pool-1.6.jar, file:/D:/local/repo/org/apache/curator/curator-framework/2.5.0/curator-framework-2.5.0.jar, file:/D:/local/repo/org/apache/curator/curator-client/2.5.0/curator-client-2.5.0.jar, file:/D:/Program%20Files/IntelliJ%20IDEA%2014.0.2/lib/idea_rt.jar]
2017-03-07 14:06:34.158 INFO 7500 --- [ main] utoConfigurationReportLoggingInitializer :
Error starting ApplicationContext. To display the auto-configuration report enabled debug logging (start with --debug)
2017-03-07 14:06:34.164 ERROR 7500 --- [ main] o.s.boot.SpringApplication : Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IArticleRepositories': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:120)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:952)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:941)
at com.water.es.Bootstrap.main(Bootstrap.java:21)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:467)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
... 18 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
... 28 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
... 41 common frames omitted
Caused by: java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.elasticsearchClient(ElasticsearchAutoConfiguration.java:61)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$9c6e3531.CGLIB$elasticsearchClient$1(<generated>)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$9c6e3531$$FastClassBySpringCGLIB$$83d94c4b.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$9c6e3531.elasticsearchClient(<generated>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
... 42 common frames omitted
Caused by: java.lang.NullPointerException: null value in entry: path.home=null
at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:33)
at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:135)
at com.google.common.collect.ImmutableSortedMap.fromEntries(ImmutableSortedMap.java:282)
at com.google.common.collect.ImmutableSortedMap.copyOfInternal(ImmutableSortedMap.java:275)
at com.google.common.collect.ImmutableSortedMap.copyOf(ImmutableSortedMap.java:206)
at org.elasticsearch.common.settings.Settings.<init>(Settings.java:83)
at org.elasticsearch.common.settings.Settings$Builder.build(Settings.java:1209)
at org.elasticsearch.node.NodeBuilder.settings(NodeBuilder.java:84)
at org.springframework.data.elasticsearch.client.NodeClientFactoryBean.afterPropertiesSet(NodeClientFactoryBean.java:73)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.createNodeClient(ElasticsearchAutoConfiguration.java:75)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.createClient(ElasticsearchAutoConfiguration.java:69)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.elasticsearchClient(ElasticsearchAutoConfiguration.java:57)
... 52 common frames omitted
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IArticleRepositories': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:120)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:952)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:941)
at com.water.es.Bootstrap.main(Bootstrap.java:21)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:467)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
... 18 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
... 28 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
... 41 more
Caused by: java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.elasticsearchClient(ElasticsearchAutoConfiguration.java:61)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$9c6e3531.CGLIB$elasticsearchClient$1(<generated>)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$9c6e3531$$FastClassBySpringCGLIB$$83d94c4b.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$9c6e3531.elasticsearchClient(<generated>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
... 42 more
Caused by: java.lang.NullPointerException: null value in entry: path.home=null
at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:33)
at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:135)
at com.google.common.collect.ImmutableSortedMap.fromEntries(ImmutableSortedMap.java:282)
at com.google.common.collect.ImmutableSortedMap.copyOfInternal(ImmutableSortedMap.java:275)
at com.google.common.collect.ImmutableSortedMap.copyOf(ImmutableSortedMap.java:206)
at org.elasticsearch.common.settings.Settings.<init>(Settings.java:83)
at org.elasticsearch.common.settings.Settings$Builder.build(Settings.java:1209)
at org.elasticsearch.node.NodeBuilder.settings(NodeBuilder.java:84)
at org.springframework.data.elasticsearch.client.NodeClientFactoryBean.afterPropertiesSet(NodeClientFactoryBean.java:73)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.createNodeClient(ElasticsearchAutoConfiguration.java:75)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.createClient(ElasticsearchAutoConfiguration.java:69)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.elasticsearchClient(ElasticsearchAutoConfiguration.java:57)
... 52 more
Disconnected from the target VM, address: '127.0.0.1:52886', transport: 'socket'
Process finished with exit code 1
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.1.4.RELEASE)
2017-03-07 14:06:29.528 INFO 7500 --- [ main] com.water.es.Bootstrap : Starting Bootstrap on gz39-014903 with PID 7500 (E:\personal\github\mw-es\mw-es-service\target\classes started by zhangmiaojie in E:\personal\github\mw-es)
2017-03-07 14:06:29.600 INFO 7500 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1db2b13: startup date [Tue Mar 07 14:06:29 CST 2017]; root of context hierarchy
2017-03-07 14:06:30.531 INFO 7500 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'beanNameViewResolver' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.class]]
2017-03-07 14:06:31.373 INFO 7500 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$d2fa63a5] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-03-07 14:06:31.906 INFO 7500 --- [ main] .t.TomcatEmbeddedServletContainerFactory : Server initialized with port: 8081
2017-03-07 14:06:32.134 INFO 7500 --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat
2017-03-07 14:06:32.135 INFO 7500 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/7.0.54
2017-03-07 14:06:32.320 INFO 7500 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2017-03-07 14:06:32.321 INFO 7500 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2726 ms
2017-03-07 14:06:33.045 INFO 7500 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2017-03-07 14:06:33.048 INFO 7500 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2017-03-07 14:06:33.362 INFO 7500 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-03-07 14:06:33.657 INFO 7500 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2017-03-07 14:06:33.659 INFO 7500 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest)
2017-03-07 14:06:33.699 INFO 7500 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-03-07 14:06:33.699 INFO 7500 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-03-07 14:06:33.771 INFO 7500 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1db2b13: startup date [Tue Mar 07 14:06:29 CST 2017]; root of context hierarchy
2017-03-07 14:06:34.132 WARN 7500 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IArticleRepositories': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
2017-03-07 14:06:34.136 INFO 7500 --- [ main] o.apache.catalina.core.StandardService : Stopping service Tomcat
2017-03-07 14:06:34.145 INFO 7500 --- [ main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [file:/D:/Program%20Files/Java/JDK1.8/jre/lib/charsets.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/deploy.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/javaws.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/jce.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/jfr.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/jfxswt.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/jsse.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/management-agent.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/plugin.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/resources.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/rt.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/access-bridge-32.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/cldrdata.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/dnsns.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/jaccess.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/jfxrt.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/localedata.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/nashorn.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/sunec.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/sunjce_provider.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/sunmscapi.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/sunpkcs11.jar, file:/D:/Program%20Files/Java/JDK1.8/jre/lib/ext/zipfs.jar, file:/E:/personal/github/mw-es/mw-es-service/target/classes/, file:/D:/local/repo/org/springframework/boot/spring-boot-starter-web/1.1.4.RELEASE/spring-boot-starter-web-1.1.4.RELEASE.jar, file:/D:/local/repo/org/springframework/boot/spring-boot-starter/1.1.4.RELEASE/spring-boot-starter-1.1.4.RELEASE.jar, file:/D:/local/repo/org/springframework/boot/spring-boot/1.1.4.RELEASE/spring-boot-1.1.4.RELEASE.jar, file:/D:/local/repo/org/springframework/boot/spring-boot-autoconfigure/1.1.4.RELEASE/spring-boot-autoconfigure-1.1.4.RELEASE.jar, file:/D:/local/repo/org/springframework/boot/spring-boot-starter-logging/1.1.4.RELEASE/spring-boot-starter-logging-1.1.4.RELEASE.jar, file:/D:/local/repo/org/slf4j/jul-to-slf4j/1.7.7/jul-to-slf4j-1.7.7.jar, file:/D:/local/repo/org/slf4j/log4j-over-slf4j/1.7.7/log4j-over-slf4j-1.7.7.jar, file:/D:/local/repo/ch/qos/logback/logback-classic/1.1.2/logback-classic-1.1.2.jar, file:/D:/local/repo/ch/qos/logback/logback-core/1.1.2/logback-core-1.1.2.jar, file:/D:/local/repo/org/yaml/snakeyaml/1.13/snakeyaml-1.13.jar, file:/D:/local/repo/org/springframework/boot/spring-boot-starter-tomcat/1.1.4.RELEASE/spring-boot-starter-tomcat-1.1.4.RELEASE.jar, file:/D:/local/repo/org/apache/tomcat/embed/tomcat-embed-core/7.0.54/tomcat-embed-core-7.0.54.jar, file:/D:/local/repo/org/apache/tomcat/embed/tomcat-embed-el/7.0.54/tomcat-embed-el-7.0.54.jar, file:/D:/local/repo/org/apache/tomcat/embed/tomcat-embed-logging-juli/7.0.54/tomcat-embed-logging-juli-7.0.54.jar, file:/D:/local/repo/org/hibernate/hibernate-validator/5.0.3.Final/hibernate-validator-5.0.3.Final.jar, file:/D:/local/repo/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar, file:/D:/local/repo/org/jboss/logging/jboss-logging/3.1.1.GA/jboss-logging-3.1.1.GA.jar, file:/D:/local/repo/com/fasterxml/classmate/1.0.0/classmate-1.0.0.jar, file:/D:/local/repo/org/springframework/data/spring-data-elasticsearch/2.0.4.RELEASE/spring-data-elasticsearch-2.0.4.RELEASE.jar, file:/D:/local/repo/commons-lang/commons-lang/2.6/commons-lang-2.6.jar, file:/D:/local/repo/joda-time/joda-time/2.9.4/joda-time-2.9.4.jar, file:/D:/local/repo/org/elasticsearch/elasticsearch/2.2.0/elasticsearch-2.2.0.jar, file:/D:/local/repo/org/apache/lucene/lucene-core/5.4.1/lucene-core-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-backward-codecs/5.4.1/lucene-backward-codecs-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-analyzers-common/5.4.1/lucene-analyzers-common-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-queries/5.4.1/lucene-queries-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-memory/5.4.1/lucene-memory-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-highlighter/5.4.1/lucene-highlighter-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-queryparser/5.4.1/lucene-queryparser-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-sandbox/5.4.1/lucene-sandbox-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-suggest/5.4.1/lucene-suggest-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-misc/5.4.1/lucene-misc-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-join/5.4.1/lucene-join-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-grouping/5.4.1/lucene-grouping-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-spatial/5.4.1/lucene-spatial-5.4.1.jar, file:/D:/local/repo/org/apache/lucene/lucene-spatial3d/5.4.1/lucene-spatial3d-5.4.1.jar, file:/D:/local/repo/com/spatial4j/spatial4j/0.5/spatial4j-0.5.jar, file:/D:/local/repo/org/elasticsearch/securesm/1.0/securesm-1.0.jar, file:/D:/local/repo/com/carrotsearch/hppc/0.7.1/hppc-0.7.1.jar, file:/D:/local/repo/org/joda/joda-convert/1.2/joda-convert-1.2.jar, file:/D:/local/repo/com/fasterxml/jackson/dataformat/jackson-dataformat-smile/2.6.2/jackson-dataformat-smile-2.6.2.jar, file:/D:/local/repo/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.6.2/jackson-dataformat-yaml-2.6.2.jar, file:/D:/local/repo/com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.6.2/jackson-dataformat-cbor-2.6.2.jar, file:/D:/local/repo/com/ning/compress-lzf/1.0.2/compress-lzf-1.0.2.jar, file:/D:/local/repo/com/tdunning/t-digest/3.0/t-digest-3.0.jar, file:/D:/local/repo/org/hdrhistogram/HdrHistogram/2.1.6/HdrHistogram-2.1.6.jar, file:/D:/local/repo/commons-cli/commons-cli/1.3.1/commons-cli-1.3.1.jar, file:/D:/local/repo/com/twitter/jsr166e/1.1.0/jsr166e-1.1.0.jar, file:/D:/local/repo/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar, file:/D:/local/repo/org/slf4j/jcl-over-slf4j/1.7.21/jcl-over-slf4j-1.7.21.jar, file:/D:/local/repo/org/springframework/data/spring-data-commons/1.12.2.RELEASE/spring-data-commons-1.12.2.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-jdbc/4.3.6.RELEASE/spring-jdbc-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-beans/4.3.6.RELEASE/spring-beans-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/data/spring-data-redis/1.5.0.RELEASE/spring-data-redis-1.5.0.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-web/4.3.6.RELEASE/spring-web-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-webmvc/4.3.6.RELEASE/spring-webmvc-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-expression/4.3.6.RELEASE/spring-expression-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-core/4.3.6.RELEASE/spring-core-4.3.6.RELEASE.jar, file:/D:/local/repo/commons-logging/commons-logging/1.2/commons-logging-1.2.jar, file:/D:/local/repo/org/springframework/spring-oxm/4.3.6.RELEASE/spring-oxm-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-aop/4.3.6.RELEASE/spring-aop-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-tx/4.3.6.RELEASE/spring-tx-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-context/4.3.6.RELEASE/spring-context-4.3.6.RELEASE.jar, file:/D:/local/repo/org/springframework/spring-context-support/4.0.2.RELEASE/spring-context-support-4.0.2.RELEASE.jar, file:/D:/local/repo/org/springframework/ldap/spring-ldap-core/1.3.1.RELEASE/spring-ldap-core-1.3.1.RELEASE.jar, file:/D:/local/repo/com/fasterxml/jackson/core/jackson-databind/2.6.0/jackson-databind-2.6.0.jar, file:/D:/local/repo/com/fasterxml/jackson/core/jackson-annotations/2.6.0/jackson-annotations-2.6.0.jar, file:/D:/local/repo/com/fasterxml/jackson/core/jackson-core/2.6.0/jackson-core-2.6.0.jar, file:/D:/local/repo/org/aspectj/aspectjrt/1.5.4/aspectjrt-1.5.4.jar, file:/D:/local/repo/org/aspectj/aspectjweaver/1.8.2/aspectjweaver-1.8.2.jar, file:/D:/local/repo/com/google/guava/guava/18.0/guava-18.0.jar, file:/D:/local/repo/org/elasticsearch/client/transport/5.1.2/transport-5.1.2.jar, file:/D:/local/repo/org/elasticsearch/plugin/transport-netty3-client/5.1.2/transport-netty3-client-5.1.2.jar, file:/D:/local/repo/org/elasticsearch/plugin/transport-netty4-client/5.1.2/transport-netty4-client-5.1.2.jar, file:/D:/local/repo/io/netty/netty-buffer/4.1.6.Final/netty-buffer-4.1.6.Final.jar, file:/D:/local/repo/io/netty/netty-codec/4.1.6.Final/netty-codec-4.1.6.Final.jar, file:/D:/local/repo/io/netty/netty-codec-http/4.1.6.Final/netty-codec-http-4.1.6.Final.jar, file:/D:/local/repo/io/netty/netty-common/4.1.6.Final/netty-common-4.1.6.Final.jar, file:/D:/local/repo/io/netty/netty-handler/4.1.6.Final/netty-handler-4.1.6.Final.jar, file:/D:/local/repo/io/netty/netty-resolver/4.1.6.Final/netty-resolver-4.1.6.Final.jar, file:/D:/local/repo/io/netty/netty-transport/4.1.6.Final/netty-transport-4.1.6.Final.jar, file:/D:/local/repo/org/elasticsearch/plugin/reindex-client/5.1.2/reindex-client-5.1.2.jar, file:/D:/local/repo/org/elasticsearch/client/rest/5.1.2/rest-5.1.2.jar, file:/D:/local/repo/org/apache/httpcomponents/httpasyncclient/4.1.2/httpasyncclient-4.1.2.jar, file:/D:/local/repo/org/apache/httpcomponents/httpcore-nio/4.4.5/httpcore-nio-4.4.5.jar, file:/D:/local/repo/org/elasticsearch/plugin/lang-mustache-client/5.1.2/lang-mustache-client-5.1.2.jar, file:/D:/local/repo/com/github/spullara/mustache/java/compiler/0.9.3/compiler-0.9.3.jar, file:/D:/local/repo/org/elasticsearch/plugin/percolator-client/5.1.2/percolator-client-5.1.2.jar, file:/D:/local/repo/com/alibaba/fastjson/1.2.10/fastjson-1.2.10.jar, file:/D:/local/repo/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar, file:/D:/local/repo/log4j/log4j/1.2.16/log4j-1.2.16.jar, file:/D:/local/repo/jline/jline/0.9.94/jline-0.9.94.jar, file:/D:/local/repo/junit/junit/3.8.1/junit-3.8.1.jar, file:/D:/local/repo/io/netty/netty/3.7.0.Final/netty-3.7.0.Final.jar, file:/D:/local/repo/com/101tec/zkclient/0.10/zkclient-0.10.jar, file:/E:/personal/github/mw-es/mw-es-api/target/classes/, file:/D:/local/repo/com/alibaba/dubbo/2.8.4/dubbo-2.8.4.jar, file:/D:/local/repo/aopalliance/aopalliance/1.0/aopalliance-1.0.jar, file:/D:/local/repo/org/javassist/javassist/3.15.0-GA/javassist-3.15.0-GA.jar, file:/D:/local/repo/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar, file:/D:/local/repo/org/apache/httpcomponents/httpclient/4.2.1/httpclient-4.2.1.jar, file:/D:/local/repo/org/apache/httpcomponents/httpcore/4.2.1/httpcore-4.2.1.jar, file:/D:/local/repo/commons-codec/commons-codec/1.6/commons-codec-1.6.jar, file:/D:/local/repo/commons-pool/commons-pool/1.6/commons-pool-1.6.jar, file:/D:/local/repo/org/apache/curator/curator-framework/2.5.0/curator-framework-2.5.0.jar, file:/D:/local/repo/org/apache/curator/curator-client/2.5.0/curator-client-2.5.0.jar, file:/D:/Program%20Files/IntelliJ%20IDEA%2014.0.2/lib/idea_rt.jar]
2017-03-07 14:06:34.158 INFO 7500 --- [ main] utoConfigurationReportLoggingInitializer :
Error starting ApplicationContext. To display the auto-configuration report enabled debug logging (start with --debug)
2017-03-07 14:06:34.164 ERROR 7500 --- [ main] o.s.boot.SpringApplication : Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IArticleRepositories': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:120)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:952)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:941)
at com.water.es.Bootstrap.main(Bootstrap.java:21)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:467)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
... 18 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
... 28 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
... 41 common frames omitted
Caused by: java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.elasticsearchClient(ElasticsearchAutoConfiguration.java:61)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$9c6e3531.CGLIB$elasticsearchClient$1(<generated>)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$9c6e3531$$FastClassBySpringCGLIB$$83d94c4b.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$9c6e3531.elasticsearchClient(<generated>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
... 42 common frames omitted
Caused by: java.lang.NullPointerException: null value in entry: path.home=null
at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:33)
at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:135)
at com.google.common.collect.ImmutableSortedMap.fromEntries(ImmutableSortedMap.java:282)
at com.google.common.collect.ImmutableSortedMap.copyOfInternal(ImmutableSortedMap.java:275)
at com.google.common.collect.ImmutableSortedMap.copyOf(ImmutableSortedMap.java:206)
at org.elasticsearch.common.settings.Settings.<init>(Settings.java:83)
at org.elasticsearch.common.settings.Settings$Builder.build(Settings.java:1209)
at org.elasticsearch.node.NodeBuilder.settings(NodeBuilder.java:84)
at org.springframework.data.elasticsearch.client.NodeClientFactoryBean.afterPropertiesSet(NodeClientFactoryBean.java:73)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.createNodeClient(ElasticsearchAutoConfiguration.java:75)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.createClient(ElasticsearchAutoConfiguration.java:69)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.elasticsearchClient(ElasticsearchAutoConfiguration.java:57)
... 52 common frames omitted
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IArticleRepositories': Cannot resolve reference to bean 'elasticsearchTemplate' while setting bean property 'elasticsearchOperations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:120)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:952)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:941)
at com.water.es.Bootstrap.main(Bootstrap.java:21)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:467)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
... 18 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
... 28 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.Client]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
... 41 more
Caused by: java.lang.IllegalStateException: java.lang.NullPointerException: null value in entry: path.home=null
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.elasticsearchClient(ElasticsearchAutoConfiguration.java:61)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$9c6e3531.CGLIB$elasticsearchClient$1(<generated>)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$9c6e3531$$FastClassBySpringCGLIB$$83d94c4b.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration$$EnhancerBySpringCGLIB$$9c6e3531.elasticsearchClient(<generated>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
... 42 more
Caused by: java.lang.NullPointerException: null value in entry: path.home=null
at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:33)
at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:135)
at com.google.common.collect.ImmutableSortedMap.fromEntries(ImmutableSortedMap.java:282)
at com.google.common.collect.ImmutableSortedMap.copyOfInternal(ImmutableSortedMap.java:275)
at com.google.common.collect.ImmutableSortedMap.copyOf(ImmutableSortedMap.java:206)
at org.elasticsearch.common.settings.Settings.<init>(Settings.java:83)
at org.elasticsearch.common.settings.Settings$Builder.build(Settings.java:1209)
at org.elasticsearch.node.NodeBuilder.settings(NodeBuilder.java:84)
at org.springframework.data.elasticsearch.client.NodeClientFactoryBean.afterPropertiesSet(NodeClientFactoryBean.java:73)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.createNodeClient(ElasticsearchAutoConfiguration.java:75)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.createClient(ElasticsearchAutoConfiguration.java:69)
at org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchAutoConfiguration.elasticsearchClient(ElasticsearchAutoConfiguration.java:57)
... 52 more
Disconnected from the target VM, address: '127.0.0.1:52886', transport: 'socket'
Process finished with exit code 1
1 个回复
zorro
赞同来自: sdmryqocb