GWT compiler error with ListType

59 views
Skip to first unread message

pierre

unread,
Jul 15, 2011, 6:22:01 AM7/15/11
to Google Web Toolkit
Hi all,

I have the following error from GWT compiler, event if the User
module is included:

__________________________

Compiling module com.soladhoc.friends.Friends
Validating newly compiled units
[ERROR] Errors in 'file:/C:/Users/Pierre/workspace-GAE/Friends/
src/com/soladhoc/friends/shared/proxy/NamedListProxy.java'
[ERROR] Line 17: No source code is available for type
com.google.gwt.i18n.server.Type.ListType; did you forget to inherit a
required module?
________________________________

The question is : Why that error if I18N is included in User module ?

Magno Machado

unread,
Jul 15, 2011, 6:28:22 AM7/15/11
to google-we...@googlegroups.com
Looks like you're referencing a server-side class


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

Jens

unread,
Jul 15, 2011, 6:31:46 AM7/15/11
to google-we...@googlegroups.com
You probably imported something wrong in your NamedListProxy file. You have imported com.google.gwt.i18n.server.Type.ListType but every code thats in a server package is not seen by the GWT compiler and thats why you get that error. You have to remove that import in your NamedListProxy.

dreamer

unread,
Jul 16, 2011, 11:19:25 AM7/16/11
to Google Web Toolkit
Can you please review code speperation.

in client package only keep GWT code
in server package only keep server code
in shared only keep DTO objects (value objects) (transported from
client to server - should be serializable)

To me - proxy - sounds like client proxy should be in - client
package.

On Jul 15, 3:31 am, Jens <jens.nehlme...@gmail.com> wrote:
> You probably imported something wrong in your NamedListProxy file. You have
> imported com.google.gwt.i18n.*server*.Type.ListType but every code thats in
> a *server* package is not seen by the GWT compiler and thats why you get

Jeff Larsen

unread,
Jul 18, 2011, 12:06:45 PM7/18/11
to google-we...@googlegroups.com
The server needs access to the proxy interface (The proxyFor/proxyForName get used in reflection on the server)
Reply all
Reply to author
Forward
0 new messages