Re: ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code.

2009-11-28 Thread Paul Robinson
Alessandro Loche wrote: > (p.s. Why returning ArrayList instead of List? Separate interface from > implementation...) > > With GWT, it is better to use concrete implementations in your RPC API. If you use List instead of ArrayList, then the GWT compile will look for every List implementation t

Re: ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code.

2009-11-28 Thread Alessandro Loche
: Saturday, November 28, 2009 8:59 AM To: "Google Web Toolkit" Subject: ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code. > I have the following code on my server > > public ArrayList getAMIs() > { > ArrayList amis = new Arra

ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code.

2009-11-28 Thread Dave
java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke (Runtime.java:100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:527) ... 27 more Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create () is only usable in client code! It c