problems needs help!!!

3 views
Skip to first unread message

simon

unread,
Mar 29, 2008, 1:55:42โ€ฏPM3/29/08
to gwt...@googlegroups.com
i wrote a program to read data from json file to a tree, then manupulate
the data in the tree, currently i am working on displaying the data in a
grid panel(there will be further manipulation).

now the data can be correctly displayed on the gridpanel in the hosting
mode. but the build cann't went through to make it on the web mode.

the error is as follows:


Output will be written into
E:\eclipse-jee\workspace\com.jsk.ContextNote\build\gwtOutput\com.jsk.ContextNote.Note
Analyzing permutation #1
[ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error
during visit.
at
com.google.gwt.dev.js.ast.JsVisitor.translateException(JsVisitor.java:408)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:399)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:61)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:164)
at
com.google.gwt.dev.js.ast.JsBinaryOperation.traverse(JsBinaryOperation.java:61)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:61)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:338)
at com.google.gwt.dev.js.ast.JsExprStmt.traverse(JsExprStmt.java:34)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:69)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlockOptionalTruncate(JsToStringGenerationVisitor.java:749)
at
com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:38)
at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:37)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:69)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:437)
at com.google.gwt.dev.js.ast.JsFunction.traverse(JsFunction.java:71)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:61)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:338)
at com.google.gwt.dev.js.ast.JsExprStmt.traverse(JsExprStmt.java:34)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:69)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlockOptionalTruncate(JsToStringGenerationVisitor.java:749)
at
com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:38)
at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:37)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:69)
at com.google.gwt.dev.js.ast.JsProgram.traverse(JsProgram.java:144)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:65)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compile(JavaToJavaScriptCompiler.java:404)
at com.google.gwt.dev.GWTCompiler.realizePermutation(GWTCompiler.java:688)
at com.google.gwt.dev.GWTCompiler.compilePermutations(GWTCompiler.java:411)
at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:335)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:755)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:745)
at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:213)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
at java.lang.AbstractStringBuilder.append(Unknown Source)
at java.lang.StringBuffer.append(Unknown Source)
at java.io.StringWriter.write(Unknown Source)
at java.io.PrintWriter.write(Unknown Source)
at java.io.PrintWriter.write(Unknown Source)
at java.io.PrintWriter.print(Unknown Source)
at
com.google.gwt.dev.util.DefaultTextOutput.print(DefaultTextOutput.java:89)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor._nameRef(JsToStringGenerationVisitor.java:881)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:521)
at com.google.gwt.dev.js.ast.JsNameRef.traverse(JsNameRef.java:69)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:61)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:164)
at
com.google.gwt.dev.js.ast.JsBinaryOperation.traverse(JsBinaryOperation.java:61)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:61)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:338)
at com.google.gwt.dev.js.ast.JsExprStmt.traverse(JsExprStmt.java:34)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:69)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlockOptionalTruncate(JsToStringGenerationVisitor.java:749)
at
com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:38)
at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:37)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:69)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:437)
[ERROR] Out of memory; to increase the amount of memory, use the -Xmx
flag at startup (java -Xmx128M ...)
[ERROR] <no source info>: c.initialConfig
com.google.gwt.dev.js.ast.JsNameRef
[ERROR] <no source info>:
com_gwtext_client_widgets_ProgressBar_configPrototype = c.initialConfig
com.google.gwt.dev.js.ast.JsBinaryOperation
[ERROR] <no source info>:
com_gwtext_client_widgets_ProgressBar_configPrototype = c.initialConfig
com.google.gwt.dev.js.ast.JsExprStmt
[ERROR] <no source info>: {
com_gwtext_client_widgets_ProgressBar_$clinit__();
var c = new ($wnd.Ext.Toolbar)();
com_gwtext_client_widgets_ProgressBar_configPrototype = c.initialConfig;
}

com.google.gwt.dev.js.ast.JsBlock
[ERROR] <no source info>: function
com_gwtext_client_widgets_ProgressBar_init__(){
com_gwtext_client_widgets_ProgressBar_$clinit__();
var c = new ($wnd.Ext.Toolbar)();
com_gwtext_client_widgets_ProgressBar_configPrototype = c.initialConfig;
}

com.google.gwt.dev.js.ast.JsFunction
[ERROR] <no source info>: function
com_gwtext_client_widgets_ProgressBar_init__(){
com_gwtext_client_widgets_ProgressBar_$clinit__();
var c = new ($wnd.Ext.Toolbar)();
com_gwtext_client_widgets_ProgressBar_configPrototype = c.initialConfig;
}

