Error's , PLEASE HELP ME :)

49 views
Skip to first unread message

King

unread,
Dec 26, 2008, 7:50:19 PM12/26/08
to Google Web Toolkit
Hello Guys,

I get the following Error Message, if I try to run the chart example
from the page http://www.gwt-ext.com/demo-charts/#lineChart ... I
included the source code in my projekt , I only rename the
source to StringCounterClient, dont ask why :) !

The Error Message is:
[ERROR] Unable to load module entry point class
se1.gwt.client.StringCounterClient (see associated exception for
details)
com.google.gwt.core.client.JavaScriptException: (TypeError):
'$wnd.Ext.StatusBar' ist Null oder kein Objekt
number: -2146823281
description: '$wnd.Ext.StatusBar' ist Null oder kein Objekt
at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
at com.gwtext.client.widgets.Component.<clinit>(Component.java:108)

the secon error Message is:
[ERROR] Failure to load module 'se1.gwt.StringCounterClient'

I get this messages on the the shell (Web-Browser) if i want to run
the projekt as a gwt application
...

Technical details:
I use:
Eclipse 3.4.1
GWT: 1.5.3
GWT-EXT: 2.0.5.3

this is the source code of GWT-EXT Charts, with the changes from me on
line 18:

package se1.gwt.client;


import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.i18n.client.NumberFormat;
import com.gwtext.client.data.*;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.Viewport;
import com.gwtext.client.widgets.chart.yui.LineChart;
import com.gwtext.client.widgets.chart.yui.NumericAxis;
import com.gwtext.client.widgets.chart.yui.SeriesDefY;
import com.gwtext.client.widgets.form.NumberField;
import com.gwtext.client.widgets.form.TextField;
import com.gwtext.client.widgets.grid.*;
import
com.gwtext.client.widgets.grid.event.EditorGridListenerAdapter;
import com.gwtext.client.widgets.layout.VerticalLayout;

