google-code-export / gwtquery

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

Exception hosted mode #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

I have the following module:

    @Override
    public void onModuleLoad() {

        GQuery.$("h1").css(CSS.COLOR, CSS.RED);
    }

In compiled mode works fine, but in hosted mode throws the exception:

[ERROR] Unable to load module entry point class ro.dix.gquery.client.Sample
(see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError): Object doesn't
support this property or method
 number: -2146827850
 description: Object doesn't support this property or method
    at com.google.gwt.query.client.SelectorEngine.xpathEvaluate(Native Method)
    at
com.google.gwt.query.client.impl.SelectorEngineXPath.select(SelectorEngineXPath.
java:143)
    at com.google.gwt.query.client.SelectorEngine.select(SelectorEngine.java:98)
    at com.google.gwt.query.client.GQuery.select(GQuery.java:478)
    at com.google.gwt.query.client.GQuery.$(GQuery.java:261)
    at com.google.gwt.query.client.GQuery.$(GQuery.java:229)
    at ro.dix.gquery.client.Sample.onModuleLoad(Sample.java:42)

Note that in the Sample.java, the line 42 is:
GQuery.$("h1").css(CSS.COLOR, CSS.RED);

Original issue reported on code.google.com by dan.pe...@gmail.com on 24 Jun 2009 at 1:46

GoogleCodeExporter commented 9 years ago
are you compiling to a specific browser? in other words, have you got sth like 

<set-property name="user.agent" value="gecko"/>

in your module definition file?

I have found that I get this error when I try to run in hosted mode after 
having 
compiled to firefox/chrome. Basically because in hosted mode, you are using the 
IE 
engine [in windows, at least].

Original comment by inho...@gmail.com on 13 Jul 2009 at 4:02

GoogleCodeExporter commented 9 years ago
you are right, inhodpr, I was using the gecko flag. Tx

Original comment by dan.pe...@gmail.com on 14 Sep 2009 at 8:35

GoogleCodeExporter commented 9 years ago

Original comment by manuel.carrasco.m on 13 May 2010 at 7:43