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 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.javatry {
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.
: Could not find static method with a single parameter of a key typerequestfactory.server. UnexpectedException at com.google.web.bindery.
Servrequestfactory.server. ServiceLayerDecorator.die( iceLayerDecorator.java:216 )at com.google.web.bindery.
ReflectiveServiceLayerrequestfactory.server. ReflectiveServiceLayer. getFind( .java:253 )at com.google.web.bindery.
ReflectiveServiceLayerrequestfactory.server. ReflectiveServiceLayer. getFind( .java:271 )at com.google.web.bindery.
ReflectiveServiceLayerrequestfactory.server. ReflectiveServiceLayer. getFind( .java:271 )at com.google.web.bindery.
requestfactory.server. ReflectiveServiceLayer.isLive( ReflectiveServiceLayer.java: )200 at com.google.web.bindery.
Srequestfactory.server. ServiceLayerDecorator.isLive( erviceLayerDecorator.java:116 )at com.google.web.bindery.
Lrequestfactory.server. LocatorServiceLayer.doIsLive( ocatorServiceLayer.java:186 )at com.google.web.bindery.
Locrequestfactory.server. LocatorServiceLayer.isLive( atorServiceLayer.java:85 )at com.google.web.bindery.
Srequestfactory.server. ServiceLayerDecorator.isLive( erviceLayerDecorator.java:116 )at com.google.web.bindery.
SimpleRrequestfactory.server. SimpleRequestProcessor. createReturnOperations( equestProcessor.java:274 )at com.google.web.bindery.
SimpleRequestProcessorrequestfactory.server. SimpleRequestProcessor. process( .java:232 )at com.google.web.bindery.
SimpleRequestProcessorrequestfactory.server. SimpleRequestProcessor. process( .java:127 )at com.google.web.bindery.
Rrequestfactory.server. RequestFactoryServlet.doPost( equestFactoryServlet.java:133 )at javax.servlet.http.
HttpServleHttpServlet.service( t.java:637 )at javax.servlet.http.
HttpServleHttpServlet.service( t.java:717 )at org.mortbay.jetty.servlet.
ServletHoServletHolder.handle( lder.java:487 )at org.mortbay.jetty.servlet.
ServletHandler.java:ServletHandler$CachedChain. doFilter( 1097 )at com.yieldstar.mpfui.server.
MpfAuthMpfAuthFilter.doFilter( Filter.java:41 )at org.mortbay.jetty.servlet.
ServletHandler.java:ServletHandler$CachedChain. doFilter( 1088 )at org.mortbay.jetty.servlet.
ServletHServletHandler.handle( andler.java:360 )at org.mortbay.jetty.security.
SecuritSecurityHandler.handle( yHandler.java:216 )at org.mortbay.jetty.servlet.
SessionHSessionHandler.handle( andler.java:181 )at org.mortbay.jetty.handler.
ContextHContextHandler.handle( andler.java:729 )at org.mortbay.jetty.webapp.
WebAppConWebAppContext.handle( text.java:405 )at org.mortbay.jetty.handler.
HandlerWHandlerWrapper.handle( rapper.java:152 )at org.mortbay.jetty.handler.
RequeRequestLogHandler.handle( stLogHandler.java:49 )at org.mortbay.jetty.handler.
HandlerWHandlerWrapper.handle( rapper.java:152 )at org.mortbay.jetty.Server.
Server.java:324)handle( at org.mortbay.jetty.
HHttpConnection.handleRequest( ttpConnection.java:505 )at org.mortbay.jetty.
HttpConnection.java:HttpConnection$RequestHandler. content( 843 )at org.mortbay.jetty.HttpParser.
HttpParser.java:647)parseNext( at org.mortbay.jetty.HttpParser.
HttpParser.parseAvailable( java:211 )at org.mortbay.jetty.
HttpConnHttpConnection.handle( ection.java:380 )at org.mortbay.io.nio.
SeleSelectChannelEndPoint.run( ctChannelEndPoint.java:395 )at org.mortbay.thread.
QueuedThreadPool.java:488)QueuedThreadPool$PoolThread. run(
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/-/nks-9a3d06YJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment