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 {
  
 public String getFips();
 public String getName();
 EntityProxyId<StateProxy> stableId();
}
@Service(value = StateServiceImpl.class)
 public interface StateRequest extends RequestContext {
  Request<List<StateProxy>> getStates() throws Exception;
  //Request<Void> getStates() throws Exception;
 }
in widget.java
try {
   clientFactory.getRequestFactory().stateRequestContext().getStates().fire(new 
Receiver<List<StateProxy>>(){
    @Override
    public void onSuccess(List<StateProxy> response) {
     // TODO Auto-generated method stub
     System.out.println("on success");
    }
    
     @Override
                 public void onFailure(ServerFailure error) {
                     System.out.println("on Failure");
                 }
   });
  } catch (Exception e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }
 
when i call getstate() method with return type void it is working fine.
but the same method with return type List<StateProxy> it is throwing the 
following exception:
 
 
* 

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

at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.die(*
ServiceLayerDecorator.java:216*)

at 
com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer.getFind(
*ReflectiveServiceLayer.java:253*)

at 
com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer.getFind(
*ReflectiveServiceLayer.java:271*)

at 
com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer.getFind(
*ReflectiveServiceLayer.java:271*)

at 
com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer.isLive(*
ReflectiveServiceLayer.java:200*)

at 
com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.isLive(*
ServiceLayerDecorator.java:116*)

at 
com.google.web.bindery.requestfactory.server.LocatorServiceLayer.doIsLive(*
LocatorServiceLayer.java:186*)

at com.google.web.bindery.requestfactory.server.LocatorServiceLayer.isLive(*
LocatorServiceLayer.java:85*)

at 
com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.isLive(*
ServiceLayerDecorator.java:116*)

at 
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.createReturnOperations(
*SimpleRequestProcessor.java:274*)

at 
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(
*SimpleRequestProcessor.java:232*)

at 
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(
*SimpleRequestProcessor.java:127*)

at 
com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(*
RequestFactoryServlet.java:133*)

at javax.servlet.http.HttpServlet.service(*HttpServlet.java:637*)

at javax.servlet.http.HttpServlet.service(*HttpServlet.java:717*)

at org.mortbay.jetty.servlet.ServletHolder.handle(*ServletHolder.java:487*)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(*
ServletHandler.java:1097*)

at com.yieldstar.mpfui.server.MpfAuthFilter.doFilter(*MpfAuthFilter.java:41*
)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(*
ServletHandler.java:1088*)

at org.mortbay.jetty.servlet.ServletHandler.handle(*ServletHandler.java:360*
)

at org.mortbay.jetty.security.SecurityHandler.handle(*
SecurityHandler.java:216*)

at org.mortbay.jetty.servlet.SessionHandler.handle(*SessionHandler.java:181*
)

at org.mortbay.jetty.handler.ContextHandler.handle(*ContextHandler.java:729*
)

at org.mortbay.jetty.webapp.WebAppContext.handle(*WebAppContext.java:405*)

at org.mortbay.jetty.handler.HandlerWrapper.handle(*HandlerWrapper.java:152*
)

at org.mortbay.jetty.handler.RequestLogHandler.handle(*
RequestLogHandler.java:49*)

at org.mortbay.jetty.handler.HandlerWrapper.handle(*HandlerWrapper.java:152*
)

at org.mortbay.jetty.Server.handle(*Server.java:324*)

at org.mortbay.jetty.HttpConnection.handleRequest(*HttpConnection.java:505*)

at org.mortbay.jetty.HttpConnection$RequestHandler.content(*
HttpConnection.java:843*)

at org.mortbay.jetty.HttpParser.parseNext(*HttpParser.java:647*)

at org.mortbay.jetty.HttpParser.parseAvailable(*HttpParser.java:211*)

at org.mortbay.jetty.HttpConnection.handle(*HttpConnection.java:380*)

at org.mortbay.io.nio.SelectChannelEndPoint.run(*
SelectChannelEndPoint.java:395*)

at org.mortbay.thread.QueuedThreadPool$PoolThread.run(*
QueuedThreadPool.java:488*)

 

I am using gwt 2.4 version.

Not using locators.

could any one help on this.

 

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/F-eZF9EYAD8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to