我已经设置了Intershop Commerce Management 7.8并且一切运行正常,除了我在错误日志文件中出现常量错误。
Eureka正在运行,我可以使用http://localhost:8760访问Eureka UI 应用程序服务器和Solr已列出并正在运行。
eureka-client.properties中的网址设置为: http://localhost:8760/eureka
这里有什么问题吗?
这里有一些错误条目:
[2017-03-07 10:39:10.865 +0000] ERROR localhost ES1 appserver0 [] [] com.netflix.discovery.DiscoveryClient [] [] [] [] "DiscoveryClient-CacheRefreshExecutor-0" DiscoveryClient_DEVELOPER-SOLRSERVER/localhost_appserver0 - was unable to refresh its cache! status = Bad status: 404 java.lang.RuntimeException: Bad status: 404
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1589)
at com.netflix.discovery.DiscoveryClient.makeRemoteCallWithFollowRedirect(DiscoveryClient.java:1460)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1443)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1394)
at com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:1136)
at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:1042)
at com.netflix.discovery.DiscoveryClient.access$2100(DiscoveryClient.java:123)
at com.netflix.discovery.DiscoveryClient$CacheRefreshThread.run(DiscoveryClient.java:1900)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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)
[2017-03-07 10:39:14.269 +0000] ERROR localhost ES1 appserver0 [] [] com.netflix.discovery.DiscoveryClient [] [] [] [] "DiscoveryClient-CacheRefreshExecutor-0" Can't contact any eureka nodes - possibly a security group issue? java.lang.RuntimeException: Bad status: 404
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1589)
at com.netflix.discovery.DiscoveryClient.makeRemoteCallWithFollowRedirect(DiscoveryClient.java:1460)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1443)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1394)
at com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:1136)
at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:1042)
at com.netflix.discovery.DiscoveryClient.access$2100(DiscoveryClient.java:123)
at com.netflix.discovery.DiscoveryClient$CacheRefreshThread.run(DiscoveryClient.java:1900)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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)
[2017-03-07 10:39:14.270 +0000] ERROR localhost ES1 appserver0 [] [] com.netflix.discovery.DiscoveryClient [] [] [] [] "DiscoveryClient-CacheRefreshExecutor-0" DiscoveryClient_DEVELOPER-APPSERVER/localhost_ES1_appserver0 - was unable to refresh its cache! status = Bad status: 404 java.lang.RuntimeException: Bad status: 404
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1589)
at com.netflix.discovery.DiscoveryClient.makeRemoteCallWithFollowRedirect(DiscoveryClient.java:1460)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1443)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1394)
at com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:1136)
at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:1042)
at com.netflix.discovery.DiscoveryClient.access$2100(DiscoveryClient.java:123)
at com.netflix.discovery.DiscoveryClient$CacheRefreshThread.run(DiscoveryClient.java:1900)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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)
答案 0 :(得分:6)
这个问题有一个简单的解决方案。尤里卡客户端有点挑剔: 使用“http://localhost:8760/eureka/”代替“http://localhost:8760/eureka”。 我希望有所帮助。