Problem:
Errors are logged when clicking Open on an UploadItem file selection dialog.
Using:
SmartClient Version: SNAPSHOT_v8.3d_2012-09-19/LGPL Development Only (built 2012-09-19)
SmartGWT 3.1
GWT 2.3.0
FireFox 6.0.2
Windows 7
How to reproduce
1. Create a DynamicForm with an UploadItem
2. Click Browse
3. Select a file and click Open
Sample Code:
The following appear in the console:
The following appears on the dev console:
Errors are logged when clicking Open on an UploadItem file selection dialog.
Using:
SmartClient Version: SNAPSHOT_v8.3d_2012-09-19/LGPL Development Only (built 2012-09-19)
SmartGWT 3.1
GWT 2.3.0
FireFox 6.0.2
Windows 7
How to reproduce
1. Create a DynamicForm with an UploadItem
2. Click Browse
3. Select a file and click Open
Sample Code:
Code:
import com.smartgwt.client.widgets.form.fields.UploadItem; import com.smartgwt.client.widgets.form.fields.SubmitItem; import com.smartgwt.client.widgets.form.DynamicForm; import com.smartgwt.client.types.Encoding; import com.smartgwt.client.util.SC; import com.google.gwt.core.client.EntryPoint; public class UploadItemTest implements EntryPoint { /** * The EntryPoint interface */ public void onModuleLoad () { // test SC.showConsole (); // files final UploadItem uploadItem = new UploadItem (); uploadItem.setTitle ("Files"); uploadItem.setRequired (true); uploadItem.setWidth (300); uploadItem.setMultiple (true); // submit final SubmitItem submitItem = new SubmitItem (); // form final DynamicForm uploadForm = new DynamicForm (); uploadForm.setEncoding (Encoding.MULTIPART); uploadForm.setItems ( uploadItem, submitItem); // layout uploadForm.draw (); } }
Code:
00:01:20.607 [ERROR] 10:07:31.483:ICHG8:WARN:UploadItem:isc_UploadItem_1[isc_UploadItem_0]:compareValues - this is a multiple FormItem but compareValues was called with a non-null first argument `value1` th at is not an array.com.smartgwt.client.core.JsObject$SGWT_WARN: 10:07:31.483:ICHG8:WARN:UploadItem:isc_UploadItem_1[isc_UploadItem_0]:compareValues - this is a multiple FormItem but compareValues was called with a non-null first argument `value1` th at is not an array. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Thread.java:662) 00:01:20.608 [ERROR] 10:07:31.487:ICHG8:WARN:UploadItem:isc_UploadItem_1[isc_UploadItem_0]:compareValues - this is a multiple FormItem but compareValues was called with a non-null second argument `value2` th at is not an array.com.smartgwt.client.core.JsObject$SGWT_WARN: 10:07:31.487:ICHG8:WARN:UploadItem:isc_UploadItem_1[isc_UploadItem_0]:compareValues - this is a multiple FormItem but compareValues was called with a non-null second argument `value2` th at is not an array. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Thread.java:662) 00:01:29.559 [ERROR] 10:07:40.439:TMR6:WARN:Log:Error: Permission denied to access property 'getAttribute' Stack from error.stack: [c]DynamicForm._getItemInfoFromElement(_1=>[object Proxy]) @ portal/sc/modules/ISC_Forms.js:848 FormItem.checkForEditorExit(true) @ portal/sc/modules/ISC_Forms.js:1734 [c]Class.fireCallback(_1=>{Obj}, _2=>undef, _3=>[object Array], _4=>{Obj}, _5=>true) @ portal/sc/modules/ISC_Core.js:316 Timer._fireTimeout("$ir377") @ portal/sc/modules/ISC_Core.js:1511 unnamed() @ portal/sc/modules/ISC_Core.js:1506 unnamed() @com.smartgwt.client.core.JsObject$SGWT_WARN: 10:07:40.439:TMR6:WARN:Log:Error: Permission denied to access property 'getAttribute' Stack from error.stack: [c]DynamicForm._getItemInfoFromElement(_1=>[object Proxy]) @ portal/sc/modules/ISC_Forms.js:848 FormItem.checkForEditorExit(true) @ portal/sc/modules/ISC_Forms.js:1734 [c]Class.fireCallback(_1=>{Obj}, _2=>undef, _3=>[object Array], _4=>{Obj}, _5=>true) @ portal/sc/modules/ISC_Core.js:316 Timer._fireTimeout("$ir377") @ portal/sc/modules/ISC_Core.js:1511 unnamed() @ portal/sc/modules/ISC_Core.js:1506 unnamed() @ at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Thread.java:662)
Code:
10:06:26.529:INFO:Log:initialized 10:06:26.557:WARN:Log:NOTE: Firebug is enabled. Firebug greatly slows the performance of applications that make heavy use of JavaScript. Isomorphic highly recommends Firebug for troubleshooting, but Firebug and other development tools should be disabled when assessing the real-world performance of SmartClient applications. 10:06:57.532:DEBUG:DynamicForm:isc_DynamicForm_0:Drawing FormItem: [UploadItem ID:isc_UploadItem_1 name:isc_UploadItem_0] 10:06:57.535:DEBUG:DynamicForm:isc_DynamicForm_0:Drawing FormItem: [SubmitItem ID:isc_SubmitItem_1 name:isc_SubmitItem_0] 10:06:58.290:INFO:Log:isc.Page is loaded 10:07:31.483:ICHG8:INFO:RPCManager:sendQueue called with no current queue, ignoring 10:07:31.483:ICHG8:WARN:UploadItem:isc_UploadItem_1[isc_UploadItem_0]:compareValues - this is a multiple FormItem but compareValues was called with a non-null first argument `value1` that is not an array. 10:07:31.487:ICHG8:WARN:UploadItem:isc_UploadItem_1[isc_UploadItem_0]:compareValues - this is a multiple FormItem but compareValues was called with a non-null second argument `value2` that is not an array. 10:07:40.439:TMR6:WARN:Log:Error: Permission denied to access property 'getAttribute' Stack from error.stack: [c]DynamicForm._getItemInfoFromElement(_1=>[object Proxy]) @ portal/sc/modules/ISC_Forms.js:848 FormItem.checkForEditorExit(true) @ portal/sc/modules/ISC_Forms.js:1734 [c]Class.fireCallback(_1=>{Obj}, _2=>undef, _3=>[object Array], _4=>{Obj}, _5=>true) @ portal/sc/modules/ISC_Core.js:316 Timer._fireTimeout("$ir377") @ portal/sc/modules/ISC_Core.js:1511 unnamed() @ portal/sc/modules/ISC_Core.js:1506 unnamed() @ 10:23:27.526:TMR0:WARN:Log:Error: Permission denied to access property 'getAttribute' Stack from error.stack: [c]DynamicForm._getItemInfoFromElement(_1=>[object Proxy]) @ portal/sc/modules/ISC_Forms.js:848 FormItem.checkForEditorExit(true) @ portal/sc/modules/ISC_Forms.js:1734 [c]Class.fireCallback(_1=>{Obj}, _2=>undef, _3=>[object Array], _4=>{Obj}, _5=>true) @ portal/sc/modules/ISC_Core.js:316 Timer._fireTimeout("$ir590") @ portal/sc/modules/ISC_Core.js:1511 unnamed() @ portal/sc/modules/ISC_Core.js:1506 unnamed() @
Comment