Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problem uploading file

    I'm currently using smartgwt power 3.0 with gwt 2.3 on redhat linux. I will be deploying to weblogic 12c. I have a form that allows the user to upload a file into the database. When I am running in dev mode, the upload works fine. When I deploy to weblogic, I get an error message that says "Problem communicating with the server". Here are the logs from Eclipse when running in dev mode.
    Code:
    === 2012-04-03 13:54:43,430 [l0-4] INFO  RequestContext - URL: '/myapplication/sc/IDACall', User-Agent: 'Mozilla/5.0 (X11; Linux i686 on x86_64; rv:8.0.1) Gecko/20100101 Firefox/8.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-04-03 13:54:43,431 [l0-4] WARN  RPCManager - client/server version mismatch.  Client is version: SC_SNAPSHOT-2012-01-16_v8.1p, server is version: SC_SNAPSHOT-2012-01-11_v8.2p - mixing different client/server versions is generally not supported.  If you've installed a more recent client version, try clearing the browser cache and reloading the page.
    === 2012-04-03 13:54:43,484 [l0-4] DEBUG XML - Parsed XML from (in memory stream): 14ms
    === 2012-04-03 13:54:43,488 [l0-4] DEBUG RPCManager - Processing 1 requests.
    === 2012-04-03 13:54:43,489 [l0-4] INFO  DSRequest - We parsed 1 uploaded file(s): "myfile.pdf" (85123 bytes)
    === 2012-04-03 13:54:43,490 [l0-4] DEBUG RPCManager - Request #1 (DSRequest) payload: {
        values:{
            attachment_contents:"myfile.pdf",
            file_ID:9653,
            attachment_name:"testing",
            attachment_contents_date_created:new Date(1333461283489),
            attachment_contents_filename:"myfile.pdf",
            attachment_contents_filesize:85123
        },
        operationConfig:{
            dataSource:"fileattachmentDataSource",
            operationType:"add"
        },
        componentId:"isc_DynamicForm_6",
        appID:"builtinApplication",
        operation:"fileattachmentDataSource_add",
        oldValues:{
        },
        criteria:{
        }
    }
    === 2012-04-03 13:54:43,490 [l0-4] INFO  IDACall - Performing 1 operation(s)
    === 2012-04-03 13:54:43,490 [l0-4] DEBUG AppBase - [builtinApplication.fileattachmentDataSource_add] No userTypes defined, allowing anyone access to all operations for this application
    === 2012-04-03 13:54:43,491 [l0-4] DEBUG AppBase - [builtinApplication.fileattachmentDataSource_add] No public zero-argument method named '_fileattachmentDataSource_add' found, performing generic datasource operation
    === 2012-04-03 13:54:43,491 [l0-4] WARN  Validation - [builtinApplication.fileattachmentDataSource_add] No such type 'binary', not processing field value at /fileattachmentDataSource/attachment_contents
    === 2012-04-03 13:54:43,492 [l0-4] INFO  SQLDataSource - [builtinApplication.fileattachmentDataSource_add] Performing add operation with
    	criteria: {file_ID:9653,attachment_name:"testing",attachment_contents_date_created:new Date(1333461283489),attachment_contents_filename:"myfile.pdf",attachment_contents_filesize:85123}	values: {file_ID:9653,attachment_name:"testing",attachment_contents_date_created:new Date(1333461283489),attachment_contents_filename:"myfile.pdf",attachment_contents_filesize:85123}
    === 2012-04-03 13:54:43,493 [l0-4] DEBUG SQLValuesClause - [builtinApplication.fileattachmentDataSource_add] Sequences: {}
    === 2012-04-03 13:54:43,522 [l0-4] DEBUG PoolableSQLConnectionFactory - [builtinApplication.fileattachmentDataSource_add] Returning pooled Connection
    === 2012-04-03 13:54:43,523 [l0-4] DEBUG SQLTransaction - [builtinApplication.fileattachmentDataSource_add] Started new Oracle transaction "15266629"
    === 2012-04-03 13:54:43,523 [l0-4] INFO  SQLDriver - [builtinApplication.fileattachmentDataSource_add] Executing SQL update on 'Oracle': INSERT INTO file_attachment (file_ID, attachment_contents, attachment_contents_date_created, attachment_contents_filename, attachment_contents_filesize, attachment_name) VALUES (9653, ?, TO_DATE('2012-04-03 13:54:43','YYYY-MM-DD HH24:MI:SS'), 'myfile.pdf', 85123, 'testing')
    === 2012-04-03 13:54:43,624 [l0-4] DEBUG SQLDataSource - [builtinApplication.fileattachmentDataSource_add] add operation affected 1 rows
    === 2012-04-03 13:54:43,625 [l0-4] INFO  SQLDataSource - [builtinApplication.fileattachmentDataSource_add] primaryKeys: {attachment_name=testing, file_ID=9653}
    === 2012-04-03 13:54:43,626 [l0-4] DEBUG AppBase - [builtinApplication.fileattachmentDataSource_add, builtinApplication.null] No userTypes defined, allowing anyone access to all operations for this application
    === 2012-04-03 13:54:43,626 [l0-4] DEBUG AppBase - [builtinApplication.fileattachmentDataSource_add, builtinApplication.null] No public zero-argument method named '_null' found, performing generic datasource operation
    === 2012-04-03 13:54:43,626 [l0-4] INFO  SQLDataSource - [builtinApplication.fileattachmentDataSource_add, builtinApplication.null] Performing fetch operation with
    	criteria: {attachment_name:"testing",file_ID:9653}	values: {attachment_name:"testing",file_ID:9653}
    === 2012-04-03 13:54:43,627 [l0-4] INFO  SQLDataSource - [builtinApplication.fileattachmentDataSource_add, builtinApplication.null] derived query: SELECT $defaultSelectClause FROM $defaultTableClause WHERE $defaultWhereClause
    === 2012-04-03 13:54:43,627 [l0-4] INFO  SQLDataSource - [builtinApplication.fileattachmentDataSource_add, builtinApplication.null] Executing SQL query on 'Oracle': SELECT file_attachment.file_ID, file_attachment.attachment_contents, file_attachment.attachment_contents_date_created, file_attachment.attachment_contents_filename, file_attachment.attachment_contents_filesize, file_attachment.attachment_name FROM file_attachment WHERE (file_attachment.attachment_name='testing' AND file_attachment.file_ID='9653')
    === 2012-04-03 13:54:43,628 [l0-4] INFO  SQLDriver - [builtinApplication.fileattachmentDataSource_add, builtinApplication.null] Executing SQL query on 'Oracle': SELECT file_attachment.file_ID, file_attachment.attachment_contents, file_attachment.attachment_contents_date_created, file_attachment.attachment_contents_filename, file_attachment.attachment_contents_filesize, file_attachment.attachment_name FROM file_attachment WHERE (file_attachment.attachment_name='testing' AND file_attachment.file_ID='9653')
    === 2012-04-03 13:54:43,767 [l0-4] INFO  DSResponse - [builtinApplication.fileattachmentDataSource_add, builtinApplication.null] DSResponse: List with 1 items
    === 2012-04-03 13:54:43,767 [l0-4] INFO  DSResponse - [builtinApplication.fileattachmentDataSource_add] DSResponse: List with 1 items
    === 2012-04-03 13:54:43,767 [l0-4] DEBUG RPCManager - Content type for RPC transaction: text/html; charset=UTF-8
    === 2012-04-03 13:54:43,767 [l0-4] DEBUG SQLTransaction - Committing Oracle transaction "15266629"
    === 2012-04-03 13:54:43,773 [l0-4] DEBUG RPCManager - non-DMI response, dropExtraFields: false
    === 2012-04-03 13:54:43,775 [l0-4] DEBUG SQLTransaction - Ending Oracle transaction "15266629"
    === 2012-04-03 13:54:43,778 [l0-4] INFO  Compression - /myapplication/sc/IDACall: 775 -> 478 bytes
    I don't see any logs on the server that I can post. Is there anything here that can help diagnose the problem?

    #2
    Where specifically are you seeing "Problem communicating with the server"? That's not an error message that comes from SmartGWT, so it might be something going wrong in some custom error handling logic you've added.

    Also, what browser(s) are affected?

    Comment


      #3
      Originally posted by Isomorphic
      Where specifically are you seeing "Problem communicating with the server"? That's not an error message that comes from SmartGWT, so it might be something going wrong in some custom error handling logic you've added.

      Also, what browser(s) are affected?
      Firefox 8 is the browser I'm currently using. When I click the upload file button, I have code that catches uncaught exception on the client side.
      Code:
      RPCManager.setHandleErrorCallback(new HandleErrorCallback() {
      public void handleError(DSResponse response,
                                       DSRequest request)
               {
              response.getData().toString();
      }
      }
      At this point I get [Lcom.smartgwt.client.data.Record;@49
      Don't know if this provides any context. Is there any other way to catch this error on the server side and log the error so I can see what is happening?

      Comment


        #4
        We still need to know: where specifically are you seeing "Problem communicating with the server"? Firebug console? Native alert? Warning dialog from SmartGWT? Developer Console? Eclipse console? Something else?

        Comment


          #5
          Originally posted by Isomorphic
          We still need to know: where specifically are you seeing "Problem communicating with the server"? Firebug console? Native alert? Warning dialog from SmartGWT? Developer Console? Eclipse console? Something else?
          Sorry, should've mentioned it is just a generic error message a teammate logs when any uncaught exception gets returned to RPCManager.

          Comment


            #6
            OK, then look in the RPC tab of the Developer Console. Most likely your server code is returning a response with a negative status code - it may have a more specific error message you're suppressing (it's very bad practice to squelch this and log something generic).

            If it doesn't, then maybe you have server code that's catching all exceptions and similarly sending back a generic error without logging exception details (which would be another bad practice of course)

            Comment


              #7
              Originally posted by Isomorphic
              OK, then look in the RPC tab of the Developer Console. Most likely your server code is returning a response with a negative status code - it may have a more specific error message you're suppressing (it's very bad practice to squelch this and log something generic).

              If it doesn't, then maybe you have server code that's catching all exceptions and similarly sending back a generic error without logging exception details (which would be another bad practice of course)
              I cannot get the developer console to come up by typing the javascript:isc.showConsole() in the url. I had my teammate eliminate the generic error message and the error that I now get is Missing IN or OUT parameter at index:: 1

              Comment


                #8
                The correct string is javascript:isc.showConsole(). Note that some browsers now disallow JavaScript URLs, in which case you need to create a bookmark first.

                Comment


                  #9
                  Originally posted by Isomorphic
                  The correct string is javascript:isc.showConsole(). Note that some browsers now disallow JavaScript URLs, in which case you need to create a bookmark first.
                  After setting the bookmark, this is what I get
                  Code:
                  19:50:50.012:MUP9:WARN:DataSource:MyFileDataSource:no foreign key declaration, guessing tree relationship is on field name: FILE_ID which occurs in both DataSources
                  19:51:52.694:MUP4:WARN:DataSource:MyFileDataSource:no foreign key declaration, guessing tree relationship is on field name: FILE_ID which occurs in both DataSources
                  19:52:07.153:WARN:RPCManager:Missing IN or OUT parameter at index:: 1, response: {operationId: "MyFileDataSource_add",
                  clientContext: Obj,
                  context: Obj,
                  transactionNum: 18,
                  httpResponseCode: undef,
                  httpResponseText: undef,
                  xmlHttpRequest: undef,
                  transport: "hiddenFrame",
                  status: -1,
                  clientOnly: undef,
                  isStructured: true,
                  callbackArgs: null,
                  results: Obj,
                  data: "Missing IN or OUT parameter at index:: 1",
                  invalidateCache: false,
                  isDSResponse: true,
                  queueStatus: -1,
                  httpHeaders: undef,
                  startRow: 0,
                  endRow: 0,
                  totalRows: 0}
                  Last edited by azuniga; 5 Apr 2012, 11:55.

                  Comment


                    #10
                    OK, first of all, you should get rid of this custom error handler on the client side that is losing all the details of the error message, or at the least, have it also log the original details if it's going to show a simplified error for end users.

                    As far as the actual origin of the error, this would normally be reported by the server with a bunch of details. Either the logs you showed previously were for something else, or someone has added analogous server-side error handling code that is dropping all the details as well.

                    Comment


                      #11
                      Originally posted by Isomorphic
                      OK, first of all, you should get rid of this custom error handler on the client side that is losing all the details of the error message, or at the least, have it also log the original details if it's going to show a simplified error for end users.

                      As far as the actual origin of the error, this would normally be reported by the server with a bunch of details. Either the logs you showed previously were for something else, or someone has added analogous server-side error handling code that is dropping all the details as well.
                      Using the dev console here are the logs.
                      Code:
                      === 2012-04-05 20:19:00,344 [ng)'] INFO  RequestContext - URL: '/myapplication/myapplication/sc/IDACall', User-Agent: 'Mozilla/5.0 (X11; Linux i686 on x86_64; rv:8.0.1) Gecko/20100101 Firefox/8.0.1': Moz (Gecko) with Accept-Encoding header
                      === 2012-04-05 20:19:00,345 [ng)'] WARN  RPCManager - client/server version mismatch.  Client is version: SC_SNAPSHOT-2012-01-16_v8.1p, server is version: SC_SNAPSHOT-2012-01-11_v8.2p - mixing different client/server versions is generally not supported.  If you've installed a more recent client version, try clearing the browser cache and reloading the page.
                      === 2012-04-05 20:19:00,365 [ng)'] DEBUG XML - Parsed XML from (in memory stream): 1ms
                      === 2012-04-05 20:19:00,366 [ng)'] DEBUG RPCManager - Processing 1 requests.
                      === 2012-04-05 20:19:00,368 [ng)'] DEBUG RPCManager - Request #1 (DSRequest) payload: {
                          values:{
                              mypdffile_contents:"myusername-mypdffile.pdf",
                              file_id:11004,
                              mypdffile_name:"myusername"
                          },
                          operationConfig:{
                              dataSource:"myfileDataSource",
                              operationType:"add"
                          },
                          componentId:"isc_DynamicForm_4",
                          appID:"builtinApplication",
                          operation:"myfileDataSource_add",
                          oldValues:{
                          },
                          criteria:{
                          }
                      }
                      === 2012-04-05 20:19:00,368 [ng)'] INFO  IDACall - Performing 1 operation(s)
                      === 2012-04-05 20:19:00,370 [ng)'] DEBUG AppBase - [builtinApplication.myfileDataSource_add] No userTypes defined, allowing anyone access to all operations for this application
                      === 2012-04-05 20:19:00,370 [ng)'] DEBUG AppBase - [builtinApplication.myfileDataSource_add] No public zero-argument method named '_myfileDataSource_add' found, performing generic datasource operation
                      === 2012-04-05 20:19:00,371 [ng)'] WARN  Validation - [builtinApplication.myfileDataSource_add] No such type 'binary', not processing field value at /myfileDataSource/mypdffile_contents
                      === 2012-04-05 20:19:00,371 [ng)'] INFO  SQLDataSource - [builtinApplication.myfileDataSource_add] Performing add operation with
                      	criteria: {mypdffile_contents:"myusername-mypdffile.pdf",file_id:11004,mypdffile_name:"myusername"}	values: {mypdffile_contents:"myusername-mypdffile.pdf",file_id:11004,mypdffile_name:"myusername"}
                      === 2012-04-05 20:19:00,379 [ng)'] DEBUG SQLValuesClause - [builtinApplication.myfileDataSource_add] Sequences: {}
                      === 2012-04-05 20:19:00,384 [ng)'] DEBUG PoolableSQLConnectionFactory - [builtinApplication.myfileDataSource_add] Returning pooled Connection
                      === 2012-04-05 20:19:00,386 [ng)'] DEBUG SQLTransaction - [builtinApplication.myfileDataSource_add] Started new Oracle transaction "464"
                      === 2012-04-05 20:19:00,386 [ng)'] INFO  SQLDriver - [builtinApplication.myfileDataSource_add] Executing SQL update on 'Oracle': INSERT INTO REPORT_mypdffile (file_id, mypdffile_contents, mypdffile_name) VALUES (11004, ?, 'myusername')
                      === 2012-04-05 20:19:00,390 [ng)'] WARN  RequestContext - dsRequest.execute() failed: 
                      === 2012-04-05 20:19:00,391 [ng)'] DEBUG RPCManager - Content type for RPC transaction: text/html; charset=UTF-8
                      === 2012-04-05 20:19:00,394 [ng)'] DEBUG SQLTransaction - Rolling back Oracle transaction "464"
                      === 2012-04-05 20:19:00,396 [ng)'] DEBUG RPCManager - non-DMI response, dropExtraFields: false
                      === 2012-04-05 20:19:00,398 [ng)'] DEBUG SQLTransaction - Ending Oracle transaction "464"
                      === 2012-04-05 20:19:00,399 [ng)'] INFO  Compression - /myapplication/myapplication/sc/IDACall: 592 -> 368 bytes

                      Comment


                        #12
                        This is my ds.xml file
                        Code:
                        <DataSource ID="myfileDataSource" 
                        			dataFormat="iscServer" 
                        			serverType="sql" 
                        			dataSourceVersion="1" 
                        			dbName="Oracle" 
                        			tableName="Attachment" 
                        			autoDeriveSchema="false">
                            <fields>
                            	<field name="mypdffile_name" 					type="text"	 	length="256" 		primaryKey="true"/>
                                <field name="file_ID" 						type="int" 		foreignKey="true" 	primaryKey="true"/>
                                <field name="mypdffile_contents_date_created" 	type="datetime" title="Date"/>
                                <field name="mypdffile_contents" 				type="binary"   title="File"/>
                            </fields>
                        </DataSource>

                        Comment


                          #13
                          The error is poorly reported server side because the Oracle JDBC driver throws some exceptions where exception.toString() is blank (amazing but true). But what appears to be happening is that no file has actually arrived at the server.

                          Note the warning toward the top - you have mixed versions and need to fix this first. This could be the issue.

                          If that's not the problem, check with Firebug's "Net" panel to verify that a file is actually send to the server. If it is, check for any servlet filters that you've installed in front of IDACall - some such filters are known to extract and remove the file before it reaches IDACAll (Struts and Spring in some modes will both do this).

                          Comment


                            #14
                            I removed the custom error handler. The upload form is within an expandable list grid record. I click on the expandable record to view the attachments to the file and the upload form for more attachments. When I do that I get the following error:
                            Code:
                             20:18:25.393 [ERROR] [azunigaapplication] 20:18:25.392:MUP9:WARN:DataSource:FileAttachmentDataSource:no foreign key declaration, guessing tree relationship is on field name: FILE_ID which occurs in both DataSources
                            com.smartgwt.client.core.JsObject$SGWT_WARN: 20:18:25.392:MUP9:WARN:DataSource:FileAttachmentDataSource:no foreign key declaration, guessing tree relationship is on field name: FILE_ID which occurs in both DataSources
                                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.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:132)
                                at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
                                at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289)
                                at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
                                at com.smartgwt.client.widgets.grid.ListGrid.fetchRelatedData(ListGrid.java)
                                at goesr.gs.pg.pp.pai.client.ui.AttachmentInnerListGrid.getExpansionComponent(AttachmentInnerListGrid.java:178)
                                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:167)
                                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:132)
                                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:214)
                                at sun.reflect.GeneratedMethodAccessor88.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: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)
                            I don't know why this is the issue b/c you can see in my ds.xml file that I have FILE_ID as the foreignKey. However, I can still upload the file running in dev mode. When I click upload on the upload form, I get a pop up that says
                            Code:
                             Uncaught exception escaped : java.lang.ClassCastException
                            null
                            See the Development console log for details.
                            Register a GWT.setUncaughtExceptionHandler(..) for custom uncaught exception handling.
                            Here is what the development mode tab in eclipse says:
                            Code:
                            20:25:35.049 [ERROR] [azunigaapplication] Uncaught exception escaped
                            java.lang.ClassCastException: null
                                at java.lang.Class.cast(Class.java:2990)
                                at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:163)
                                at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:57)
                                at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167)
                                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:132)
                                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:214)
                                at sun.reflect.GeneratedMethodAccessor88.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: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)
                            Here is what the Dev console prints out
                            Code:
                             === 2012-04-09 20:18:25,403 [0-17] INFO  RequestContext - URL: '/azunigaapplication/sc/IDACall', User-Agent: 'Mozilla/5.0 (X11; Linux i686 on x86_64; rv:8.0.1) Gecko/20100101 Firefox/8.0.1': Moz (Gecko) with Accept-Encoding header
                            === 2012-04-09 20:18:25,428 [0-17] DEBUG XML - Parsed XML from (in memory stream): 24ms
                            === 2012-04-09 20:18:25,431 [0-17] DEBUG RPCManager - Processing 1 requests.
                            === 2012-04-09 20:18:25,432 [0-17] DEBUG RPCManager - Request #1 (DSRequest) payload: {
                                criteria:{
                                    FILE_ID:11003
                                },
                                operationConfig:{
                                    dataSource:"FileAttachmentDataSource",
                                    operationType:"fetch",
                                    textMatchStyle:"exact"
                                },
                                startRow:0,
                                endRow:75,
                                componentId:"isc_ListGrid_7",
                                appID:"builtinApplication",
                                operation:"FileAttachmentDataSource_fetch",
                                oldValues:{
                                    FILE_ID:11003
                                }
                            }
                            === 2012-04-09 20:18:25,432 [0-17] INFO  IDACall - Performing 1 operation(s)
                            === 2012-04-09 20:18:25,433 [0-17] DEBUG AppBase - [builtinApplication.FileAttachmentDataSource_fetch] No userTypes defined, allowing anyone access to all operations for this application
                            === 2012-04-09 20:18:25,433 [0-17] DEBUG AppBase - [builtinApplication.FileAttachmentDataSource_fetch] No public zero-argument method named '_FileAttachmentDataSource_fetch' found, performing generic datasource operation
                            === 2012-04-09 20:18:25,433 [0-17] INFO  SQLDataSource - [builtinApplication.FileAttachmentDataSource_fetch] Performing fetch operation with
                            	criteria: {FILE_ID:11003}	values: {FILE_ID:11003}
                            === 2012-04-09 20:18:25,433 [0-17] INFO  SQLDataSource - [builtinApplication.FileAttachmentDataSource_fetch] derived query: SELECT $defaultSelectClause FROM $defaultTableClause WHERE $defaultWhereClause
                            === 2012-04-09 20:18:25,433 [0-17] DEBUG SQLDataSource - [builtinApplication.FileAttachmentDataSource_fetch] Executing row count query: SELECT COUNT(*) FROM $defaultTableClause WHERE $defaultWhereClause
                            === 2012-04-09 20:18:25,434 [0-17] DEBUG SQLDataSource - [builtinApplication.FileAttachmentDataSource_fetch] Eval'd row count query: SELECT COUNT(*) FROM FILE_Attachment WHERE (FILE_Attachment.FILE_ID='11003')
                            === 2012-04-09 20:18:25,458 [0-17] DEBUG PoolableSQLConnectionFactory - [builtinApplication.FileAttachmentDataSource_fetch] Returning pooled Connection
                            === 2012-04-09 20:18:25,459 [0-17] INFO  SQLDriver - [builtinApplication.FileAttachmentDataSource_fetch] Executing SQL query on 'Oracle': SELECT COUNT(*) FROM FILE_Attachment WHERE (FILE_Attachment.FILE_ID='11003')
                            === 2012-04-09 20:18:25,461 [0-17] INFO  DSResponse - [builtinApplication.FileAttachmentDataSource_fetch] DSResponse: List with 0 items
                            === 2012-04-09 20:18:25,462 [0-17] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
                            === 2012-04-09 20:18:25,463 [0-17] DEBUG RPCManager - non-DMI response, dropExtraFields: false
                            === 2012-04-09 20:18:25,464 [0-17] INFO  Compression - /azunigaapplication/sc/IDACall: 173 -> 148 bytes
                            === 2012-04-09 20:18:26,122 [0-17] INFO  Download - Returning 304: Not modified on conditional get of: /pgpd/PAI_Proto/GOES_R_azuniga_PTR_2900/vobs/goes_r_development/Software_Engineering/IPT_PG/Dev/src/ProductPerformance/azunigaapplication/azunigaapplication/war/azunigaapplication/sc/skins/Enterprise/images/loadingSmall.gif
                            === 2012-04-09 20:18:35,668 [0-17] INFO  Download - Returning 304: Not modified on conditional get of: /pgpd/PAI_Proto/GOES_R_azuniga_PTR_2900/vobs/goes_r_development/Software_Engineering/IPT_PG/Dev/src/ProductPerformance/azunigaapplication/azunigaapplication/war/azunigaapplication/sc/skins/Enterprise/images/button/button_Down_start.png
                            === 2012-04-09 20:18:35,672 [0-17] INFO  Download - Returning 304: Not modified on conditional get of: /pgpd/PAI_Proto/GOES_R_azuniga_PTR_2900/vobs/goes_r_development/Software_Engineering/IPT_PG/Dev/src/ProductPerformance/azunigaapplication/azunigaapplication/war/azunigaapplication/sc/skins/Enterprise/images/button/button_Down_stretch.png
                            === 2012-04-09 20:18:35,672 [0-18] INFO  Download - Returning 304: Not modified on conditional get of: /pgpd/PAI_Proto/GOES_R_azuniga_PTR_2900/vobs/goes_r_development/Software_Engineering/IPT_PG/Dev/src/ProductPerformance/azunigaapplication/azunigaapplication/war/azunigaapplication/sc/skins/Enterprise/images/button/button_Down_end.png
                            === 2012-04-09 20:18:36,281 [0-18] INFO  RequestContext - URL: '/azunigaapplication/sc/IDACall', User-Agent: 'Mozilla/5.0 (X11; Linux i686 on x86_64; rv:8.0.1) Gecko/20100101 Firefox/8.0.1': Moz (Gecko) with Accept-Encoding header
                            === 2012-04-09 20:18:36,292 [0-18] DEBUG XML - Parsed XML from (in memory stream): 9ms
                            === 2012-04-09 20:18:36,294 [0-18] DEBUG RPCManager - Processing 1 requests.
                            === 2012-04-09 20:18:36,295 [0-18] INFO  DSRequest - We parsed 1 uploaded file(s): "azuniga-Table.pdf" (1991 bytes)
                            === 2012-04-09 20:18:36,295 [0-18] DEBUG RPCManager - Request #1 (DSRequest) payload: {
                                values:{
                                    Attachment_contents:"azuniga-Table.pdf",
                                    FILE_ID:11003,
                                    Attachment_name:"azuniga",
                                    Attachment_contents_date_created:new Date(1334002716295),
                                    Attachment_contents_filename:"azuniga-Table.pdf",
                                    Attachment_contents_filesize:1991
                                },
                                operationConfig:{
                                    dataSource:"FileAttachmentDataSource",
                                    operationType:"add"
                                },
                                componentId:"isc_DynamicForm_9",
                                appID:"builtinApplication",
                                operation:"FileAttachmentDataSource_add",
                                oldValues:{
                                },
                                criteria:{
                                }
                            }
                            === 2012-04-09 20:18:36,295 [0-18] INFO  IDACall - Performing 1 operation(s)
                            === 2012-04-09 20:18:36,295 [0-18] DEBUG AppBase - [builtinApplication.FileAttachmentDataSource_add] No userTypes defined, allowing anyone access to all operations for this application
                            === 2012-04-09 20:18:36,296 [0-18] DEBUG AppBase - [builtinApplication.FileAttachmentDataSource_add] No public zero-argument method named '_FileAttachmentDataSource_add' found, performing generic datasource operation
                            === 2012-04-09 20:18:36,296 [0-18] INFO  SQLDataSource - [builtinApplication.FileAttachmentDataSource_add] Performing add operation with
                            	criteria: {FILE_ID:11003,Attachment_name:"azuniga",Attachment_contents_date_created:new Date(1334002716295),Attachment_contents_filename:"azuniga-Table.pdf",Attachment_contents_filesize:1991}	values: {FILE_ID:11003,Attachment_name:"azuniga",Attachment_contents_date_created:new Date(1334002716295),Attachment_contents_filename:"azuniga-Table.pdf",Attachment_contents_filesize:1991}
                            === 2012-04-09 20:18:36,296 [0-18] DEBUG SQLValuesClause - [builtinApplication.FileAttachmentDataSource_add] Sequences: {}
                            === 2012-04-09 20:18:36,320 [0-18] DEBUG PoolableSQLConnectionFactory - [builtinApplication.FileAttachmentDataSource_add] Returning pooled Connection
                            === 2012-04-09 20:18:36,321 [0-18] DEBUG SQLTransaction - [builtinApplication.FileAttachmentDataSource_add] Started new Oracle transaction "7455961"
                            === 2012-04-09 20:18:36,321 [0-18] INFO  SQLDriver - [builtinApplication.FileAttachmentDataSource_add] Executing SQL update on 'Oracle': INSERT INTO FILE_Attachment (FILE_ID, Attachment_contents, Attachment_contents_date_created, Attachment_contents_filename, Attachment_contents_filesize, Attachment_name) VALUES (11003, ?, TO_DATE('2012-04-09 20:18:36','YYYY-MM-DD HH24:MI:SS'), 'azuniga-Table.pdf', 1991, 'azuniga')
                            === 2012-04-09 20:18:36,324 [0-18] DEBUG SQLDataSource - [builtinApplication.FileAttachmentDataSource_add] add operation affected 1 rows
                            === 2012-04-09 20:18:36,324 [0-18] INFO  SQLDataSource - [builtinApplication.FileAttachmentDataSource_add] primaryKeys: {Attachment_name=azuniga, FILE_ID=11003}
                            === 2012-04-09 20:18:36,324 [0-18] DEBUG AppBase - [builtinApplication.FileAttachmentDataSource_add, builtinApplication.null] No userTypes defined, allowing anyone access to all operations for this application
                            === 2012-04-09 20:18:36,324 [0-18] DEBUG AppBase - [builtinApplication.FileAttachmentDataSource_add, builtinApplication.null] No public zero-argument method named '_null' found, performing generic datasource operation
                            === 2012-04-09 20:18:36,325 [0-18] INFO  SQLDataSource - [builtinApplication.FileAttachmentDataSource_add, builtinApplication.null] Performing fetch operation with
                            	criteria: {Attachment_name:"azuniga",FILE_ID:11003}	values: {Attachment_name:"azuniga",FILE_ID:11003}
                            === 2012-04-09 20:18:36,325 [0-18] INFO  SQLDataSource - [builtinApplication.FileAttachmentDataSource_add, builtinApplication.null] derived query: SELECT $defaultSelectClause FROM $defaultTableClause WHERE $defaultWhereClause
                            === 2012-04-09 20:18:36,325 [0-18] INFO  SQLDataSource - [builtinApplication.FileAttachmentDataSource_add, builtinApplication.null] Executing SQL query on 'Oracle': SELECT FILE_Attachment.FILE_ID, FILE_Attachment.Attachment_contents, FILE_Attachment.Attachment_contents_date_created, FILE_Attachment.Attachment_contents_filename, FILE_Attachment.Attachment_contents_filesize, FILE_Attachment.Attachment_name FROM FILE_Attachment WHERE (FILE_Attachment.Attachment_name='azuniga' AND FILE_Attachment.FILE_ID='11003')
                            === 2012-04-09 20:18:36,325 [0-18] INFO  SQLDriver - [builtinApplication.FileAttachmentDataSource_add, builtinApplication.null] Executing SQL query on 'Oracle': SELECT FILE_Attachment.FILE_ID, FILE_Attachment.Attachment_contents, FILE_Attachment.Attachment_contents_date_created, FILE_Attachment.Attachment_contents_filename, FILE_Attachment.Attachment_contents_filesize, FILE_Attachment.Attachment_name FROM FILE_Attachment WHERE (FILE_Attachment.Attachment_name='azuniga' AND FILE_Attachment.FILE_ID='11003')
                            === 2012-04-09 20:18:36,328 [0-18] INFO  DSResponse - [builtinApplication.FileAttachmentDataSource_add, builtinApplication.null] DSResponse: List with 1 items
                            === 2012-04-09 20:18:36,328 [0-18] INFO  DSResponse - [builtinApplication.FileAttachmentDataSource_add] DSResponse: List with 1 items
                            === 2012-04-09 20:18:36,328 [0-18] DEBUG RPCManager - Content type for RPC transaction: text/html; charset=UTF-8
                            === 2012-04-09 20:18:36,328 [0-18] DEBUG SQLTransaction - Committing Oracle transaction "7455961"
                            === 2012-04-09 20:18:36,329 [0-18] DEBUG RPCManager - non-DMI response, dropExtraFields: false
                            === 2012-04-09 20:18:36,330 [0-18] DEBUG SQLTransaction - Ending Oracle transaction "7455961"
                            === 2012-04-09 20:18:36,332 [0-18] INFO  Compression - /azunigaapplication/sc/IDACall: 756 -> 460 bytes
                            === 2012-04-09 20:19:04,320 [0-18] INFO  RequestContext - URL: '/azunigaapplication/sc/IDACall', User-Agent: 'Mozilla/5.0 (X11; Linux i686 on x86_64; rv:8.0.1) Gecko/20100101 Firefox/8.0.1': Moz (Gecko) with Accept-Encoding header
                            === 2012-04-09 20:19:04,343 [0-18] INFO  Compression - /azunigaapplication/sc/IDACall: 144206 -> 8853 bytes
                            === 2012-04-09 20:20:17,993 [0-18] INFO  RequestContext - URL: '/azunigaapplication/sc/IDACall', User-Agent: 'Mozilla/5.0 (X11; Linux i686 on x86_64; rv:8.0.1) Gecko/20100101 Firefox/8.0.1': Moz (Gecko) with Accept-Encoding header

                            Comment


                              #15
                              This is just a warning and the system appears to have guessed correctly what you want anyway. However if you want to get rid of the warning, make sure the field names are all correct (they are case sensitive) and that the foreignKey declaration is in the correct DataSource (the "many" side of "many-to-one").

                              Are you still having any difficulty aside from this warning?

                              Comment

                              Working...
                              X