Re: Runtime exception: com.google.web.bindery.requestfactory.server.UnexpectedException: Could not find static method with a single parameter of a key type

2012-04-27 Thread Ashu
How to initialize entity manager here Iam not able to intialize this. Could you please help me on this? On Monday, 23 April 2012 17:21:48 UTC+5:30, Ashu wrote: Hi, I am getting the above exception while running the GWT application. I am using Entity and EntityProxies. Below is the

Re: Runtime exception: com.google.web.bindery.requestfactory.server.UnexpectedException: Could not find static method with a single parameter of a key type

2012-04-27 Thread Thomas Lefort
You do have to read the doc carefully indeed. I got stuck for a little while, I thought I could get away by simply using find but no you need to use findEntity, ie replace Entity by your entity name. This got me, because at first it worked with a single entity, but when I had two entities with

Re: Runtime exception: com.google.web.bindery.requestfactory.server.UnexpectedException: Could not find static method with a single parameter of a key type

2012-04-25 Thread Ashu
could you please provide me the sample findby() method for reference? On Monday, 23 April 2012 19:39:19 UTC+5:30, Thomas Broyer wrote: On Monday, April 23, 2012 2:14:38 PM UTC+2, Ashu wrote: Thanks for the quick reply!! what is the use of this method and this class return type is my

Re: Runtime exception: com.google.web.bindery.requestfactory.server.UnexpectedException: Could not find static method with a single parameter of a key type

2012-04-25 Thread Thomas Broyer
On Wednesday, April 25, 2012 11:34:56 AM UTC+2, Ashu wrote: could you please provide me the sample findby() method for reference? See

Re: Runtime exception: com.google.web.bindery.requestfactory.server.UnexpectedException: Could not find static method with a single parameter of a key type

2012-04-25 Thread Ashu
now i am getting the runtime exception for EMF class Server Error: Could not initialize class com.shared.EMF On Monday, 23 April 2012 17:21:48 UTC+5:30, Ashu wrote: Hi, I am getting the above exception while running the GWT application. I am using Entity and

Runtime exception: com.google.web.bindery.requestfactory.server.UnexpectedException: Could not find static method with a single parameter of a key type

2012-04-23 Thread Ashu
Hi, I am getting the above exception while running the GWT application. I am using Entity and EntityProxies. Below is the code: @Entity @Table(name = tlkpState) public class State{ . } @ProxyFor(value = State.class) public interface StateProxy extends EntityProxy {

Re: Runtime exception: com.google.web.bindery.requestfactory.server.UnexpectedException: Could not find static method with a single parameter of a key type

2012-04-23 Thread Thomas Broyer
Your State class probably do not have a public static state findState(X id) method (where X is the return type of the getId instance method). See https://developers.google.com/web-toolkit/doc/latest/DevGuideRequestFactory#impl The alternative to the static method is to use a Locator. On Monday,

Re: Runtime exception: com.google.web.bindery.requestfactory.server.UnexpectedException: Could not find static method with a single parameter of a key type

2012-04-23 Thread Ashu
Thanks for the quick reply!! what is the use of this method and this class return type is my State class. how can i write that? could you please give me more information about this? On Monday, 23 April 2012 17:21:48 UTC+5:30, Ashu wrote: Hi, I am getting the above exception while

Re: Runtime exception: com.google.web.bindery.requestfactory.server.UnexpectedException: Could not find static method with a single parameter of a key type

2012-04-23 Thread Thomas Broyer
On Monday, April 23, 2012 2:14:38 PM UTC+2, Ashu wrote: Thanks for the quick reply!! what is the use of this method and this class return type is my State class. how can i write that? could you please give me more information about this? The find method should load your entity from your