I'm using the field type "modifierTimestamp" for the first time and I've run into a problem when checking to see if the field is marked as hidden.
This is the data source definition.
I am iterating over the fields in the ds and calling getHidden() on each. When I get to the field with type="modifierTimestamp" this exception is thrown.
This is the data source definition.
Code:
<DataSource ID="BuyingAgent" dataFormat="iscServer" serverType="sql" dbName="as400" sparseUpdates="true" serverConstructor="com.islandpacific.gui.server.customDataSource.IpDataSource" title="Buying Agent" pluralTitle="Buying Agents"> <!-- Buying agents locate, qualify and inspect foreign suppliers, negotiate with suppliers, and often monitor production for quality control and compliance with other standards. --> <fields> <field name="id" title="id" type="sequence" primaryKey="true" hidden="true"/> <field name="externalId" title="External ID" type="text" length="15" required="true"> <validator type="isUnique" errorMessage="External ID must be unique."/> </field> <field name="name" title="Name" type="text" length="40" required="true"/> <field name="address1" title="Address 1" type="text" length="40" required="true"/> <field name="address2" title="Address 2" type="text" length="40" /> <field name="city" title="City" type="text" length="40" required="true"/> <field name="state" title="State" type="text" length="3" /> <field name="postCode" title="Postal Code" type="text" length="10" required="true"/> <field name="country" title="Country" type="text" length="3" foreignKey="IPCNTRY.CCID" optionDataSource="IPCNTRY" valueField="CCID" displayField="CCNT"/> <field name="agentFee" title="Agent Fee" type="float" length="7" /> <field name="modifiedOn" title="Modified On" type="modifierTimestamp" /> <field name="modifiedBy" title="Modified By" type="modifier" length="10" /> </fields> </DataSource>
Code:
18:53:05.483 [ERROR] [ipgui] Uncaught exception escaped com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129) at com.smartgwt.client.core.DataClass.fireEvent(DataClass.java:248) 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.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) 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.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213) at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) at java.lang.Thread.run(Thread.java:680) Caused by: com.google.gwt.dev.shell.HostedModeException: Something other than a boolean was returned from JSNI method '@com.smartgwt.client.util.JSOHelper::getAttributeAsBoolean(Lcom/google/gwt/core/client/JavaScriptObject;Ljava/lang/String;)': JS value of type string, expected boolean at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:100) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java:186) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost.java:35) at com.smartgwt.client.util.JSOHelper.getAttributeAsBoolean(JSOHelper.java) at com.smartgwt.client.core.DataClass.getAttributeAsBoolean(DataClass.java:79) at com.smartgwt.client.data.DataSourceField.getHidden(DataSourceField.java:598) at com.islandpacific.gui.client.IpTabbedForm.createFieldGroups(IpTabbedForm.java:239) at com.islandpacific.gui.client.IpTabbedForm.<init>(IpTabbedForm.java:159) at com.islandpacific.gui.client.IpTabbedForm.<init>(IpTabbedForm.java:128) at com.islandpacific.gui.client.IpGenericEditor.<init>(IpGenericEditor.java:85) at com.islandpacific.gui.client.ConstantsDefinition.getEditTab(ConstantsDefinition.java:181) at com.islandpacific.gui.client.ConstantsDefinition.handleMenuSelection(ConstantsDefinition.java:127) at com.islandpacific.gui.client.ConstantsDefinition$2.onClick(ConstantsDefinition.java:119) at com.smartgwt.client.widgets.menu.events.MenuItemClickEvent.dispatch(MenuItemClickEvent.java:95) at com.smartgwt.client.widgets.menu.events.MenuItemClickEvent.dispatch(MenuItemClickEvent.java:1) at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1) at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40) at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193) at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127) at com.smartgwt.client.core.DataClass.fireEvent(DataClass.java:248) 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.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) 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.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213) at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) at java.lang.Thread.run(Thread.java:680)
Comment