com.google.gwt.dev.js.ast.JsExprStmt
[ERROR] <no source info>: var _, package_com_google_gwt_core_client_ =
'com.google.gwt.core.client.', package_com_google_gwt_json_client_ =
'com.google.gwt.json.client.', package_com_google_gwt_lang_ =
'com.google.gwt.lang.', package_com_google_gwt_user_client_ =
'com.google.gwt.user.client.', package_com_google_gwt_user_client_impl_
= 'com.google.gwt.user.client.impl.',
package_com_google_gwt_user_client_ui_ =
'com.google.gwt.user.client.ui.',
package_com_google_gwt_user_client_ui_impl_ =
'com.google.gwt.user.client.ui.impl.', package_com_gwtext_client_core_ =
'com.gwtext.client.core.', package_com_gwtext_client_data_ =
'com.gwtext.client.data.', package_com_gwtext_client_util_ =
'com.gwtext.client.util.', package_com_gwtext_client_widgets_ =
'com.gwtext.client.widgets.', package_com_gwtext_client_widgets_form_ =
'com.gwtext.client.widgets.form.',
package_com_gwtext_client_widgets_grid_ =
'com.gwtext.client.widgets.grid.',
package_com_gwtext_client_widgets_menu_ =
'com.gwtext.client.widgets.menu.', package_com_jsk_ContextNote_client_ =
'com.jsk.ContextNote.client.', package_java_lang_ = 'java.lang.',
package_java_util_ = 'java.util.';
function nullMethod(){
}

function java_lang_Object_equals__Ljava_lang_Object_2(other){
return this === other;
}

function java_lang_Object_hashCode__(){
return java_lang_System_identityHashCode__Ljava_lang_Object_2(this);
}

[...]

com.google.gwt.dev.js.ast.JsGlobalBlock
[ERROR] <no source info>: <JsProgram>
com.google.gwt.dev.js.ast.JsProgram
[ERROR] Build failed


can anyone give me suggestion on this problem?
i tried to expand the heap memory using this command line: eclipsee
-Xmx512m.
but it doesn't work.

alberto33

unread,
Mar 31, 2008, 8:25:34โ€ฏPM3/31/08
to GWT-Ext Developer Forum
There are a few posts on this topic. You should increase the gwt heap
size not the IDE heap size.

alberto33

unread,
Mar 31, 2008, 8:30:47โ€ฏPM3/31/08
to GWT-Ext Developer Forum

anh.h

unread,
Apr 7, 2008, 8:17:46โ€ฏAM4/7/08
to GWT-Ext Developer Forum
Hi simon

did you manage to resolve the problem? I kinda have the same one.
But I don't think this has anything to do with the heap space.
I believe there's a construct that is not understood by gwt compiler,
but I can't find out what.


Here is the error that I get :

