'$wnd.Ext.StatusBar' is null or not an object

144 views
Skip to first unread message

PeteF

unread,
Apr 12, 2009, 2:12:36 AM4/12/09
to Google Web Toolkit
Hi all,

I have installed gwt-ext through Maven plugin for eclipse. I am using
gwtext version 2.0.5.

I have added the following to MyApplication.gwt.xml:

<inherits name='com.gwtext.GwtExt' />

<stylesheet src="GwtExt.css" />
<script src="js/GwtExt.js"></script>

I have also added the following to MyApplication.html:

<script type="text/javascript" src="js/GwtExt.js"
charset="utf-8"></script>

I am using some getext windgets and everything passes compilation.
When I run my application, I get the following error pointing to the
first line of code where I am using the gwtext widget:

[ERROR] Failed to create an instance of 'MyApplication' via
deferred binding
java.lang.ExceptionInInitializerError: null
at MyApplication.<init>(MyApplication.java:66)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate
(ModuleSpace.java:367)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:312)
at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace
(BrowserWidget.java:345)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300
(BrowserWidgetIE6.java:37)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
(BrowserWidgetIE6.java:76)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
(BrowserWidgetIE6.java:153)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
(IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
(IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6
(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.SwtHostedModeBase.processEvents
(SwtHostedModeBase.java:237)
at com.google.gwt.dev.HostedModeBase.pumpEventLoop
(HostedModeBase.java:555)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:402)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:140)
Caused by: com.google.gwt.core.client.JavaScriptException:
(TypeError): '$wnd.Ext.StatusBar' is null or not an object
number: -2146823281
description: '$wnd.Ext.StatusBar' is null or not an object
at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
at com.gwtext.client.widgets.Component.<clinit>(Component.java:108)
at MyApplication.<init>(MainView.java:66)

Any ideas as to what I am missing and/or how I can fix this? Any help
would be greatly appreciated.

Thanks,
Payam

Paul Grenyer

unread,
Apr 12, 2009, 4:57:34 AM4/12/09
to Google-We...@googlegroups.com
Hi

Take a look at my latest post to the "GWT 1.6 and GXT" thread I
started yesterday. It might help you get a bit further.

--
Thanks
Paul

Paul Grenyer
e: paul.g...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

Payam

unread,
Apr 12, 2009, 10:06:34 AM4/12/09
to Google Web Toolkit
Thanks for your reply. I took a look at your posting and the entire
thread. The only js file I can find with the downloaded gwt-ext jar is
GwtExt.jar. All the postings related to this that I have found talk
about other javascript files (like gwt-all.jar, etc.) that I cannot
find in my downloaded 2.0.5 jar. Any other thoughts?

Thanks,
Payam

On Apr 12, 4:57 am, Paul Grenyer <paul.gren...@gmail.com> wrote:
> Hi
>
> Take a look at my latest post to the "GWT 1.6 and GXT" thread I
> started yesterday. It might help you get a bit further.
>
> --
> Thanks
> Paul
>
> Paul Grenyer
> e: paul.gren...@gmail.com

Payam

unread,
Apr 12, 2009, 10:24:14 AM4/12/09
to Google Web Toolkit
More specifically, I cannot find the following in my download gwt-ext
jar file:

/js/ext/resources/css/ext-all.css
/js/ext/adapter/ext/ext-base.js
/js/ext/ext-all.js

The only css file I can find is: GwtExt.css

I cannot find any ext directory as part of my download. The only
javascript directly under js directory is: js/GwtExt.js which I have
included in my MyApplication.gwt.xml file. There are other javascript
files under the following directories. Do I need to include any of
them if I want to use the code I have found at: http://gwt-ext.com/demo/#basicArrayGrid

/js/map/
/js/pagebus/
/js/sh/
/js/yui/


I am using gwt 1.6.0.

Any help would be appreciated.

Paul Grenyer

unread,
Apr 12, 2009, 11:01:07 AM4/12/09
to Google-We...@googlegroups.com
Hi

No worries, although I haven't been any help yet.

I obviously have my environment configured incorrectly. Would you be so kind as to describe your setup in detail so I can make mine the same, please?

Sent from my BlackBerry® wireless device

-----Original Message-----
From: Payam <payam...@gmail.com>

Date: Sun, 12 Apr 2009 07:06:34
To: Google Web Toolkit<Google-We...@googlegroups.com>
Subject: Re: '$wnd.Ext.StatusBar' is null or not an object

Payam

unread,
Apr 12, 2009, 11:39:00 AM4/12/09
to Google Web Toolkit
I am using Maven to get the libraries. Here is what I have in my
pom.xml for gwt-ext:

<repository>
<id>gwtext</id>
<url>http://www.gwt-ext.com/maven2/</url>
</repository>

<dependency>
<groupId>com.gwtext</groupId>
<artifactId>gwtext</artifactId>
<version>2.0.5</version>
</dependency>

The rest of my setup is included in my posts above.

Hope this helps. Please let me know whether you run into the same
issue when setting it up this way.

Payam

On Apr 12, 11:01 am, "Paul Grenyer" <paul.gren...@gmail.com> wrote:
> Hi
>

Paul Grenyer

unread,
Apr 13, 2009, 11:34:44 AM4/13/09
to Google-We...@googlegroups.com
Again, take a look at my other thread. Nick has solved the problem for
us. I suspect you'll have to modify your maven script to get gxt-2.0.2
as well......
e: paul.g...@gmail.com

jeeva

unread,
Apr 20, 2009, 6:25:06 AM4/20/09
to Google Web Toolkit
hi friends....

i have the same problem.... but i am using only in client side.... so
there is no need of Maven Script.
Error i got is below...

[ERROR] Unable to load module entry point class
com.gwtbook.client.Gadgets (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError):
'$wnd.Ext.StatusBar' is null or not an object
number: -2146823281
description: '$wnd.Ext.StatusBar' is null or not an object
at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
at com.gwtext.client.widgets.Component.<clinit>(Component.java:108)
at com.gwtbook.client.ui.client.ExtExamming.<init>(ExtExamming.java:
18)
at com.gwtbook.client.Gadgets.allSetUp(Gadgets.java:55)
at com.gwtbook.client.Gadgets.onModuleLoad(Gadgets.java:38)
Any ideas about this error...

Adv Thanks.



Paul Grenyer

unread,
Apr 20, 2009, 3:40:11 PM4/20/09
to Google-We...@googlegroups.com
Assuming you're using gwt-ext, take a look at my blog: paulgrenyer.blogspot.com.

Sent from my BlackBerry® wireless device

-----Original Message-----
From: jeeva <jeev...@gmail.com>

Date: Mon, 20 Apr 2009 03:25:06
To: Google Web Toolkit<Google-We...@googlegroups.com>
Subject: Re: '$wnd.Ext.StatusBar' is null or not an object
Reply all
Reply to author
Forward
0 new messages