Hi Guoqian - As the error indicates, App Engine restricts access to some classes, like that one, for security reasons. The class whitelist of here: http://code.google.com/appengine/docs/java/jrewhitelist.html
I would suggest posting in the Java App Engine forum if you are looking for additional advice on this issue: http://groups.google.com/group/google-appengine-java - pamela On Fri, Dec 18, 2009 at 6:27 AM, Jiang, Guoqian, Ph.D. <jiang.guoq...@mayo.edu> wrote: > Hello, > > I was trying to call a web service in my robot using the codes like: > > HttpClient client = > > new HttpClient(); > > PostMethod method = > > new PostMethod(PROD_URL); > > And I got the error as follows, > > Error for /_wave/robot/jsonrpc > java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. > Please see the Google App Engine developer's guide for more details. > at > com.google.apphosting.runtime.security.shared.stub.java.net.Socket.<clinit>(Socket.java) > at > org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79) > at > org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121) > at > org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706) > at > org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) > at > org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) > > Any help? > > Thanks, > > -Guoqian > > -- > > You received this message because you are subscribed to the Google Groups > "Google Wave API" group. > To post to this group, send email to google-wave-...@googlegroups.com. > To unsubscribe from this group, send email to > google-wave-api+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-wave-api?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to google-wave-...@googlegroups.com. To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.