I finally found and fixed the problem. The error appeared because the class FreeSlotEventPlanel was declared as "class" in the same package as the caller (but not the same than the module XML) and not as "public class".
Simply changing to "public class" fixed the issue. The problem did not appear in Hosted Mode because it is valid Java code. From my point of view generating such obfuscated error ( "[ERROR] An internal compiler exception occurred. com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode" ) for a simple "is not public" error, is a bug in the GWT compiler. Is someone motivated to open a bug report ? Regards, rodrigob. On Jan 28, 9:22 am, rodrigob <rodrigo.benen...@gmail.com> wrote: > Hi there, > I'm compiling a middle size GWT program. The program runs well in > Hosted Mode but when I try to compile it I get the following error: > > Compiling permutations > Analyzing permutation #1 > [ERROR] An internal compiler exception occurred > com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode > at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:75) > at com.google.gwt.dev.jjs.impl.BuildTypeMap$BuildDeclMapVisitor.visit > (BuildTypeMap.java:295) > at org.eclipse.jdt.internal.compiler.ast.LocalDeclaration.traverse > (LocalDeclaration.java:234) > at org.eclipse.jdt.internal.compiler.ast.Block.traverse(Block.java: > 127) > at org.eclipse.jdt.internal.compiler.ast.SwitchStatement.traverse > (SwitchStatement.java:377) > at org.eclipse.jdt.internal.compiler.ast.Block.traverse(Block.java: > 127) > at org.eclipse.jdt.internal.compiler.ast.IfStatement.traverse > (IfStatement.java:247) > at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse > (MethodDeclaration.java:244) > at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse > (TypeDeclaration.java:1222) > at > org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse > (CompilationUnitDeclaration.java:518) > at com.google.gwt.dev.jjs.impl.BuildTypeMap.createPeersForNonTypeDecls > (BuildTypeMap.java:937) > at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java: > 927) > at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compile > (JavaToJavaScriptCompiler.java:310) > 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) > [ERROR] <no source info>: class > com.MyApp.client.reservation.FreeSlotEventPlanel > extends com.MyLib.client.date.def.DefaultDayField > implements : com.google.gwt.user.client.ui.MouseListener > /* fields */ > com.MyApp.client.reservation.ReservationWidget reservation_widget > /* methods */ > void <init>(com.MyApp.client.reservation.ReservationWidget, > com.MyLib.client.date.DateRenderer) > com.google.gwt.user.client.ui.Widget createCustom > (java.io.Serializable) > com.google.gwt.user.client.ui.Widget getClickableItem() > void onClick(com.google.gwt.user.client.ui.Widget) > void onMouseDown(com.google.gwt.user.client.ui.Widget, int, int) > void onMouseEnter(com.google.gwt.user.client.ui.Widget) > void onMouseLeave(com.google.gwt.user.client.ui.Widget) > void onMouseMove(com.google.gwt.user.client.ui.Widget, int, int) > void onMouseUp(com.google.gwt.user.client.ui.Widget, int, int) > > org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding > [ERROR] at ReservationWidgetDateRenderer.java(61): final > FreeSlotEventPlanel panel = new FreeSlotEventPlanel > (reservation_widget, this); > org.eclipse.jdt.internal.compiler.ast.LocalDeclaration > > since that particular are of the code is being executed in Hosted Mode > I'm certain the code itself has no Java errors. > Does someone has a hint on what is going on ? > I found very little references online about this kind of errors. > > Thanks for your support. > Regards, > rodrigob. --~--~---------~--~----~------------~-------~--~----~ 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-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---