После отправки моего приложения в Cloud Foundry (загрузка прошла успешно), я возвращаюсь (с помощью URL):
502 Bad Gateway: Registered endpoint failed to handle the request.
Мой журнал:
2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] OUT 2019-05-20 11:51:52.780 INFO 6 --- [pool-3-thread-1] d.d.l.s.service.scheduling.DataOutput : Sending data to data analytics service...
2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] OUT 2019-05-20 11:51:52.782 INFO 6 --- [pool-3-thread-1] ContainerTrustManagerFactory$PKIXFactory : Adding System Trust Manager
2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] OUT 2019-05-20 11:51:52.784 ERROR 6 --- [pool-3-thread-1] d.d.l.s.service.scheduling.DataOutput : Tag data could not be posted to analytics service: Connect to 127.0.0.1:5000 [/127.0.0.1] failed: Connection refused (Connection refused)
2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:5000 [/127.0.0.1] failed: Connection refused (Connection refused)
2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR at
...
2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR Caused by: java.net.ConnectException: Connection refused (Connection refused)
2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR at java.net.PlainSocketImpl.socketConnect(Native Method)
2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR at java.net.Socket.connect(Socket.java:589)
2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75)
2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
2019-05-20T13:51:52.78+0200 [APP/PROC/WEB/0] ERR ... 33 more
Я понимаючто я не могу подключиться к 127.0.0.1:5000.
Когда я запускаю свое приложение локально, я получаю ту же ошибку, но я могу получить доступ к своему приложению:
Мои локальные журналы:
2019-05-20 11:32:08.700 INFO 14948 --- [pool-3-thread-1] d.d.l.s.service.scheduling.DataOutput : Sending data to data analytics service...
2019-05-20 11:32:09.708 ERROR 14948 --- [pool-3-thread-1] d.d.l.s.service.scheduling.DataOutput : Tag data could not be posted to analytics service: Connect to 127.0.0.1:5000 [/127.0.0.1] failed: Connection refused: connect
org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:5000 [/127.0.0.1] failed: Connection refused: connect
...
Любые идеи, которые мне не хватает