无法从云应用程序发送GET请求

时间:2017-03-19 02:21:25

标签: java cloud cloudfoundry bosh

我有一个在虚拟框上托管的本地Cloud_Foundry(bosh-lite)上运行的java Web应用程序。应用程序无法将http GET请求发送到VMWare上运行的servlet应用程序。因为我能够从一个VM ping到另一个VM 记录如下:

    2017-03-17T18:49:03.75-0400 [RTR/0]      OUT sampleapp.bosh-lite.com - [2017-03-17T22:49:02.752+0000] "GET / HTTP/1.1" 500 0 11 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0" "10.244.0.34:48796" "10.244.16.9:61002" x_forwarded_for:"192.168.50.1, 10.244.0.34" x_forwarded_proto:"http" vcap_request_id:"e3bd0592-eb4d-4d54-462c-6319d3346ad7" response_time:1.006039512 app_id:"98a99580-1082-4f4f-aa70-9b2952aef639" app_index:"0"
2017-03-17T18:49:03.75-0400 [APP/PROC/WEB/0]OUT [CONTAINER] ontainerBase.[Catalina].[localhost].[/].[Servlet1] SEVERE  Servlet.service() for servlet [Servlet1] in context with path [] threw exception

案例cloudfoundry容器是否无法访问部署它的VM外部的IP。如果是这种情况,我可以启用它。有人请帮忙

谢谢,

1 个答案:

答案 0 :(得分:0)

您需要更多信息来解决应用程序异常问题,并且每https://docs.cloudfoundry.org/buildpacks/java/java-tips.html#debugging进行远程调试可能会有所帮助。

其他有用的调试命令:

export CF_TRACE=true
cf events YOURAPPNAME
cf logs YOURAPPNAME