Not able to access http url using java in app engine

情到浓时终转凉″ 提交于 2019-12-25 06:51:16

问题


I have written simple java code to access url www.nseindia.com In my local and on Google appengine ,it throws exception With below message Access Denied You don't have permission to access "http://www.nseindia.com/" on this server. Reference #18.9420b07b.1335496818.23b178f Access Denied You don't have permission to access "http://www.nseindia.com/" on this server. Reference #18.9420b07b.1335496818.23b178f

I am using App Engine SDK 1.5,JRE 1.6 Please advise


回答1:


this is because GAE doesnt allow some classes like file io or networking, check out this guide to achieve what you are looking for.

URL fetch

and this is the list of allowed classes class whitelist



来源:https://stackoverflow.com/questions/10344611/not-able-to-access-http-url-using-java-in-app-engine

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!