Generated AutoBean name length for Proxies too long

412 views
Skip to first unread message

Kevin Jordan

unread,
Jul 11, 2011, 4:03:55 PM7/11/11
to Google Web Toolkit
I have a ValueProxy with an already fairly long name length (44
characters), but when it goes to generate an AutoBean for it, it adds
another 220 characters to that and hits the file name limit of most
linux filesystems (usually around 255 characters). This makes my
build fail of course since it can't write the generated file. Now I
can make changes to my code to make sure my name is below 35
characters or change to Reiser4 which I believe is about the only
filesystem that has a limit above that. Or the other option is to
have the AutoBean code generator not add such a long addition to the
filename (although I've no idea how this would work for DETAILED
output mode, which is what I'm outputting as):
{myClassName}
AutoBean_com_google_web_bindery_requestfactory_shared_impl_EntityProxyCategory_com_google_web_bindery_requestfactory_shared_impl_ValueProxyCategory_com_google_web_bindery_requestfactory_shared_impl_BaseProxyCategory

Thomas Broyer

unread,
Jul 11, 2011, 4:58:07 PM7/11/11
to google-we...@googlegroups.com
See http://code.google.com/p/google-web-toolkit/issues/detail?id=6015

This has been worked-around in trunk (we can hardly talk about it as a fix) and will be in 2.4.

The best workaround to date is to *not* use -gen (which btw is not possible with the gwt-maven-plugin for instance)

Y2i

unread,
Sep 15, 2011, 7:36:26 PM9/15/11
to google-we...@googlegroups.com
I just run into the same problem with gwt-maven-plugin.  Got a bunch of warnings like

[INFO]  [WARN] Error writing out generated unit at '...target/.generated/...'  (File name too long)

but the output at the end says BUILD SUCCESS.

Do these warnings/write errors affect the compilation?  gwt:compile says 
Location on filesystem where GWT will write generated content for review (-gen option to GWTCompiler)

It looks like the warnings can be ignored (I hope).

Y2i

unread,
Sep 15, 2011, 7:58:12 PM9/15/11
to google-we...@googlegroups.com
Thomas, I think this is the 'fix' you were referring to.

Thomas Broyer

unread,
Sep 16, 2011, 4:52:49 AM9/16/11
to google-we...@googlegroups.com
Yes, you can safely ignore them.
What they tell you is that you won't find the source for the generated class in the …target/.generated/…; which is generally the reason you'd use -gen (have access to the generated sources to help debug things –setting breakpoints and debug step-by-step–)
I wish there was a way to disable -gen for gwt-maven-plugin, as it generates a whole lot of I/O, which slows down the compilation.
Reply all
Reply to author
Forward
0 new messages