public class StringCounterClient implements EntryPoint {

public void onModuleLoad() {

Panel panel = new Panel();
panel.setPaddings(15);

panel.setLayout(new VerticalLayout(15));

MemoryProxy proxy = new MemoryProxy(getData());
RecordDef recordDef = new RecordDef(
new FieldDef[]{
new StringFieldDef("month"),
new FloatFieldDef("rent"),
new FloatFieldDef("utilities")
}
);

ArrayReader reader = new ArrayReader(recordDef);
final Store store = new Store(proxy, reader);
store.load();

SeriesDefY[] seriesDef = new SeriesDefY[]{

new SeriesDefY("Rent", "rent"),
new SeriesDefY("Utilities", "utilities")

};

NumericAxis currencyAxis = new NumericAxis();
currencyAxis.setMinimum(800);
currencyAxis.setLabelFunction("formatCurrencyAxisLabel");
final LineChart chart = new LineChart();
chart.setTitle("Monthly Expenses");
chart.setWMode("transparent");
chart.setStore(store);
chart.setSeries(seriesDef);
chart.setXField("month");
chart.setYAxis(currencyAxis);
chart.setDataTipFunction("getDataTipText");
chart.setExpressInstall("js/yui/assets/
expressinstall.swf");
chart.setWidth(500);
chart.setHeight(400);

panel.add(chart);


Renderer renderer = new Renderer() {
public String render(Object value, CellMetadata
cellMetadata, Record record, int rowIndex, int colNum, Store store)
{
NumberFormat nf = NumberFormat.getCurrencyFormat();
return nf.format(((Number) value).doubleValue());
}
};
ColumnConfig monthConfig = new ColumnConfig("Month", "month",
150, true);
TextField monthField = new TextField();
monthField.setSelectOnFocus(true);
monthConfig.setEditor(new GridEditor(monthField));

NumberField rentField = new NumberField();
rentField.setSelectOnFocus(true);

ColumnConfig rentConfig = new ColumnConfig("Rent", "rent",
100, true);
rentConfig.setEditor(new GridEditor(rentField));
rentConfig.setRenderer(renderer);

NumberField utilitiesField = new NumberField();
utilitiesField.setSelectOnFocus(true);

ColumnConfig utilitiesConfig = new ColumnConfig("Utilities",
"utilities", 100, true);
utilitiesConfig.setEditor(new GridEditor(utilitiesField));
utilitiesConfig.setRenderer(renderer);

ColumnModel columnModel = new ColumnModel(new ColumnConfig[]
{
monthConfig,
rentConfig,
utilitiesConfig
});

EditorGridPanel grid = new EditorGridPanel();
grid.setStore(store);
grid.setClicksToEdit(1);
grid.setColumnModel(columnModel);
grid.setWidth(360);

grid.addEditorGridListener(new EditorGridListenerAdapter()
{
public void onAfterEdit(GridPanel grid, Record record,
String field, Object newValue, Object oldValue, int rowIndex, int
colIndex) {
store.commitChanges();
chart.refresh();
}
});

panel.add(grid);

Viewport viewport = new Viewport(panel);
}

private static Object[][] getData() {
return new Object[][]{
new Object[]{"January", new Double(880.00), new Double
(894.68)},
new Object[]{"February", new Double(880.00), new
Double(901.35)},
new Object[]{"March", new Double(880.00), new Double
(889.32)},
new Object[]{"April", new Double(880.00), new Double
(884.71)},
new Object[]{"May", new Double(910.00), new Double
(879.811)},
new Object[]{"June", new Double(910.00), new Double
(897.95)}
};
}
}

Lothar Kimmeringer

unread,
Dec 27, 2008, 8:12:29 AM12/27/08
to Google-We...@googlegroups.com
King schrieb:

> com.google.gwt.core.client.JavaScriptException: (TypeError):
> '$wnd.Ext.StatusBar' ist Null oder kein Objekt

Have you searched for this error-message using your search-engine
of least mistrust? There should be a lot of threads about this.

> I use:
[...]
> GWT-EXT: 2.0.5.3

the wrapper-classes but not the Javscript-library of Ext...


Regards, Lothar

King

unread,
Dec 28, 2008, 10:22:07 AM12/28/08
to Google Web Toolkit
which search engine do you mean ? Do mean that I habe to search in the
Internet ?... Can you explain it to me clearlear ?

I included the gwt-ext.jar file in eclipse ?

King

unread,
Dec 28, 2008, 10:22:24 AM12/28/08
to Google Web Toolkit


On 27 Dez., 14:12, Lothar Kimmeringer <j...@kimmeringer.de> wrote:

Lothar Kimmeringer

unread,
Dec 28, 2008, 12:10:25 PM12/28/08
to Google-We...@googlegroups.com
King schrieb:

>
> On 27 Dez., 14:12, Lothar Kimmeringer <j...@kimmeringer.de> wrote:
>> King schrieb:
>>
>>> com.google.gwt.core.client.JavaScriptException: (TypeError):
>>> '$wnd.Ext.StatusBar' ist Null oder kein Objekt
>> Have you searched for this error-message using your search-engine
>> of least mistrust? There should be a lot of threads about this.
>>
>>> I use:
>> [...]
>>> GWT-EXT: 2.0.5.3
>> the wrapper-classes but not the Javscript-library of Ext...
>
> which search engine do you mean ?

The one you also use to find all the things you want to know
before you ask people actually to let them solve your problem.

> Do mean that I habe to search in the
> Internet ?...

Yes, trying to find the solution for yourself first is always
a good start. Especially this problem has been discussed also
on this list - where it's off topic because GWTExt != GWT -
where answers already have been given.

> Can you explain it to me clearlear ?

In your language: Such erst mal selbst nach einer Loesung,
bevor Du es anderen einfach so vor die Nase wirfst. Hier
sitzen die Leute nicht einfach nur herum und langweilen sich,
so dass diese "ich habe keine Lust, mich damit zu beschaeftigen"-
Fragen einfach eher unbeantwortet bleiben.

> I included the gwt-ext.jar file in eclipse ?

but not the Ext-project containing all the javascript-files
and other resources that are actually implementing all
the functionalies. The project-page gives you a link to the
page where you can download the library. As well there are
enough error-messages in the log-window in hosted mode showing
problems by providing resources like js- and other files.


Regards, Lothar

King

unread,
Dec 29, 2008, 2:56:47 PM12/29/08
to Google Web Toolkit
Hello Lothar :)

I will explain my problem in german... Maybe than we wont have this
communication problems :)

Also ich habe schon einiges versucht und gegoogelt habe ich auch
schon...