[gwtcompile] Output will be written into .\build\www
\ruleFinder.RuleFinder
[gwtcompile] Analyzing permutation #1
[gwtcompile] [ERROR] An internal compiler exception occurred
[gwtcompile] com.google.gwt.dev.jjs.InternalCompilerException:
Unexpected error during visit.
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.translateException(JsVisitor.java:
408)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:399)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:61)
[gwtcompile] at com.google.gwt.dev.js.ast.JsVars
$JsVar.traverse(JsVars.java:53)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doAcceptWithInsertRemove(JsVisitor.java:
391)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.acceptWithInsertRemove(JsVisitor.java:
73)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVars.traverse(JsVars.java:99)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doAcceptWithInsertRemove(JsVisitor.java:
391)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.acceptWithInsertRemove(JsVisitor.java:
73)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:38)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:69)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsFunction.traverse(JsFunction.java:73)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:61)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsExprStmt.traverse(JsExprStmt.java:35)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doAcceptWithInsertRemove(JsVisitor.java:
391)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.acceptWithInsertRemove(JsVisitor.java:
73)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:38)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:69)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsProgram.traverse(JsProgram.java:144)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:385)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:65)
[gwtcompile] at
com.google.gwt.dev.js.JsSymbolResolver.execImpl(JsSymbolResolver.java:
118)
[gwtcompile] at
com.google.gwt.dev.js.JsSymbolResolver.exec(JsSymbolResolver.java:107)
[gwtcompile] at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compile(JavaToJavaScriptCompiler.
java:391)
[gwtcompile] at
com.google.gwt.dev.GWTCompiler.realizePermutation(GWTCompiler.java:
688)
[gwtcompile] at
com.google.gwt.dev.GWTCompiler.compilePermutations(GWTCompiler.java:
411)
[gwtcompile] at
com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:335)
[gwtcompile] at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:
755)
[gwtcompile] at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:
745)
[gwtcompile] at
com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:213)
[gwtcompile] Caused by: java.lang.NullPointerException
[gwtcompile] at java.util.TreeMap.compare(TreeMap.java:1093)
[gwtcompile] at java.util.TreeMap.getEntry(TreeMap.java:347)
[gwtcompile] at java.util.TreeMap.get(TreeMap.java:265)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsScope.findExistingNameNoRecurse(JsScope.java:
212)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsScope.findExistingName(JsScope.java:133)
[gwtcompile] at com.google.gwt.dev.js.JsSymbolResolver
$JsResolveSymbolsVisitor.endVisit(JsSymbolR
esolver.java:64)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsNameRef.traverse(JsNameRef.java:74)
[gwtcompile] at
com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:397)
[gwtcompile] ... 39 more
[gwtcompile] [ERROR] <no source info>: this$static.null
[gwtcompile] com.google.gwt.dev.js.ast.JsNameRef
[gwtcompile] [ERROR] <no source info>: cb = this$static.null
[gwtcompile] com.google.gwt.dev.js.ast.JsVars$JsVar
[gwtcompile] [ERROR] <no source info>: var cb = this
$static.null
[gwtcompile] com.google.gwt.dev.js.ast.JsVars
[gwtcompile] [ERROR] <no source info>: {
[gwtcompile] var cb = this$static.null;
[gwtcompile] var val = cb.getValue();
[gwtcompile] return val === ''?null:val.toString();
[gwtcompile] }
[gwtcompile]
[gwtcompile] com.google.gwt.dev.js.ast.JsBlock
[gwtcompile] [ERROR] <no source info>: function $getValue(this
$static){
[gwtcompile] var cb = this$static.null;
[gwtcompile] var val = cb.getValue();
[gwtcompile] return val === ''?null:val.toString();
[gwtcompile] }
[gwtcompile]
[gwtcompile] com.google.gwt.dev.js.ast.JsFunction
[gwtcompile] [ERROR] <no source info>: function $getValue(this
$static){
[gwtcompile] var cb = this$static.null;
[gwtcompile] var val = cb.getValue();
[gwtcompile] return val === ''?null:val.toString();
[gwtcompile] }
[gwtcompile]
[gwtcompile] com.google.gwt.dev.js.ast.JsExprStmt
[gwtcompile] [ERROR] <no source info>: var _,
package_com_google_gwt_core_client_ = 'com.go
ogle.gwt.core.client.', package_com_google_gwt_http_client_ =
'com.google.gwt.http.client.', package
_com_google_gwt_i18n_client_ = 'com.google.gwt.i18n.client.',
package_com_google_gwt_i18n_client_con
stants_ = 'com.google.gwt.i18n.client.constants.',
package_com_google_gwt_lang_ = 'com.google.gwt.la
ng.', package_com_google_gwt_user_client_ =
'com.google.gwt.user.client.', package_com_google_gwt_us
er_client_impl_ = 'com.google.gwt.user.client.impl.',
package_com_google_gwt_user_client_rpc_ = 'com
.google.gwt.user.client.rpc.',
package_com_google_gwt_user_client_rpc_core_java_lang_ = 'com.google.
gwt.user.client.rpc.core.java.lang.',
package_com_google_gwt_user_client_rpc_core_java_util_ = 'com.
google.gwt.user.client.rpc.core.java.util.',
package_com_google_gwt_user_client_rpc_impl_ = 'com.goo
gle.gwt.user.client.rpc.impl.', package_com_google_gwt_user_client_ui_
= 'com.google.gwt.user.client
.ui.', package_com_google_gwt_user_client_ui_impl_ =
'com.google.gwt.user.client.ui.impl.', package_
com_google_gwt_xml_client_ = 'com.google.gwt.xml.client.',
package_com_google_gwt_xml_client_impl_ =
'com.google.gwt.xml.client.impl.', package_com_gwtext_client_core_ =
'com.gwtext.client.core.', pac
kage_com_gwtext_client_data_ = 'com.gwtext.client.data.',
package_com_gwtext_client_util_ = 'com.gwt
ext.client.util.', package_com_gwtext_client_widgets_ =
'com.gwtext.client.widgets.', package_com_gw
text_client_widgets_event_ = 'com.gwtext.client.widgets.event.',
package_com_gwtext_client_widgets_f
orm_ = 'com.gwtext.client.widgets.form.',
package_com_gwtext_client_widgets_form_event_ = 'com.gwtex
t.client.widgets.form.event.', package_com_gwtext_client_widgets_grid_
= 'com.gwtext.client.widgets.
grid.', package_com_gwtext_client_widgets_layout_ =
'com.gwtext.client.widgets.layout.', package_com
_gwtext_client_widgets_menu_ = 'com.gwtext.client.widgets.menu.',
package_com_gwtext_client_widgets_
tree_ = 'com.gwtext.client.widgets.tree.',
package_com_mondeca_ajax_client_widgets_DatePicker_ = 'co
m.mondeca.ajax.client.widgets.DatePicker.',
package_com_mondeca_ajax_itm_client_service_ = 'com.mond
eca.ajax.itm.client.service.',
package_com_mondeca_ajax_itm_client_service_kernel_ = 'com.mondeca.aj
ax.itm.client.service.kernel.',
package_com_mondeca_ajax_itm_client_service_kernel_DataItem_ = 'com.
mondeca.ajax.itm.client.service.kernel.DataItem.',
package_com_mondeca_ajax_itm_client_widgets_tree_
= 'com.mondeca.ajax.itm.client.widgets.tree.', package_java_io_ =
'java.io.', package_java_lang_ =
'java.lang.', package_java_util_ = 'java.util.',
package_ruleFinder_client_ = 'ruleFinder.client.',
package_ruleFinder_client_edition_ = 'ruleFinder.client.edition.',
package_ruleFinder_client_model_
= 'ruleFinder.client.model.',
package_ruleFinder_client_regulationBrowser_ = 'ruleFinder.client.regu
lationBrowser.', package_ruleFinder_client_screen_ =
'ruleFinder.client.screen.', package_ruleFinder
_client_service_ = 'ruleFinder.client.service.',
package_ruleFinder_client_virtualShip_ = 'ruleFinde
r.client.virtualShip.', package_ruleFinder_client_widget_form_ =
'ruleFinder.client.widget.form.';
[gwtcompile] function nullMethod(){
[gwtcompile] }
[gwtcompile]
[gwtcompile] function equals(other){
[gwtcompile] return this === other;
[gwtcompile] }
[gwtcompile]
[gwtcompile] function hashCode(){
[gwtcompile] return identityHashCode(this);
[gwtcompile] }
[gwtcompile]
[gwtcompile] [...]
[gwtcompile]
[gwtcompile] com.google.gwt.dev.js.ast.JsGlobalBlock
[gwtcompile] [ERROR] <no source info>: <JsProgram>
[gwtcompile] com.google.gwt.dev.js.ast.JsProgram
[gwtcompile] [ERROR] Build failed

