Discussion:
GWT behaves differently in Chrom vs Firefox
Velusamy Velu
2018-07-24 01:43:49 UTC
Permalink
Friends:

I have an application written using GWT 2.8.2 framework and it behaves
differently. The snippet of the GWT code in question is here -
(ReferenceError) : L_g_g$ is not defined


for (int j = 1; j < nodes.size(); j++) {
Node previousNode = nodes.get(j - 1);
Node currentNode = nodes.get(j);
int indexFrom = previousNode.getIndex();
int indexTo = currentNode.getIndex();

if (!connectionMatrix[indexFrom][indexTo]) {
connectionMatrix[indexFrom][indexTo] = true;
connectionMatrix[indexTo][indexFrom] = true;
contributed = true;
BondTriple bondTriple = new BondTriple(indexFrom, indexTo);


The last line of the above code snippet is the Culprit. It works as
expected in FireFox, in Chrome however, it throws "L_g_g$ is not defined"
error. In debugger mode I found that L_g_g$ refers to the *BondTriple* as
highlighted here > BondTriple bondTriple = new *BondTriple*(indexFrom,
indexTo);

This code has been thoroughly unit tested and every functionality was
verified. The fact that it works in Firefox but fails in Chrome baffles me
even more. BondTriple defined as below. I'm using non-primitive attributes
to check for null. Have anyone ran into a situation like this? I'm having
hard time figuring out what could be wrong. Your help will be greatly
appreciated.

public class BondTriple implements Jsonable {
private Integer start;
private Integer finish;
private Integer bondType;
private Shape connector;

public BondTriple(Integer start, Integer finish) {
this.start = start;
this.finish = finish;
}
...
--
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 google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Michael Joyner
2018-07-24 15:07:41 UTC
Permalink
Is this in SDM mode? If yes, try turning off incremental compilations.
Post by Velusamy Velu
I have an application written using GWT 2.8.2 framework and it behaves
differently. The snippet of the GWT code in question is here -
(ReferenceError) : L_g_g$ is not defined
for (int j = 1; j < nodes.size(); j++) {
Node previousNode = nodes.get(j - 1);
Node currentNode = nodes.get(j);
int indexFrom = previousNode.getIndex();
int indexTo = currentNode.getIndex();
if (!connectionMatrix[indexFrom][indexTo]) {
connectionMatrix[indexFrom][indexTo] = true;
connectionMatrix[indexTo][indexFrom] = true;
contributed = true;
BondTriple bondTriple = new BondTriple(indexFrom, indexTo);
The last line of the above code snippet is the Culprit. It works as
expected in FireFox, in Chrome however, it throws "L_g_g$ is not defined"
error. In debugger mode I found that L_g_g$ refers to the *BondTriple* as
highlighted here > BondTriple bondTriple = new *BondTriple*(indexFrom,
indexTo);
This code has been thoroughly unit tested and every functionality was
verified. The fact that it works in Firefox but fails in Chrome baffles me
even more. BondTriple defined as below. I'm using non-primitive attributes
to check for null. Have anyone ran into a situation like this? I'm having
hard time figuring out what could be wrong. Your help will be greatly
appreciated.
public class BondTriple implements Jsonable {
private Integer start;
private Integer finish;
private Integer bondType;
private Shape connector;
public BondTriple(Integer start, Integer finish) {
this.start = start;
this.finish = finish;
}
...
--
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
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
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 google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Velusamy Velu
2018-07-24 16:53:34 UTC
Permalink
Hi Michael

I appreciate your recommendation. Yes it's in SDM mode. I don't have the
luxury to try your suggestion right away due to my travel. Will try it on
my return.

I did suspect something to the effect of a cache behind this. Hence I tried
clearing and rebuilding, it failed yet. Nothing helped so far.
Post by Michael Joyner
Is this in SDM mode? If yes, try turning off incremental compilations.
Post by Velusamy Velu
I have an application written using GWT 2.8.2 framework and it behaves
differently. The snippet of the GWT code in question is here -
(ReferenceError) : L_g_g$ is not defined
for (int j = 1; j < nodes.size(); j++) {
Node previousNode = nodes.get(j - 1);
Node currentNode = nodes.get(j);
int indexFrom = previousNode.getIndex();
int indexTo = currentNode.getIndex();
if (!connectionMatrix[indexFrom][indexTo]) {
connectionMatrix[indexFrom][indexTo] = true;
connectionMatrix[indexTo][indexFrom] = true;
contributed = true;
BondTriple bondTriple = new BondTriple(indexFrom, indexTo);
The last line of the above code snippet is the Culprit. It works as
expected in FireFox, in Chrome however, it throws "L_g_g$ is not defined"
error. In debugger mode I found that L_g_g$ refers to the *BondTriple*
as highlighted here > BondTriple bondTriple = new *BondTriple*(indexFrom,
indexTo);
This code has been thoroughly unit tested and every functionality was
verified. The fact that it works in Firefox but fails in Chrome baffles me
even more. BondTriple defined as below. I'm using non-primitive attributes
to check for null. Have anyone ran into a situation like this? I'm having
hard time figuring out what could be wrong. Your help will be greatly
appreciated.
public class BondTriple implements Jsonable {
private Integer start;
private Integer finish;
private Integer bondType;
private Shape connector;
public BondTriple(Integer start, Integer finish) {
this.start = start;
this.finish = finish;
}
...
--
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
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the
Google Groups "GWT Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/google-web-toolkit/IYcu87xv4RA/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
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 google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
David Nouls
2018-07-24 17:46:56 UTC
Permalink
clear your temp folder, sdm puts lots of stuff there and sometimes it gets corrupted and you get these kind of errrors.
Post by Velusamy Velu
Hi Michael
I appreciate your recommendation. Yes it's in SDM mode. I don't have the luxury to try your suggestion right away due to my travel. Will try it on my return.
I did suspect something to the effect of a cache behind this. Hence I tried clearing and rebuilding, it failed yet. Nothing helped so far.
Post by Michael Joyner
Is this in SDM mode? If yes, try turning off incremental compilations.
I have an application written using GWT 2.8.2 framework and it behaves differently. The snippet of the GWT code in question is here -
(ReferenceError) : L_g_g$ is not defined
      for (int j = 1; j < nodes.size(); j++) {
        Node previousNode = nodes.get(j - 1);
        Node currentNode = nodes.get(j);
        int indexFrom = previousNode.getIndex();
        int indexTo = currentNode.getIndex();
        if (!connectionMatrix[indexFrom][indexTo]) {
          connectionMatrix[indexFrom][indexTo] = true;
          connectionMatrix[indexTo][indexFrom] = true;
          contributed = true;
          BondTriple bondTriple = new BondTriple(indexFrom, indexTo);
The last line of the above code snippet is the Culprit. It works as expected in FireFox, in Chrome however, it throws "L_g_g$ is not defined" error. In debugger mode I found that L_g_g$ refers to the BondTriple as highlighted here > BondTriple bondTriple = new BondTriple(indexFrom, indexTo);
This code has been thoroughly unit tested and every functionality was verified. The fact that it works in Firefox but fails in Chrome baffles me even more. BondTriple defined as below. I'm using non-primitive attributes to check for null. Have anyone ran into a situation like this? I'm having hard time figuring out what could be wrong. Your help will be greatly appreciated.
public class BondTriple implements Jsonable {
  private Integer start;
  private Integer finish;
  private Integer bondType;
  private Shape connector;
  public BondTriple(Integer start, Integer finish) {
    this.start = start;
    this.finish = finish;
  }
...
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/IYcu87xv4RA/unsubscribe.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
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 google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Velusamy Velu
2018-07-30 18:58:01 UTC
Permalink
Hi Michael: I tried this by Windows > Preferences > General > Workspace >
Build and unchecked the "Build automatically" option. It didn't help. Am I
doing the right thing? Is there any other option?

Thanks
Velu
Post by Michael Joyner
Is this in SDM mode? If yes, try turning off incremental compilations.
Post by Velusamy Velu
I have an application written using GWT 2.8.2 framework and it behaves
differently. The snippet of the GWT code in question is here -
(ReferenceError) : L_g_g$ is not defined
for (int j = 1; j < nodes.size(); j++) {
Node previousNode = nodes.get(j - 1);
Node currentNode = nodes.get(j);
int indexFrom = previousNode.getIndex();
int indexTo = currentNode.getIndex();
if (!connectionMatrix[indexFrom][indexTo]) {
connectionMatrix[indexFrom][indexTo] = true;
connectionMatrix[indexTo][indexFrom] = true;
contributed = true;
BondTriple bondTriple = new BondTriple(indexFrom, indexTo);
The last line of the above code snippet is the Culprit. It works as
expected in FireFox, in Chrome however, it throws "L_g_g$ is not defined"
error. In debugger mode I found that L_g_g$ refers to the *BondTriple*
as highlighted here > BondTriple bondTriple = new *BondTriple*(indexFrom,
indexTo);
This code has been thoroughly unit tested and every functionality was
verified. The fact that it works in Firefox but fails in Chrome baffles me
even more. BondTriple defined as below. I'm using non-primitive attributes
to check for null. Have anyone ran into a situation like this? I'm having
hard time figuring out what could be wrong. Your help will be greatly
appreciated.
public class BondTriple implements Jsonable {
private Integer start;
private Integer finish;
private Integer bondType;
private Shape connector;
public BondTriple(Integer start, Integer finish) {
this.start = start;
this.finish = finish;
}
...
--
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
<javascript:>.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
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 google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Jens
2018-07-30 19:18:12 UTC
Permalink
Post by Velusamy Velu
Hi Michael: I tried this by Windows > Preferences > General > Workspace >
Build and unchecked the "Build automatically" option. It didn't help. Am
I doing the right thing? Is there any other option?
GWT SuperDevMode has its own cache that you can clear by visiting the
SuperDevMode page (localhost:9876) and hit the small clean button at the
bottom. Once you have done that SDM starts from scratch and compiles
everything again.

-- J.
--
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 google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Velusamy Velu
2018-07-30 19:44:21 UTC
Permalink
Michael & David

After clearing the TEMP folder and clearing the compiler caches at
localhost:9876 that error message disappeared.

Thanks a lot

Velusamy K. Velu
614-321-9649

<http://www.linkedin.com/in/vkvelu>
Post by Velusamy Velu
Hi Michael: I tried this by Windows > Preferences > General > Workspace >
Post by Velusamy Velu
Build and unchecked the "Build automatically" option. It didn't help. Am
I doing the right thing? Is there any other option?
GWT SuperDevMode has its own cache that you can clear by visiting the
SuperDevMode page (localhost:9876) and hit the small clean button at the
bottom. Once you have done that SDM starts from scratch and compiles
everything again.
-- J.
--
You received this message because you are subscribed to a topic in the
Google Groups "GWT Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/google-web-toolkit/IYcu87xv4RA/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
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 google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Michael Joyner
2018-07-30 19:46:54 UTC
Permalink
tasks.withType(org.wisepersist.gradle.plugins.gwt.AbstractGwtActionTask) {
args "-noincremental"
}
gwt {
logLevel = 'INFO'
maxHeapSize = "2048M";
gwtVersion='2.8.2'
modules 'xxx
//src += files("build/generated/source/apt/main");
compiler {
//ea = false //enable assert statements for testing result conditions
strict = true;
style = "OBF";
//style = "PRETTY";
//style = "DETAILED";
localWorkers = 4;
}
superDev {
noPrecompile = true;
failOnError = false;
bindAddress = "0.0.0.0";
}
eclipse {
addGwtContainer = true;
}
}
Post by Velusamy Velu
Michael & David
After clearing the TEMP folder and clearing the compiler caches at
localhost:9876 that error message disappeared.
Thanks a lot
Velusamy K. Velu
614-321-9649
<http://www.linkedin.com/in/vkvelu>
Post by Velusamy Velu
Hi Michael: I tried this by Windows > Preferences > General > Workspace
Post by Velusamy Velu
Build and unchecked the "Build automatically" option. It didn't help.
Am I doing the right thing? Is there any other option?
GWT SuperDevMode has its own cache that you can clear by visiting the
SuperDevMode page (localhost:9876) and hit the small clean button at the
bottom. Once you have done that SDM starts from scratch and compiles
everything again.
-- J.
--
You received this message because you are subscribed to a topic in the
Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/google-web-toolkit/IYcu87xv4RA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
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
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
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 google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Velusamy Velu
2018-07-31 13:16:32 UTC
Permalink
Michael:

I appreciate you sharing the information. I never considered Gradle to
build, may be it's time.

Thank You
--Velu
Post by Michael Joyner
tasks.withType(org.wisepersist.gradle.plugins.gwt.AbstractGwtActionTask) {
args "-noincremental"
}
gwt {
logLevel = 'INFO'
maxHeapSize = "2048M";
gwtVersion='2.8.2'
modules 'xxx
//src += files("build/generated/source/apt/main");
compiler {
//ea = false //enable assert statements for testing result conditions
strict = true;
style = "OBF";
//style = "PRETTY";
//style = "DETAILED";
localWorkers = 4;
}
superDev {
noPrecompile = true;
failOnError = false;
bindAddress = "0.0.0.0";
}
eclipse {
addGwtContainer = true;
}
}
Post by Velusamy Velu
Michael & David
After clearing the TEMP folder and clearing the compiler caches at
localhost:9876 that error message disappeared.
Thanks a lot
Velusamy K. Velu
614-321-9649
<http://www.linkedin.com/in/vkvelu>
Post by Velusamy Velu
Hi Michael: I tried this by Windows > Preferences > General > Workspace
Post by Velusamy Velu
Build and unchecked the "Build automatically" option. It didn't
help. Am I doing the right thing? Is there any other option?
GWT SuperDevMode has its own cache that you can clear by visiting the
SuperDevMode page (localhost:9876) and hit the small clean button at the
bottom. Once you have done that SDM starts from scratch and compiles
everything again.
-- J.
--
You received this message because you are subscribed to a topic in the
Google Groups "GWT Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/google-web-toolkit/IYcu87xv4RA/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
<javascript:>.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
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
<javascript:>.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
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 google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Velusamy Velu
2018-07-31 13:14:49 UTC
Permalink
Jens:

Thank you, it helped.
--Velu
Post by Velusamy Velu
Hi Michael: I tried this by Windows > Preferences > General > Workspace >
Post by Velusamy Velu
Build and unchecked the "Build automatically" option. It didn't help. Am
I doing the right thing? Is there any other option?
GWT SuperDevMode has its own cache that you can clear by visiting the
SuperDevMode page (localhost:9876) and hit the small clean button at the
bottom. Once you have done that SDM starts from scratch and compiles
everything again.
-- J.
--
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 google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Michael Joyner
2018-07-30 19:41:16 UTC
Permalink
We use Gradle here and we turn off SDM incremental when needed from there.
Post by Velusamy Velu
Hi Michael: I tried this by Windows > Preferences > General > Workspace >
Build and unchecked the "Build automatically" option. It didn't help. Am
I doing the right thing? Is there any other option?
Thanks
Velu
Post by Michael Joyner
Is this in SDM mode? If yes, try turning off incremental compilations.
Post by Velusamy Velu
I have an application written using GWT 2.8.2 framework and it behaves
differently. The snippet of the GWT code in question is here -
(ReferenceError) : L_g_g$ is not defined
for (int j = 1; j < nodes.size(); j++) {
Node previousNode = nodes.get(j - 1);
Node currentNode = nodes.get(j);
int indexFrom = previousNode.getIndex();
int indexTo = currentNode.getIndex();
if (!connectionMatrix[indexFrom][indexTo]) {
connectionMatrix[indexFrom][indexTo] = true;
connectionMatrix[indexTo][indexFrom] = true;
contributed = true;
BondTriple bondTriple = new BondTriple(indexFrom, indexTo);
The last line of the above code snippet is the Culprit. It works as
expected in FireFox, in Chrome however, it throws "L_g_g$ is not defined"
error. In debugger mode I found that L_g_g$ refers to the *BondTriple*
as highlighted here > BondTriple bondTriple = new *BondTriple*(indexFrom
, indexTo);
This code has been thoroughly unit tested and every functionality was
verified. The fact that it works in Firefox but fails in Chrome baffles me
even more. BondTriple defined as below. I'm using non-primitive attributes
to check for null. Have anyone ran into a situation like this? I'm having
hard time figuring out what could be wrong. Your help will be greatly
appreciated.
public class BondTriple implements Jsonable {
private Integer start;
private Integer finish;
private Integer bondType;
private Shape connector;
public BondTriple(Integer start, Integer finish) {
this.start = start;
this.finish = finish;
}
...
--
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
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
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
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
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 google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Loading...