dodotis / gwtquery

Automatically exported from code.google.com/p/gwtquery
MIT License
0 stars 0 forks source link

Version 1.4.0 doesn't seem to work with IE9 #188

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a maven gwt project that includes a dependency on gwtquery 1.4.0
2. Run the project (either dev or prod).
3. See exceptions thrown when gwtquery code is executed.

What is the expected output? What do you see instead?

I expect things to work as documented.  But instead get exceptions.

What version of the product are you using? On what operating system?

1.4.0 on IE 9, Windows Vista.

Please provide any additional information below.

[ERROR] [gwtquerytest] - Failed to create an instance of 
'com.google.gwt.query.client.Console' via deferred binding 

15:29:58.136 [ERROR] [gwtquerytest] Failed to create an instance of 
'com.google.gwt.query.client.Console' via deferred binding 

com.google.gwt.core.client.JavaScriptException: (TypeError) 
@com.google.gwt.query.client.impl.ConsoleBrowser$ConsoleIe9::init()([]): Unable 
to get value of the property 'log': object is null or undefined
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:299)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
    at com.google.gwt.query.client.impl.ConsoleBrowser$ConsoleIe9.init(ConsoleBrowser.java)
    at com.google.gwt.query.client.impl.ConsoleBrowser$ConsoleIe9.<init>(ConsoleBrowser.java:43)
    at com.google.gwt.query.client.impl.ConsoleBrowser.<init>(ConsoleBrowser.java:131)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:475)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
    at com.google.gwt.core.shared.GWT.create(GWT.java:57)
    at com.google.gwt.core.client.GWT.create(GWT.java:85)
    at com.google.gwt.query.client.GQuery.<clinit>(GQuery.java:136)
    at com.gwtquerytest.client.EntryPt.onModuleLoad(EntryPt.java:21)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Unknown Source)

[ERROR] [gwtquerytest] - Unable to load module entry point class 
com.gwtquerytest.client.EntryPt (see associated exception for details)

15:29:58.204 [ERROR] [gwtquerytest] Unable to load module entry point class 
com.gwtquerytest.client.EntryPt (see associated exception for details)

java.lang.RuntimeException: Deferred binding failed for 
'com.google.gwt.query.client.Console' (did you forget to inherit a required 
module?)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
    at com.google.gwt.core.shared.GWT.create(GWT.java:57)
    at com.google.gwt.core.client.GWT.create(GWT.java:85)
    at com.google.gwt.query.client.GQuery.<clinit>(GQuery.java:136)
    at com.gwtquerytest.client.EntryPt.onModuleLoad(EntryPt.java:21)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Unknown Source)
Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log 
entries)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:513)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
    at com.google.gwt.core.shared.GWT.create(GWT.java:57)
    at com.google.gwt.core.client.GWT.create(GWT.java:85)
    at com.google.gwt.query.client.GQuery.<clinit>(GQuery.java:136)
    at com.gwtquerytest.client.EntryPt.onModuleLoad(EntryPt.java:21)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Unknown Source)

[ERROR] [gwtquerytest] - Failed to load module 'gwtquerytest' from user agent 
'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; 
.NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 
6.0; InfoPath.2; .NET4.0C; .NET4.0E)' at 127.0.0.1:62851

15:29:58.249 [ERROR] [gwtquerytest] Failed to load module 'gwtquerytest' from 
user agent 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; 
Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; 
Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)' at 127.0.0.1:62851

==

public class EntryPt implements EntryPoint
{
    @SuppressWarnings("nls")
    @Override
    public void onModuleLoad()
    {
        RootPanel.get().add(new Label("Hello World"));

        $("div", RootPanel.get()).on("click", new Function()
        {
            @Override
            public boolean f(Event e)
            {
                EventTarget et = e.getEventTarget();
                Element elem = et.cast();
                System.out.println(elem);
                return false;
            }
        });
    }
}

Original issue reported on code.google.com by sean.daw...@gmail.com on 7 Feb 2014 at 9:02

GoogleCodeExporter commented 9 years ago
I am having the same issue. Is this being looked into?

Original comment by dol...@gmail.com on 20 Feb 2014 at 7:18

GoogleCodeExporter commented 9 years ago
This is not the place to report issues, follow this issue in github 
https://github.com/gwtquery/gwtquery/issues/260

Original comment by manuel.carrasco.m on 20 Feb 2014 at 7:56