java - GWT Error: RequestFactory ValidationTool must be run -
everytime launch app "requestfactory validation tool must run..." error if listemptyboxes() not executed. have file requestfactory-apt-2.5.0-rc1.jar
on annotation processing.
any ideas? below code. thanks.
myproject.java
private void listemptyboxes() { boxrequest boxrequest = requestfactory.boxrequest(); boxrequest.listallempty().fire(new receiver<list<boxproxy>>() { public void onsuccess(list<boxproxy> response) { // list phantom boxes window.alert("successful"); } }); }
boxrequest.java
@service(value=boxdao.class, locator=daoservicelocator.class) public interface boxrequest extends requestcontext { request<list<boxproxy>> listallempty(); }
boxdao.java
public class boxdao extends objectifydao<box>{ public list<box> listallempty() { objectify ofy = objectifyservice.begin(); query<box> q=ofy.query(box.class).filter("title", null).filter("description", null); list<box> results = q.list(); return results; } }
error
04-may-2013 12:29:18 com.google.web.bindery.requestfactory.server.requestfactoryservlet dopost grave: unexpected error java.lang.runtimeexception: requestfactory validationtool must run com.gw.myproject.shared.myprojectrequestfactory requestfactory type @ com.google.web.bindery.requestfactory.vm.impl.deobfuscator$builder.load(deobfuscator.java:57) @ com.google.web.bindery.requestfactory.server.resolverservicelayer.updatedeobfuscator(resolverservicelayer.java:43) @ com.google.web.bindery.requestfactory.server.resolverservicelayer.resolverequestfactory(resolverservicelayer.java:176) @ com.google.web.bindery.requestfactory.server.servicelayerdecorator.resolverequestfactory(servicelayerdecorator.java:172) @ com.google.web.bindery.requestfactory.server.servicelayerdecorator.resolverequestfactory(servicelayerdecorator.java:172) @ com.google.web.bindery.requestfactory.server.servicelayerdecorator.resolverequestfactory(servicelayerdecorator.java:172) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) @ java.lang.reflect.method.invoke(unknown source) @ com.google.appengine.tools.development.agent.runtime.runtime.invoke(runtime.java:115) @ com.google.web.bindery.requestfactory.server.servicelayercache.getorcache(servicelayercache.java:233) @ com.google.web.bindery.requestfactory.server.servicelayercache.resolverequestfactory(servicelayercache.java:198) @ com.google.web.bindery.requestfactory.server.simplerequestprocessor.process(simplerequestprocessor.java:215) @ com.google.web.bindery.requestfactory.server.simplerequestprocessor.process(simplerequestprocessor.java:135) @ com.google.web.bindery.requestfactory.server.requestfactoryservlet.dopost(requestfactoryservlet.java:133) @ javax.servlet.http.httpservlet.service(httpservlet.java:637) @ javax.servlet.http.httpservlet.service(httpservlet.java:717) @ org.mortbay.jetty.servlet.servletholder.handle(servletholder.java:511) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1166) @ com.google.inject.servlet.filterchaininvocation.dofilter(filterchaininvocation.java:66) @ com.google.inject.servlet.managedfilterpipeline.dispatch(managedfilterpipeline.java:118) @ com.google.inject.servlet.guicefilter.dofilter(guicefilter.java:113) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) @ com.google.appengine.api.socket.dev.devsocketfilter.dofilter(devsocketfilter.java:74) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) @ com.google.appengine.tools.development.responserewriterfilter.dofilter(responserewriterfilter.java:123) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) @ com.google.appengine.tools.development.headerverificationfilter.dofilter(headerverificationfilter.java:34) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) @ com.google.appengine.api.blobstore.dev.serveblobfilter.dofilter(serveblobfilter.java:63) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) @ com.google.apphosting.utils.servlet.transactioncleanupfilter.dofilter(transactioncleanupfilter.java:43) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) @ com.google.appengine.tools.development.staticfilefilter.dofilter(staticfilefilter.java:125) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) @ com.google.appengine.tools.development.devappserverserversfilter.dodirectrequest(devappserverserversfilter.java:369) @ com.google.appengine.tools.development.devappserverserversfilter.dodirectserverrequest(devappserverserversfilter.java:352) @ com.google.appengine.tools.development.devappserverserversfilter.dofilter(devappserverserversfilter.java:115) @ org.mortbay.jetty.servlet.servlethandler$cachedchain.dofilter(servlethandler.java:1157) @ org.mortbay.jetty.servlet.servlethandler.handle(servlethandler.java:388) @ org.mortbay.jetty.security.securityhandler.handle(securityhandler.java:216) @ org.mortbay.jetty.servlet.sessionhandler.handle(sessionhandler.java:182) @ org.mortbay.jetty.handler.contexthandler.handle(contexthandler.java:765) @ org.mortbay.jetty.webapp.webappcontext.handle(webappcontext.java:418) @ com.google.appengine.tools.development.devappenginewebappcontext.handle(devappenginewebappcontext.java:94) @ org.mortbay.jetty.handler.handlerwrapper.handle(handlerwrapper.java:152) @ com.google.appengine.tools.development.jettycontainerservice$apiproxyhandler.handle(jettycontainerservice.java:421) @ org.mortbay.jetty.handler.handlerwrapper.handle(handlerwrapper.java:152) @ org.mortbay.jetty.server.handle(server.java:326) @ org.mortbay.jetty.httpconnection.handlerequest(httpconnection.java:542) @ org.mortbay.jetty.httpconnection$requesthandler.content(httpconnection.java:938) @ org.mortbay.jetty.httpparser.parsenext(httpparser.java:755) @ org.mortbay.jetty.httpparser.parseavailable(httpparser.java:218) @ org.mortbay.jetty.httpconnection.handle(httpconnection.java:404) @ org.mortbay.io.nio.selectchannelendpoint.run(selectchannelendpoint.java:409) @ org.mortbay.thread.queuedthreadpool$poolthread.run(queuedthreadpool.java:582) 04-may-2013 12:29:19 com.google.appengine.api.datastore.dev.localdatastoreservice init
from gwt 2.4, requestfactory interfaces must validated. so, have followed instructions? there can find eclipse/intellij maven/ant command line steps (checkout in comments).
the output of validation tool class file called "yourrequestfactoryname"deobfuscatorbuilder.class
, generated in web-inf/classes
directory, alongside "yourrequestfactoryname".class
. check presence , you'll sure validation tool has run (or remove sure have run).
Comments
Post a Comment