Permission denied error in app engine code -


i getting below error in line 5 while executing app engine code in localhost , in cloud.

1   httpclient client = new httpclient(); 2       getmethod getmethod =new getmethod(url); 3       client.gethttpconnectionmanager().getparams() 4       .setconnectiontimeout(1000); 5       int response = client.executemethod(getmethod); 

i seeing error while running job in localhost , in app engine.

please find error logs below:

info] 2016-03-07 11:04:03 debug httpconnection:1215 - enter httpconnection.closesockedandstreams() [info] 2016-03-07 11:04:03 info  httpmethoddirector:439 - i/o exception (java.net.socketexception) caught when processing request: permission denied: not allowe d issue socket bind: permission denied. [info] 2016-03-07 11:04:03 debug httpmethoddirector:443 - permission denied: not allowed issue socket bind: permission denied. [info] java.net.socketexception: permission denied: not allowed issue socket bind: permission denied. [info]  @ com.google.appengine.api.socket.socketapihelper.translateerror(socketapihelper.java:95) [info]  @ com.google.appengine.api.socket.socketapihelper.translateerror(socketapihelper.java:106) [info]  @ com.google.appengine.api.socket.socketapihelper.makesynccall(socketapihelper.java:74) [info]  @ com.google.appengine.api.socket.appenginesocketimpl.createsocket(appenginesocketimpl.java:470) [info]  @ com.google.appengine.api.socket.appenginesocketimpl.bind(appenginesocketimpl.java:486) [info]  @ java.net.socket.bind(socket.java:631) [info]  @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) [info]  @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) [info]  @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) [info]  @ java.lang.reflect.method.invoke(method.java:606) [info]  @ com.google.appengine.tools.development.agent.runtime.runtime.invoke(runtime.java:130) [info]  @ org.apache.commons.httpclient.protocol.reflectionsocketfactory.createsocket(reflectionsocketfactory.java:139) [info]  @ org.apache.commons.httpclient.protocol.defaultprotocolsocketfactory.createsocket(defaultprotocolsocketfactory.java:125) [info]  @ org.apache.commons.httpclient.httpconnection.open(httpconnection.java:707) [info]  @ org.apache.commons.httpclient.httpmethoddirector.executewithretry(httpmethoddirector.java:387) [info]  @ org.apache.commons.httpclient.httpmethoddirector.executemethod(httpmethoddirector.java:171) [info]  @ org.apache.commons.httpclient.httpclient.executemethod(httpclient.java:397) [info]  @ org.apache.commons.httpclient.httpclient.executemethod(httpclient.java:323) [info]  @ com.disney.unityads.unityadsstats.downloadzip(unityadsstats.java:169) [info]  @ com.disney.unityads.unityadsstats.run(unityadsstats.java:72) [info]  @ com.disney.unityads.unityadschanneljobworker.dopost(unityadschanneljobworker.java:46) [info]  @ javax.servlet.http.httpservlet.service(httpservlet.java:637) [info]  @ javax.servlet.http.httpservlet.service(httpservlet.java:717) [info]  @ org.mortbay.jetty.servlet.servletholder.handle(servletholder.java:511) [info]  @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1166) 

check documentation how make http requests. appengine limited environment, example if try use alternative http client app gets same treatment 1 tries use sockets directly.

https://cloud.google.com/appengine/docs/java/urlfetch/


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -