springdata和elasticsearch整合時報錯,這是什麼原因???
09:22:21,469 INFO DefaultTestContextBootstrapper:207 - Could not instantiate TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [javax/servlet/ServletContext]
09:22:21,469 INFO DefaultTestContextBootstrapper:185 - Using TestExecutionListeners: [org.springframework.test
09:22:21,639 INFO XmlBeanDefinitionReader:317 - Loading XML bean definitions from class path resource [applicationContext.xml]
09:22:22,049 INFO GenericApplicationContext:581 - Refreshing
09:22:22,790 INFO plugins:180 - [Rusty Collins] modules [], plugins [], sites []
09:22:23,720 INFO TransportClientFactoryBean:96 - adding transport node : localhost:9300
09:22:24,201 WARN GenericApplicationContext:549 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'articleRepository': Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.elasticsearch.repository.support.NumberKeyedRepository]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: mapper [id] of different type, current_type [integer], merged_type [string]
09:22:24,201 INFO TransportClientFactoryBean:59 - Closing elasticSearch client
09:22:24,231 ERROR TestContextManager:231 - Caught exception while allowing TestExecutionListener [org.springframewor
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124)
at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:117)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:228)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:230)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:249)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'articleRepository': Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.elasticsearch.repository.support.NumberKeyedRepository]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: mapper [id] of different type, current_type [integer], merged_type [string]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1583)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
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:759)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:843)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:125)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:109)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:261)
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98)
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116)
... 25 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.elasticsearch.repository.support.NumberKeyedRepository]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: mapper [id] of different type, current_type [integer], merged_type [string]
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.data.repository.core.support.RepositoryFactorySupport.getTargetRepositoryViaReflection(RepositoryFactorySupport.java:364)
at org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactory.getTargetRepository(ElasticsearchRepositoryFactory.java:69)
at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:199)
at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.initAndReturn(RepositoryFactoryBeanSupport.java:280)
at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:266)
at org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean.afterPropertiesSet(ElasticsearchRepositoryFactoryBean.java:58)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1642)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1579)
... 40 more
Caused by: java.lang.IllegalArgumentException: mapper [id] of different type, current_type [integer], merged_type [string]
at org.elasticsearch.index.mapper.FieldMapper.doMerge(FieldMapper.java:378)
at org.elasticsearch.index.mapper.core.NumberFieldMapper.doMerge(NumberFieldMapper.java:301)
at org.elasticsearch.index.mapper.FieldMapper.merge(FieldMapper.java:364)
at org.elasticsearch.index.mapper.FieldMapper.merge(FieldMapper.java:53)
at org.elasticsearch.index.mapper.object.ObjectMapper.doMerge(ObjectMapper.java:528)
at org.elasticsearch.index.mapper.object.RootObjectMapper.doMerge(RootObjectMapper.java:277)
at org.elasticsearch.index.mapper.object.ObjectMapper.merge(ObjectMapper.java:501)
at org.elasticsearch.index.mapper.object.RootObjectMapper.merge(RootObjectMapper.java:272)
at org.elasticsearch.index.mapper.Mapping.merge(Mapping.java:112)
at org.elasticsearch.index.mapper.DocumentMapper.merge(DocumentMapper.java:376)
at org.elasticsearch.cluster.metadata.MetaDataMappingService$PutMappingExecutor.applyRequest(MetaDataMappingService.java:260)
at org.elasticsearch.cluster.metadata.MetaDataMappingService$PutMappingExecutor.execute(MetaDataMappingService.java:230)
at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:480)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:784)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
相關推薦
springdata和elasticsearch整合時報錯,這是什麼原因???
09:22:21,449 INFO DefaultTestContextBootstrapper:258 - Loaded default TestExecutionListener class names from location [META-INF/spring.f
Delphi 在寫Ini文件時報錯,Access violation at address 774D6EC8 in module 'ntdll.dll' write of address 004044CD
module 技術分享 png 錯誤 http write 參數 分享 img 檢查代碼發現讀寫Ini文件函數ReadString參數錯誤導致:如下 節點不能為空。 Delphi 在寫Ini文件時報錯,Access violation at address 774D6
Laravel5.5執行 npm run dev時報錯,提示cross-env找不到(not found)的解決辦法
smo font span links 命令 develop ebp amp webpack Laravel 5.4 Mix & Laravel5.5執行 npm run dev時報錯,提示cross-env找不到(not found)的解決辦法 首先
Zeppelin 學習筆記之 Zeppelin安裝和elasticsearch整合
XML exp ado 8.0 elk mage search tor 選擇 Zeppelin安裝: Apache Zeppelin提供了web版的類似ipython的notebook,用於做數據分析和可視化。背後可以接入不同的數據處理引擎,包括spark, hive,
電競賽事娛樂化?錯,這是千億市場的正確掘金姿勢
電子競技據媒體報道,12月4日,由聯盟電競主辦、首席合作夥伴前程無憂51Job贊助、完美世界授權的Legend Series CS:GO(中文名稱CS:GO傳奇系列賽)中國區線下精英訓練營開訓。而入營的則是此前一個月間,在20個城市線下個人賽中決勝出來的個人冠軍。在為期14天的封閉式培訓結束後,優秀選手將組隊
hive 學習系列五(hive 和elasticsearch 的交互,很詳細哦,我又來吹liubi了)
圖片 upload ima com 5.6 cat rds href ping hive 操作elasticsearch 一,從hive 表格向elasticsearch 導入數據 1,首先,創建elasticsearch 索引,索引如下 curl -XPUT ‘10.81
sqlserver 2008R2新建數據庫時報錯,提示無法獲得數據庫"model"上的排它鎖
2008 r2 提示 use roc sse char kill 數據庫 建立數據庫 剛新裝了個sqlserver2008 R2,在建立數據庫時候報錯,提示無法獲得數據庫"model"上的排它鎖。解決辦法如下: 打開查詢頁面,執行下面的語句即可。 use master
轉 ElasticSearch啟動報錯,bootstrap checks failed
修改elasticsearch.yml配置檔案,允許外網訪問。 vim config/elasticsearch.yml# 增加 network.host: 0.0.0.0 啟動失敗,檢查沒有通過,報錯 [2018-05
啟動Maven專案時報錯,Can't find resource for bundle com.ibm.icu.impl.ICUResourceBundleImpl$ResourceTable
今天上午到公司,就開始啟動正在開發的專案,結果在Debug啟動專案的時候,彈出這樣一個錯誤: 根據提示,找不到繫結的資原始檔,以為是缺失某個檔案,搜尋各種答案,也說是這個原因,於是我各種對比,發現專案中並沒有少什麼東西,那是什麼原因呢,不是專案的問題? 然後嘗試了一下啟動別的專案,也
springboot整合報錯,想要整合tk.mybatis報錯,反射方法異常
在添加註釋 @MapperScan("com.leyou.item.mapper")的時候,如果不小心就會導包倒錯應該導成 import tk.mybatis.spring.annotation.MapperScan;而不是org如果是低版本的,也可以這樣添加註釋 @tk.mybatis.spring.
Android Studio新建和匯入專案報錯, Read timed out,Error:SSL peer shut down incorrectly
建立新專案時出現 Android Studio Read timed out Error:SSL peer shut down incorrectly 解決辦法:在project的gradle中加入以下程式碼 順序很重要 google() mavenCen
C#實戰023:解決新增xxx.dll的引用時報錯,請確保xxx是有效的程式集或者COM元件
今天在引入第三方dll時彈出錯誤提示【未能新增對“xxx.dll”的引用。請確保此檔案可訪問並且是一個有效的程式集或者COM元件】,正常情況下在解決方案中新增引用:右鍵滑鼠–>新增引用–>瀏覽–>選擇xxx.dll檔案,點選“確定”,然後再在
DB2資料庫表空間異常解決辦法(load資料庫時報錯,)
解決辦法:即就是需要空備資料,按下面執行方法執行: 1.連線資料庫: db2 connect to xdhsdb 2.查看錶空間狀態: db2 list tablespaces show det
windows上安裝tensorflow時報錯,“DLL load failed: 找不到指定的模組”的解決方式
本文轉自http://blog.csdn.net/pjl6523853/article/details/72836214 最近打算開始研究一下機器學習,今天在windows上裝tensorflow花了點功夫,其實前面的步驟不難,只要依次裝好python3.5,num
JVM和垃圾回收面試入門,這一篇就夠了
前些天在 google 上搜索了一些JVM的參考資料,偶然發現了一篇文章,如獲至寶,簡單易懂而且相對全面的JVM和垃圾回收介紹寫得非常的棒,因此一直儲存著,今天有時間特意翻譯了一下。本人水平有限,但是遇到好文章希望可以與更多的人分享,特此釋出此文。 英文OK的話
linux中jps時報錯,command not found
版權宣告:本文為博主原創文章,歡迎擴散,擴散請務必註明出處。 https://blog.csdn.net/robinson_0612/article/details/78562642 需要安裝openjdk-devel包 [[email prot
docker registry 上傳時報錯,修改/etc/containter/registry.conf 無效
Get https://192.168.40.32:5000/v1/_ping: http: server gave HTTP response to HTTPS client docker registry 上傳時報錯,修改/etc/containter/regis
RF 執行時報錯,UnicodeDecodeError :'utf-8' codec can't decode
執行時報錯 UnicodeDecodeError :‘utf-8’ codec can’t decode 不要著急我們具體往下看: File “C:\Python27\lib\site-packages\robotide\lib\robot\utils\importer.py”, lin
hive刪除表時報錯,解決方案
報錯: 1、檢視hive使用的mysql連線的jar包, 若為:mysql-connector-java-5.1.17.jar(沒帶bin的jar包),修改為mysql-connector-java-5.1.46-bin.jar(帶bin的jar包之後),就可以
Tomcat執行時報錯,啟動服務失敗(Eclispe執行Tomcat顯示publish)
錯誤提示:Publishing the configuration... Error copying file to C:/Program Files/Apach(很長的錯誤提示,省略) 解決方式: 1、修改Tomcat資料夾的fang訪問許可權,即右鍵 Apache Softwa