PDA

View Full Version : [CLOSED] Runtime error after upgrading to gxt beta4 and gwt 1.5 rc1



lkuchars
3 Jun 2008, 2:10 AM
Hello

Today we tried to upgrade our project to above configuration. New API in b4 required us to change few classes but eventually everything compiled successfully.
Unfortunately neither web nor hosted mode works right now as it throws exception every time we run our application:
Environment is Debian Linux, java 1.6, gxt b4, gwt 1.5 rc1
Here are some details:


[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd._el.fly(dom) has no properties
fileName: jar:file:/home/lukasz/.m2/repository/gxt/gxt/1.0-beta4/gxt-1.0-beta4.jar!/com/extjs/gxt/ui/client/core/Ext.java
lineNumber: 48
stack: (null,"getFrameWidth","r")@jar:file:/home/lukasz/.m2/repository/gxt/gxt/1.0-beta4/gxt-1.0-beta4.jar!/com/extjs/gxt/ui/client/core/Ext.java:48
final void com.google.gwt.user.client.Timer.fire()()@:0
(7)@jar:file:/home/lukasz/.m2/repository/com/google/gwt/gwt-user/1.5-rc1/gwt-user-1.5-rc1.jar!/com/google/gwt/user/client/Timer.java:60
@:0

at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:443)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt(ModuleSpace.java:191)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java:75)
at com.extjs.gxt.ui.client.core.El.getFrameWidth(El.java:726)
at com.extjs.gxt.ui.client.widget.ContentPanel.getFrameWidth(ContentPanel.java:331)
at com.extjs.gxt.ui.client.widget.ContentPanel.onResize(ContentPanel.java:876)
at com.extjs.gxt.ui.client.widget.BoxComponent.setSize(BoxComponent.java:393)
at com.extjs.gxt.ui.client.widget.layout.BorderLayout.applyLayout(BorderLayout.java:229)
at com.extjs.gxt.ui.client.widget.layout.BorderLayout.onLayout(BorderLayout.java:191)
at com.extjs.gxt.ui.client.widget.Layout.layout(Layout.java:66)Do you have any clue what might cause this exception to be thrown?
Cheers
lkc

darrellmeyer
3 Jun 2008, 4:28 AM
I believe you are getting errors because GXT is not initializing. This problem occurs when the static code in El is not executed. Try adding GXT.init() in your first line of code. Let me know if that works.

lkuchars
3 Jun 2008, 11:39 AM
I believe you are getting errors because GXT is not initializing. This problem occurs when the static code in El is not executed. Try adding GXT.init() in your first line of code. Let me know if that works.

Thanks for help Darrell, it seems one of our developers called
setFrame(true) on Container after it has been attached to DOM tree and rendered. This is our programming error and it's shown intself only in beta4.

Keep up good work.
lkc

darrellmeyer
3 Jun 2008, 11:49 AM
No problem. I updated ContentPanel to use the pre-render assertions on all pre-render setters including setFrame.