Meine Vermutung ist einfach, es stimmt was mit EntryPoint{ und
onModulLoad() .. was nicht! Die zweite Fehlermeldung kann man ja
ausser acht lassen, weil
es sich auf das erste Problem bezieht!

würde mich fruen wenn mir da jemand erklär was es so mit entrypoint
und so auf sich hat....

LG

Jason Essington

unread,
Dec 29, 2008, 3:01:42 PM12/29/08
to Google-We...@googlegroups.com
Judging from the error message something in GWT is attempting to
access an object from outside of GWT ... $wnd.Ext.StatuBar ... and
that object does not exist ...

This is likely to mean that you have either forgotten to add the
<script> tag for that external library, or the file is not where it
was expected to be.

-jason

Lothar Kimmeringer

unread,
Dec 29, 2008, 4:33:49 PM12/29/08
to Google-We...@googlegroups.com
King schrieb:

> Also ich habe schon einiges versucht und gegoogelt habe ich auch
> schon...
>
> Meine Vermutung ist einfach, es stimmt was mit EntryPoint{ und
> onModulLoad() .. was nicht! Die zweite Fehlermeldung kann man ja
> ausser acht lassen, weil
> es sich auf das erste Problem bezieht!

Das Problem ist, dass er die Statusbar von ext nicht findet. Wenn
Du Dir das Logfenster des Servers mal ansiehst. Dort werden einige
Resourcen als nicht gefunden gemeldet.

Auf http://code.google.com/p/gwt-ext/ findet sich der Text
"Ext 2.0.2 can be downloaded from http://yogurtearl.com/ext-2.0.2.zip."

Die JS-Dateien und anderen Resourcen befinden sich darin.


Gruesse, Lothar

King

unread,
Dec 29, 2008, 8:19:09 PM12/29/08
to Google Web Toolkit
Hello Guys,

@Jason Essingten: Yeah, I wrote the commando in the XML file before...
It also changed anything on the situation

@Lothar: Habe den ganzen file schon vorher runtergeladen gehabt...
Dann hatte ich die gwt-ext biblitothek bzw. den jar file mit
eingebunden gehabt in das projekt und die xml datei einträge
gemacht... Diese dinge hatte ich schon vorher gemacht gehabt leider
hatte das nix genutzt! Ich habe nach dieser Statusbar ext gesucht,
leider finde ich auch diese Datei nicht! Muss ich die extra
miteinbinden ? das verstand ich nicht so genau!

i tried also to do the step of the hello world video from the gwt ext
http://www.gwt-ext.com/screencasts/ .... I included all the gwt ext
files like the video, but i get there a new error that i can't
solve...the file system of the public folder (js) doesnt work... this
is the error message of the folder, i also looked at google and other
sites ;)

Description Resource Path Location Type
ArrayList is a raw type. References to generic type ArrayList<E>
should be parameterized ScreenManager.java StringCounterService/src/
se1/gwt/public/js/gwtext-2.0.5/samples/Maps/src/com/gwtext/sample/maps/
client line 259 Java Problem
Classpath entry E:/Uni/5.Semester/WS0809SE1/gwt-windows-1.5.3/
gwtext-2.0.5/gwtext.jar will not be exported or published. Runtime
ClassNotFoundExceptions may result. StringCounterService P/
StringCounterService Classpath Dependency Validator Message
Classpath entry GWT_HOME/gwt-user.jar will not be exported or
published. Runtime ClassNotFoundExceptions may result.
AuthServiceClient P/AuthServiceClient Classpath Dependency Validator
Message
Classpath entry GWT_HOME/gwt-user.jar will not be exported or
published. Runtime ClassNotFoundExceptions may result.
StringCounterService P/StringCounterService Classpath Dependency
Validator Message
Comparator is a raw type. References to generic type Comparator<T>
should be parameterized SortableMultiSelectTreeSample.java
StringCounterService/src/se1/gwt/public/js/gwtext-2.0.5/samples/
Showcase2/src/com/gwtext/sample/showcase2/client/tree line 133 Java
Problem

I would be very happy if i get the gwt ext library to work :(

Lothar Kimmeringer

unread,
Dec 30, 2008, 5:26:56 AM12/30/08
to Google-We...@googlegroups.com
King schrieb:

> i tried also to do the step of the hello world video from the gwt ext
> http://www.gwt-ext.com/screencasts/ .... I included all the gwt ext
> files like the video, but i get there a new error that i can't
> solve...the file system of the public folder (js) doesnt work... this
> is the error message of the folder, i also looked at google and other
> sites ;)
>
> Description Resource Path Location Type

This looks like the problem-tab in Eclipse. More interesting would
be the log-window of the server when you start your project in
hosted mode. There should be some resources the browser is requesting
and the server doesn't find in the public-folder.

The definition of the statusbar happens in one of the javascript-
files of gwt-ext.

> ArrayList is a raw type. References to generic type ArrayList<E>
> should be parameterized ScreenManager.java StringCounterService/src/
> se1/gwt/public/js/gwtext-2.0.5/samples/Maps/src/com/gwtext/sample/maps/

If you're not using GWT 1.5 you should change your JDK to 1.4 BTW.

If nothing works you might consider changing the list to the
mailing-list of GWT-Ext. They also reside at Google Groups but
the people should be different.


Regards, Lothar

King

unread,
Dec 30, 2008, 9:08:55 AM12/30/08
to Google Web Toolkit

> This looks like the problem-tab in Eclipse. More interesting would
> be the log-window of the server when you start your project in
> hosted mode.

I get the same error message like before in hosted mode:

[ERROR] Unable to load module entry point class
se1.gwt.client.StringCounterClient (see associated exception for
details)
com.google.gwt.core.client.JavaScriptException: (TypeError):
'$wnd.Ext.StatusBar' ist Null oder kein Objekt
number: -2146823281
description: '$wnd.Ext.StatusBar' ist Null oder kein Objekt
at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
at com.gwtext.client.widgets.Component.<clinit>(Component.java:108)
at se1.gwt.client.StringCounterClient.onModuleLoad
(StringCounterClient.java:22)

But i dont understand, why i get the error symbol on the public folder
in the gwt projekt... I included the file system of gwt-ext after that
i have a red, x on the icon of the public folder!


> If you're not using GWT 1.5 you should change your JDK to 1.4 BTW.

I use GWT 1.5.3 ...


> If nothing works you might consider changing the list to the
> mailing-list of GWT-Ext. They also reside at Google Groups but
> the people should be different.

how can i change it ?


thanks

King

unread,
Dec 30, 2008, 9:09:08 AM12/30/08
to Google Web Toolkit

> This looks like the problem-tab in Eclipse. More interesting would
> be the log-window of the server when you start your project in
> hosted mode.

I get the same error message like before in hosted mode:

[ERROR] Unable to load module entry point class
se1.gwt.client.StringCounterClient (see associated exception for
details)
com.google.gwt.core.client.JavaScriptException: (TypeError):
'$wnd.Ext.StatusBar' ist Null oder kein Objekt
number: -2146823281
description: '$wnd.Ext.StatusBar' ist Null oder kein Objekt
at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
at com.gwtext.client.widgets.Component.<clinit>(Component.java:108)
at se1.gwt.client.StringCounterClient.onModuleLoad
(StringCounterClient.java:22)

But i dont understand, why i get the error symbol on the public folder
in the gwt projekt... I included the file system of gwt-ext after that
i have a red, x on the icon of the public folder!


> If you're not using GWT 1.5 you should change your JDK to 1.4 BTW.

I use GWT 1.5.3 ...


> If nothing works you might consider changing the list to the
> mailing-list of GWT-Ext. They also reside at Google Groups but
> the people should be different.

lukehashj

unread,
Jan 5, 2009, 6:00:56 PM1/5/09
to Google Web Toolkit
Hallo King! Meine deutche ist nicht zehr gut...

Auf englisch:

It seems that you are using GWT-Ext but are missing the script that
should load when your page first loads.
Are you missing any required <script type="text/javascript"
src="source of your gwt-ext.js"> in your HTML file?
Another possibility is that the when the script loads it is performing
document.write() calls - does the script load in the <head> element?
Are you performing any document.write() calls after the page has
loaded?

(Das ist schade...)

Good luck!

King

unread,
Jan 9, 2009, 11:50:56 AM1/9/09
to Google Web Toolkit
hello guys,

at first i thank you all for the big feedback!

I solved the problem :) I have asked friend who helped me....

thank you all

taouri...@googlemail.com

unread,
Mar 2, 2009, 4:53:33 AM3/2/09
to Google Web Toolkit
kannst du bitte uns zeigen,
wie du das gemacht hast?
ich habe nämlich das gleiche
problme!!!

Gruß
taourirt1981
Reply all
Reply to author
Forward
0 new messages