The only other environment element of interest is the jdk version which is 1.5.0_10 but that should not matter since GWT is using the JRE emulation library. For now I have switched to use the GWT RequestBuilder and everything works fine (of course I am limited to GET and POST).
If you can think of anything else that may be causing this error please let me know.
Compiling module com.example.foo.Foo Compiling permutations Analyzing permutation #1 [ERROR] An internal compiler exception occurredcom.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit. at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:538)
at com.google.gwt.dev.jjs.ast.JVisitor.doTraverse(JVisitor.java:529) at com.google.gwt.dev.jjs.ast.JVisitor.doAccept(JVisitor.java:509) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:65)at com.google.gwt.dev.jjs.ast.JClassLiteral.traverse(JClassLiteral.java:127)
at com.google.gwt.dev.jjs.ast.JVisitor.doTraverse(JVisitor.java:527) at com.google.gwt.dev.jjs.ast.JVisitor.doAccept(JVisitor.java:509) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:65)at com.google.gwt.dev.jjs.ast.JReturnStatement.traverse(JReturnStatement.java:39)
at com.google.gwt.dev.jjs.ast.JVisitor.doTraverse(JVisitor.java:527)at com.google.gwt.dev.jjs.ast.JVisitor.doAcceptWithInsertRemove(JVisitor.java:521) at com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemove(JVisitor.java:81)
at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:36) at com.google.gwt.dev.jjs.ast.JVisitor.doTraverse(JVisitor.java:527) at com.google.gwt.dev.jjs.ast.JVisitor.doAccept(JVisitor.java:509) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:73) at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:52) at com.google.gwt.dev.jjs.ast.JVisitor.doTraverse(JVisitor.java:527) at com.google.gwt.dev.jjs.ast.JVisitor.doAccept(JVisitor.java:509) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:69) at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:189) at com.google.gwt.dev.jjs.ast.JVisitor.doTraverse(JVisitor.java:527)at com.google.gwt.dev.jjs.ast.JVisitor.doAcceptWithInsertRemove(JVisitor.java:521) at com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemove(JVisitor.java:81)
at com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:62) at com.google.gwt.dev.jjs.ast.JVisitor.doTraverse(JVisitor.java:527) at com.google.gwt.dev.jjs.ast.JVisitor.doAccept(JVisitor.java:515) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:77) at com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:799) at com.google.gwt.dev.jjs.ast.JVisitor.doTraverse(JVisitor.java:527) at com.google.gwt.dev.jjs.ast.JVisitor.doAccept(JVisitor.java:509) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:69)at com.google.gwt.dev.jjs.impl.TypeTightener.execImpl(TypeTightener.java:780) at com.google.gwt.dev.jjs.impl.TypeTightener.exec(TypeTightener.java:722) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compile(JavaToJavaScriptCompiler.java:398) at com.google.gwt.dev.GWTCompiler.realizePermutation(GWTCompiler.java:511) at com.google.gwt.dev.GWTCompiler.compilePermutations(GWTCompiler.java:442)
at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:358) at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:564) at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554) at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214) Caused by: java.util.NoSuchElementException at java.util.AbstractList$Itr.next(AbstractList.java:427)at com.google.gwt.dev.jjs.impl.TypeTightener$RecordVisitor.endVisit(TypeTightener.java:231)
at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:124) at com.google.gwt.dev.jjs.ast.JVisitor.doTraverse(JVisitor.java:527) ... 39 more[ERROR] <no source info>: Class.createForEnum("org.restlet.gwt.data.", "Dimension")
com.google.gwt.dev.jjs.ast.JMethodCall [ERROR] <no source info>: Dimension.class com.google.gwt.dev.jjs.ast.JClassLiteral [ERROR] <no source info>: return Dimension.class com.google.gwt.dev.jjs.ast.JReturnStatement [ERROR] <no source info>: { return Dimension.class; } com.google.gwt.dev.jjs.ast.JBlock [ERROR] <no source info>: { return Dimension.class; } com.google.gwt.dev.jjs.ast.JMethodBody [ERROR] <no source info>: public final Class getClass(); com.google.gwt.dev.jjs.ast.JMethod [ERROR] at Dimension.java(30): final class Dimension extends Enum com.google.gwt.dev.jjs.ast.JEnumType [ERROR] <no source info>: <JProgram> com.google.gwt.dev.jjs.ast.JProgram [ERROR] Build failed thanks, Doug Rob Heittman wrote:
Your test case is not blowing up for me ... I don't use Maven *at all* but I am trying to learn a little bit about it and set that up to see if that could be the trouble. I'm also using Ubuntu 8.04 to keep apples to apples.On Sat, Aug 2, 2008 at 7:53 PM, Doug Alcouffe <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:Hey Rob, Thanks for the reply. I am on Linux (Ubuntu 8.04) and using GWT 1.5RC1. The one thing that may be different is that I am using the GWT Maven 2 plugin for my builds. I have attached a simple example (default that gets created with the GWT Maven archtype) that is a simple GWT-RPC example. I have added one line in the client App.java class that has a restlet Client.get() method call. This line is commented out to show that the project will build fine. When the line is uncommented then I get a GWT compile error. I figure it must have something to do with the fact I am using the Maven plugin but I am not sure where the issue is. I will try to use the standard GWT command line project builder and see if the problem still shows up. If you have a chance to try and recreate that would be great. thanks, Doug Rob Heittman wrote:Hi Doug, I'm not getting that error from Restlet trunk or snapshot, compiling on Linux or Mac with GWT 1.5RC1. I think Jerome compiles on Windows, the poor fellow. Anything different about your setup -- like using GWT 1.5 trunk instead of RC1? If you can give me a little more environment details, I'll try to set it up and reproduce. If the code is something you can share, that would be helpful too. - Rob On Sat, Aug 2, 2008 at 4:39 PM, Doug Alcouffe <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: I am working on a project where I am trying to use the new Restlet GWT port for client - server communication. I have one line in my client code that calls org.restlet.gwt.Client.get(/resourceUri/, /callback/) that produces the following error when I do a GWT compile. I am not sure what the problem is. I am using GWT 1.5 and Restlet 1.1snapshot. If anyone has any ideas please let me know. I would hate to have to fallback to GWT-RPC.
Foo.tar.gz
Description: GNU Zip compressed data