I have run into a crash when I try and run in GWT Development Mode. This crash does not occur if I run the identical code in production mode. I have narrowed the crash down to a single method invocation on the following line:
The invocation of getLength() causes a crash in dev mode as follows:
If I simply remove the getLength call and have the following:
all is well.
The code that works with no problem in production is:
This code works in dev mode if I use:
This seems like a bug to me. Can anyone confirm this?
I'm running 06Dec2010 ee nightly on FireFox 3.6.13.
From the jobControl.ds.xml datasource descriptor:
-=> Gregg <=-
Code:
DataSource.get("jobControl").getField("COMMENTS").getLength();
Code:
onModuleLoad() threw an exception Exception while loading module com.clp.dear.client.Dear. See Development Mode for details. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Thread.java:619) Caused by: com.google.gwt.dev.shell.HostedModeException: invoke arguments: JS value of type string, expected int at com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:266) at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:65) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.smartgwt.client.util.JSOHelper.getAttributeAsInt(JSOHelper.java) at com.smartgwt.client.core.DataClass.getAttributeAsInt(DataClass.java:67) at com.smartgwt.client.data.DataSourceField.getLength(DataSourceField.java:715) at com.clp.dear.client.SectionReportSelection.(SectionReportSelection.java:288) at com.clp.dear.client.Dear.onModuleLoad(Dear.java:165) ... 9 more
Code:
DataSource.get("jobControl").getField("COMMENTS");
The code that works with no problem in production is:
Code:
textItemComment.setLength(DataSource.get("jobControl").getField("COMMENTS").getLength());
Code:
textItemComment.setLength(4000);
I'm running 06Dec2010 ee nightly on FireFox 3.6.13.
From the jobControl.ds.xml datasource descriptor:
Code:
<DataSource ID="jobControl" serverType="sql" tableName="DEAR.AUDIT_JOB_QUEUE"> <fields> <field name="JOB_ROW_ID" type="sequence" sequenceName="SEQ_AUDIT_JOB_QUEUE" /> <field name="JOB_ID" type="text" length="50" primaryKey="true"/> ... <field name="COMMENTS" type="text" length="4000"/> ... </fields> <title>Job Control</title> <titleField>JOB_ID</titleField> </DataSource>
Comment