Testing RequestFactory in GWT 2.4 RC1

118 views
Skip to first unread message

Dominik Mayer

unread,
Aug 15, 2011, 10:54:21 PM8/15/11
to google-we...@googlegroups.com
I tried GWT 2.4 RC1 today. My application does compile and run in a browser, but some unit tests don't pass anymore. I get the following Stack Trace:

java.lang.RuntimeException: Did not have deobfuscation data for 2UqELyqusA0NSi_wPI4ZRpQ$hFw=
at com.google.web.bindery.requestfactory.vm.InProcessRequestFactory.getTypeFromToken(InProcessRequestFactory.java:118)
at com.google.web.bindery.requestfactory.shared.impl.IdFactory.getId(IdFactory.java:198)
at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.getId(AbstractRequestContext.java:738)
at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.processReturnOperations(AbstractRequestContext.java:1155)
at [...]

It used to work in GWT 2.3. Any ideas on how to fix this?

Robert Quinn

unread,
Aug 25, 2011, 9:55:55 AM8/25/11
to google-we...@googlegroups.com
I'm having the same problem in 2.4 RC1 trying to RequestFactory in JUnit.

Thomas Broyer

unread,
Aug 25, 2011, 11:37:22 AM8/25/11
to google-we...@googlegroups.com
See http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation
In 2.4 the annotation processor is already there (called RfApt, living in requestfactory-apt.jar; note that there's no ValidationTool in 2.4 though), so you have to compile your proxies with the RfApt in the classpath (provided you use Java 6 at a minimum) or use the 'apt' tool from the command line to process your source files (or activate annotation processing in Eclipse, and add requestfactory-apt.jar to the list of annotation processors).

Robert Quinn

unread,
Aug 25, 2011, 2:02:32 PM8/25/11
to Google Web Toolkit
The 2.4.0 RC1 SDK distribution doesn't have a requestfactory-apt.jar

Does that mean I have to checkout the 2.4.0 RC1 source and build the
TOOLS myself in order to get this jar?

On Aug 25, 10:37 am, Thomas Broyer <t.bro...@gmail.com> wrote:
> Seehttp://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterf...

Robert Quinn

unread,
Aug 25, 2011, 4:53:58 PM8/25/11
to Google Web Toolkit
Nevermind - I see that these were just integrated onto the 2.4 branch
today, so I'll wait for the next drop.
Reply all
Reply to author
Forward
0 new messages