Thursday, May 18, 2017

Re: GWT2.8.1 errors "Exception: (TypeError) : object_0_g$.getXXX_30_g$ is not a function"

I think I have the same problem as you. See my earlier post on this forum:
I wanted to file an issue about this problem, but I couldn't track down the exact behavior of the GWT compiler when this happens (except the info you can see in my linked post). I didn't file an issue in the end because I didn't have a deterministic way to reproduce it. If we would be able to reliably reproduce the issue, that would be the first major step towards fixing it. Also, for me, it happened with normal classes too, not just anonymous classes. Also worth mentioning that I never had this problem with the normal GWT compiler, only with SuperDevMode.

On Wednesday, May 17, 2017 at 4:37:46 PM UTC+2, Darren Smith wrote:
Hi all

since upgrading to GWT2.8.1 I am seeing an error message never before encountered (and I've been developing with GWT for numerous years).

   "Exception: (TypeError) : object_0_g$.getXXX_30_g$ is not a function"

Reverting back to GWT2.8 caused the problem to disappear.

The problem has only occurred in anonymous classes up until now (but no idea if that is important or not).

For example, I have

public class SomeTable extends DataGrid<SomeClass> {

  private void initTable() {

         TextColumn<SomeClass> arcIdCol = new TextColumn<SomeClass>() {
public String getValue(SomeClass object) {"XXXX= " + object.getXXXX());  // EXECUTION PROBLEM HERE
return object.getXXXX()

The java code compiles fine, and the GWT compilation works fine when SuperDev mode is launched (all done in Eclipse).

When the line is reached, the error ".. not a function" is thrown.

Examining in the browser debugger, I can see that the prototype (_proto_) associated to the " SomeClass object" parameter  does not contain the function getXXXX.

If I re-edit the file, adding in a new dummy method, and re-save, then this time it works -- the function getXXXX exists.

Sounds like an incomplete incremental compilation?

What is frustrating is that the problem is sporadic - other classes employing the same design patterns work fine.

Has anyone encountered similar issues?


You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment