Error when compiling GWT 2.4

37 views
Skip to first unread message

zeroconf

unread,
Jul 6, 2011, 7:33:38 AM7/6/11
to Google Web Toolkit
Hello,

I'm trying to compile GWT 2.4 (http://google-web-
toolkit.googlecode.com/svn/releases/2.4). I followed the instructions
from http://code.google.com/webtoolkit/makinggwtbetter.html but this
failed with following error messages:

> compile:
> [gwt.javac] Compiling 2839 source files to /home/sba/downloads/gwt/gwt-2.4.0/build/out/user/bin
> [gwt.javac] /home/sba/downloads/gwt/gwt-2.4.0/user/src/com/google/gwt/rpc/server/CommandSerializationUtil.java:36: warning: sun.misc.Unsafe is Sun proprietary API and may be >removed in a future release
>[gwt.javac] import sun.misc.Unsafe;
>[gwt.javac] ^
>[gwt.javac] /home/sba/downloads/gwt/gwt-2.4.0/user/src/com/google/gwt/rpc/server/CommandSerializationUtil.java:438: warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future release
>[gwt.javac] private static final Unsafe theUnsafe;
>[gwt.javac] ^
>[gwt.javac] /home/sba/downloads/gwt/gwt-2.4.0/user/src/com/google/web/bindery/requestfactory/shared/impl/FindRequest.java:34: The type com.google.web.bindery.requestfactory.shared.EntityProxyId<?> cannot be used here
>[gwt.javac] Request<EntityProxy> find(EntityProxyId<?> proxy);
>[gwt.javac] ^
>[gwt.javac] 1 error
>
>BUILD FAILED
>/home/sba/downloads/gwt/gwt-2.4.0/build.xml:104: The following error occurred while executing this line:
>/home/sba/downloads/gwt/gwt-2.4.0/build.xml:27: The following error occurred while executing this line:
>/home/sba/downloads/gwt/gwt-2.4.0/build.xml:60: The following error occurred while executing this line:
>/home/sba/downloads/gwt/gwt-2.4.0/user/build.xml:94: Compile failed; see the compiler error output for details.

What did I do wrong?

Thanks in advance!

Best,
Sebastian

Thomas Broyer

unread,
Jul 6, 2011, 7:56:05 AM7/6/11
to google-we...@googlegroups.com
Actually, nothing. The requestfactory-apt.jar from GWT_TOOLS is not compatible with the releases/2.4 branch. Try setting "-proc:none" in your JAVA_OPTS to bypass the annotation processors (both RfValidator –which generates the error here– and RfApt, which shouldn't be an issue if skipped), or "-processor org.google.web.bindery.requestfactory.apt.RfApt" to only bypass the RfValidator (and any other that would have run, but there shouldn't be any), or simply revert your GWT_TOOLS to r10417.
See http://code.google.com/p/google-web-toolkit/source/detail?r=10417 (the changes applied in trunk, not in releases/2.4.0; not how FindRequest has been modified, whcih is the one failing the build in releases/2.4.0) and http://code.google.com/p/google-web-toolkit/source/detail?r=10418 (the updated requestfactory-apt.jar rebuilt with these changes)

zeroconf

unread,
Jul 6, 2011, 9:11:54 AM7/6/11
to Google Web Toolkit
Dear Thomas,

On Jul 6, 1:56 pm, Thomas Broyer <t.bro...@gmail.com> wrote:
> or simply revert your GWT_TOOLS to r10417.
> Seehttp://code.google.com/p/google-web-toolkit/source/detail?r=10417(the
> changes applied in trunk, not in releases/2.4.0; not how FindRequest has
> been modified, whcih is the one failing the build in releases/2.4.0) andhttp://code.google.com/p/google-web-toolkit/source/detail?r=10418(the
> updated requestfactory-apt.jar rebuilt with these changes)

This worked. Thanks a lot.

Best,
Sebastian
Reply all
Reply to author
Forward
0 new messages