nijogeorgep / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

Problem using Chrome to view #656

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am using the following EntryPoint

@Override
    public void onModuleLoad() {
    final DynamicForm form = new DynamicForm();  
        form.setWidth(500);  
        form.setNumCols(4);  

        ComboBoxItem bugStatusItem = new ComboBoxItem("bugStatus");  
        bugStatusItem.setTitle("Bug Status");  

        LinkedHashMap<String, String> valueMap = new  LinkedHashMap<String, String>();  
        valueMap.put("new", "New");  
        valueMap.put("active", "Active");  
        valueMap.put("revisit", "Revisit");  
        valueMap.put("fixed", "Fixed");  
        valueMap.put("delivered", "Delivered");  
        valueMap.put("resolved", "Resolved");  
        valueMap.put("reopened", "Reopened");  

        bugStatusItem.setValueMap(valueMap);  
        form.setItems(bugStatusItem);  

        form.draw(); 
}

When I try to run in debugging I get the following...

00:03:21.550 [ERROR] Unable to load module entry point class 
com.smartgwt.client.SmartGwtEntryPoint (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot read 
property 'Browser' of undefined     at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelSer
ver.java:248)   at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) 
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)  at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289)     at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107
)   at com.smartgwt.client.SmartGwtEntryPoint.init(SmartGwtEntryPoint.java)     at 
com.smartgwt.client.SmartGwtEntryPoint.onModuleLoad(SmartGwtEntryPoint.java:239)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39

When I run without the debug I get the following in a popup and nothing else...

GWT module 'com.gleason.ecommerce.textmanagement.gwt.Header' may need to be 
(re)compiled

Original issue reported on code.google.com by jackiegl...@gmail.com on 31 Jan 2012 at 10:04

GoogleCodeExporter commented 8 years ago
Using Chrome on Ubuntux64

Original comment by jackiegl...@gmail.com on 31 Jan 2012 at 10:04

GoogleCodeExporter commented 8 years ago
See FAQ (in forums at forums.smartclient.com) about problems in Chrome in Dev 
Mode due to bugs in core GWT.  However note that your error message probably 
indicates a botched install as well - please do not post such problems here as 
this is obviously not a valid (and you omitted lots of required details for a 
bug report as well).

Original comment by smartgwt...@gmail.com on 31 Jan 2012 at 10:09

GoogleCodeExporter commented 8 years ago
For the record I am sorry for posting where it doesn't belong however, not 
working with Chrome seemed more of a bug to me. I would have posted this on 
your IRC presence but I couldn't find it and I don't use email lists due to 
spam.

On another not I know it is not a "botched install" because when I remove the 
SmartGWT classes (just GWT) everything works fine. 

Original comment by jackiegl...@gmail.com on 1 Feb 2012 at 6:38

GoogleCodeExporter commented 8 years ago
Yes, it's a bug that Chrome works poorly with GWT - a bug Google has 
acknowledged as a flaw in GWT/Chrome.  If you'd checked the FAQ as directed, 
you'd see the links to the actual bugs on GoogleCode.

Original comment by smartgwt...@gmail.com on 1 Feb 2012 at 6:46

GoogleCodeExporter commented 8 years ago
According to the FAQS "If you do try out Development Mode in Chrome and 
encounter an issue that doesn't reproduce in 
other browsers, try running a full compile (in Eclipse, right click on your 
project, Google -> Compile).
If the issue goes away in compiled mode, it's due to a Chrome/GWT bug and 
should be ignored."

1.) I am not using eclipse I am using maven.
2.) I tried a mvn clean gwt:compile and I still get the error. 

Am I missing something, 

Also it says something about running in compiled mode, however I don't see that 
option...

Original comment by jackiegl...@gmail.com on 1 Feb 2012 at 8:37

Attachments:

GoogleCodeExporter commented 8 years ago
Then this is a botched install, and no, sorry, we can't review your Maven 
config for you or go over GWT basics with you.  This is an issue tracker, try 
forums.

Original comment by smartgwt...@gmail.com on 1 Feb 2012 at 8:40

GoogleCodeExporter commented 8 years ago
Workaround:

I worked around this by doing a "mvn clean compile gwt:compile package" then 
deploying the war to a local tomcat server. 

gwt:run will not work for a smartGWT project apparently, thanks to the bugs 
listed above.

Original comment by jackiegl...@gmail.com on 1 Feb 2012 at 9:13

GoogleCodeExporter commented 8 years ago
Incorrect.  gwt:run works fine, except in Chrome due to bugs in core GWT & 
Chrome as explained in the FAQ.  gwt:run is used constantly by other Maven 
users, with no issues.

Original comment by smartgwt...@gmail.com on 1 Feb 2012 at 9:16

GoogleCodeExporter commented 8 years ago
It also doesn't work for Firefox 9 thanks to GWT.  So you have to either  
install an older version of a browser or downgrade if using Ubuntu x64

Original comment by jackiegl...@gmail.com on 1 Feb 2012 at 9:21

GoogleCodeExporter commented 8 years ago
That is Ubuntu 11.10

Original comment by jackiegl...@gmail.com on 1 Feb 2012 at 9:22

GoogleCodeExporter commented 8 years ago
Bah, to clarify yet again, SmartGWT works fine in Firefox 9, but GWT 
development mode does not support Firefox 9 yet - it takes them a few weeks 
each time there's a Firefox release and Firefox is in rapid fire mode.

Now, it would be great if you could stop posting here with information we need 
to correct.  We have asked you to take any questions to the forums.

Original comment by smartgwt...@gmail.com on 1 Feb 2012 at 9:29