leo_BsAs

unread,
Apr 7, 2008, 1:58:09โ€ฏPM4/7/08
to GWT-Ext Developer Forum
Hi... perhaps your problem is that you're using java.util.TreeMap
somewhere, that implements Serializable. I think that Serializable is
not implemented by gwt 1.4.x....

Try to use another class...

Leo
> ...
>
> read more ยป

hhcofcmds

unread,
Apr 25, 2008, 5:40:23โ€ฏPM4/25/08
to GWT-Ext Developer Forum
I had this problem right now, fortunately I just made a few changes
before recompiling the stuff, so I could figure it out.

I have a frame Widget structure and a SimplePanel in it, which is
meant to contain the current working view of the application. A view
manager handles navigation and view presenting, by invoking setWidget
on the SimplePanel. First my Application module load code called
explicitly setWidget to present a Welcome page, to have something
there by default. I changed this, I wanted to present the Welcome page
by asking the view manager to present the view by the name
"Welcome" (they are stored in a HashMap). However, I forgot to
register the Welcome page by its name in the view manager, so the
execution would have resulted in something like nullpoinerexception.
At this point I got the compile time error quoted above. Then I
realized that I have this missing, and inserted the registering of the
Welcome view (they are registered in a static class initializer).
After that, it compiles and works fine.

So, somehow the GWT compiler detected that my SimplePanel would remain
without a Widget set.

I hope this helps.
Reply all
Reply to author
Forward
0 new messages