简体   繁体   English

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

[英]Unable to send GET request from Cloud application

I have a java web application running on local Cloud_Foundry(bosh-lite) hosted on the Virtual box. 我有一个Java Web应用程序在“虚拟”框上托管的本地Cloud_Foundry(bosh-lite)上运行。 The application is not able to send the http GET request to the servlet application running on the VMWare. 该应用程序无法将http GET请求发送到在VMWare上运行的servlet应用程序。 As I able to ping from the one VM to the other VM. 因为我能够从一个VM ping到另一个VM。
Logs as follow: 记录如下:

    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

Is it a case cloudfoundry container not able to access the IP outside the VM on which it is deployed. 是否是一例cloudfoundry容器无法访问其所部署的VM外部的IP。 If this is the case what can I it enable. 如果是这种情况,我可以启用什么。 Someone please help 有人请帮忙

Thanks, 谢谢,

You would need a bit more information to troubleshoot your application exception and remote debug per https://docs.cloudfoundry.org/buildpacks/java/java-tips.html#debugging could help with that. 您可能需要更多信息来对应用程序异常进行故障排除并通过https://docs.cloudfoundry.org/buildpacks/java/java-tips.html#debugging进行远程调试。

Other helpful debug commands: 其他有用的调试命令:

export CF_TRACE=true
cf events YOURAPPNAME
cf logs YOURAPPNAME

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM