Announcement

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

    DMI with custom operation

    Hi,

    I tried to configure a DS with custom operation, and to invoke the operation using performCustomOperation from the client. Unluckily, it doesn't work. The SC.say() doesn't succeed to open the window, and in the Developer Mode I see the error:
    "18:44:00.791 [ERROR] [builtinds] 18:44:00.790:XRP1:WARN:RPCManager:performTransactionReply: No such transaction 0".
    In the browser I can see the circle that indicates that it's waiting.

    By debugging I saw that the flow succeeded to get to the server custom operation "multipleDownload", but from some reason it has a problem with the response.

    The DS:
    Code:
    <DataSource ID="animals">
        
        <operationBindings>
        
            <binding operationType="custom" operationId="downloadMultiple">
                <serverObject  
                     className="com.smartgwt.sample.server.DMI" 
                     methodName="multipleDownload" 
                />
            </binding>
            
        </operationBindings>
        
    </DataSource>
    The server:
    Code:
    package com.smartgwt.sample.server;
    
    import javax.servlet.http.HttpServletResponse;
    
    import com.isomorphic.datasource.DSRequest;
    import com.isomorphic.datasource.DSResponse;
    
    public class DMI {
    	public DSResponse multipleDownload(DSRequest dsRequest, 
    			HttpServletResponse servletResponse) {
    		 
    		DSResponse res = new DSResponse();
    		res.setSuccess();
    		return res;
    	}
    }
    The client:
    Code:
    package com.smartgwt.sample.client;
    
    import com.google.gwt.core.client.EntryPoint;
    import com.smartgwt.client.data.DSCallback;
    import com.smartgwt.client.data.DSRequest;
    import com.smartgwt.client.data.DSResponse;
    import com.smartgwt.client.data.DataSource;
    import com.smartgwt.client.data.Record;
    import com.smartgwt.client.util.SC;
    
    /**
     * Entry point classes define <code>onModuleLoad()</code>.
     */
    public class BuiltInDS implements EntryPoint {
    	
        /**
         * This is the entry point method.
         */
        public void onModuleLoad() {
        	DataSource ds = DataSource.get("animals");
        	ds.performCustomOperation("downloadMultiple", new Record(), new DSCallback() {
    			
    			@Override
    			public void execute(DSResponse response, Object rawData, DSRequest request) {
    				SC.say("hello");
    			}
    		}, new DSRequest());
        }
    
    }
    Console (Smart logs):
    Code:
    [WARN] Server class 'com.isomorphic.servlet.CompressionFilter' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.1d%2010.04/smartgwtee-3.1d/lib/isomorphic_core_rpc.jar' to the web app classpath for this session
       For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    ISC: Configuring log4j from: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/workspace/builtinds2/war/WEB-INF/classes/log4j.isc.config.xml
    [WARN] Server class 'org.apache.commons.collections.map.LinkedMap' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.1d%2010.04/smartgwtee-3.1d/lib/commons-collections-3.2.1.jar' to the web app classpath for this session
       For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    === 2012-04-20 18:48:40,212 [main] INFO  ISCInit - Isomorphic SmartClient Framework - Initializing
    === 2012-04-20 18:48:40,219 [main] INFO  ConfigLoader - Attempting to load framework.properties from CLASSPATH
    [WARN] Server class 'isc.org.apache.oro.text.perl.Perl5Util' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.1d%2010.04/smartgwtee-3.1d/lib/isc-jakarta-oro-2.0.6.jar' to the web app classpath for this session
       For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    === 2012-04-20 18:48:40,308 [main] INFO  ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/C:/Users/Ronen/Desktop/smartgwtee-3.1d%2010.04/smartgwtee-3.1d/lib/isomorphic_core_rpc.jar!/framework.properties
    === 2012-04-20 18:48:40,308 [main] INFO  ConfigLoader - Attempting to load project.properties from CLASSPATH
    === 2012-04-20 18:48:40,308 [main] INFO  ConfigLoader - Unable to locate project.properties in CLASSPATH
    === 2012-04-20 18:48:40,312 [main] INFO  ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/Users/Ronen/Desktop/smartgwtee-3.1d%2010.04/smartgwtee-3.1d/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
    === 2012-04-20 18:48:40,312 [main] INFO  ConfigLoader - Attempting to load server.properties from CLASSPATH
    === 2012-04-20 18:48:40,314 [main] INFO  ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/workspace/builtinds2/war/WEB-INF/classes/server.properties
    === 2012-04-20 18:48:40,321 [main] INFO  Logger - Logging system started.
    === 2012-04-20 18:48:40,321 [main] INFO  ISCInit - Isomorphic SmartClient Framework (SNAPSHOT_v8.3d_2012-04-10/EVAL Deployment 2012-04-10) - Initialization Complete
    === 2012-04-20 18:48:40,324 [main] INFO  ISCInit - Auto-detected webRoot - using: C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war
    [WARN] Server class 'com.isomorphic.compression.ServletCompression' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.1d%2010.04/smartgwtee-3.1d/lib/isomorphic_compression.jar' to the web app classpath for this session
       For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext).
    log4j:WARN Please initialize the log4j system properly.
    [WARN] Server class 'org.apache.commons.fileupload.FileItemFactory' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.1d%2010.04/smartgwtee-3.1d/lib/commons-fileupload-1.2.1.jar' to the web app classpath for this session
       For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    === 2012-04-20 18:48:46,478 [l0-4] INFO  RequestContext - URL: '/builtinds/sc/DataSourceLoader', User-Agent: 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.152 Safari/535.19': Safari with Accept-Encoding header
    [WARN] Server class 'org.apache.commons.pool.impl.GenericKeyedObjectPool' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.1d%2010.04/smartgwtee-3.1d/lib/commons-pool-1.4.jar' to the web app classpath for this session
       For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    === 2012-04-20 18:48:46,522 [l0-4] INFO  PoolManager - SmartClient pooling disabled for 'supplyItem' objects
    [WARN] Server class 'org.apache.commons.jxpath.AbstractFactory' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.1d%2010.04/smartgwtee-3.1d/lib/commons-jxpath-1.3.jar' to the web app classpath for this session
       For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    === 2012-04-20 18:48:46,559 [l0-4] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\builtinTypes.xml: 6ms
    === 2012-04-20 18:48:46,614 [l0-4] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\ds\supplyItem.ds.xml: 2ms
    === 2012-04-20 18:48:46,622 [l0-4] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\DataSource.ds.xml: 6ms
    [WARN] Server class 'org.apache.velocity.context.Context' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.1d%2010.04/smartgwtee-3.1d/lib/velocity-1.6.1.jar' to the web app classpath for this session
       For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    === 2012-04-20 18:48:46,685 [l0-4] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\DataSourceField.ds.xml: 4ms
    [WARN] Server class 'com.isomorphic.sql.SQLDataSource' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.1d%2010.04/smartgwtee-3.1d/lib/isomorphic_sql.jar' to the web app classpath for this session
       For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    === 2012-04-20 18:48:46,745 [l0-4] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\ds\animals.ds.xml: 2ms
    === 2012-04-20 18:48:46,753 [l0-4] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\OperationBinding.ds.xml: 4ms
    === 2012-04-20 18:48:46,774 [l0-4] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\ServerObject.ds.xml: 2ms
    === 2012-04-20 18:48:46,914 [l0-2] INFO  Compression - /builtinds/sc/modules/ISC_Core.js: 735485 -> 189663 bytes
    === 2012-04-20 18:48:49,035 [l0-2] INFO  RequestContext - URL: '/favicon.ico', User-Agent: 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.152 Safari/535.19': Safari with Accept-Encoding header
    === 2012-04-20 18:48:55,376 [l0-2] INFO  RequestContext - URL: '/builtinds/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.152 Safari/535.19': Safari with Accept-Encoding header
    === 2012-04-20 18:48:55,396 [l0-4] INFO  RequestContext - URL: '/favicon.ico', User-Agent: 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.152 Safari/535.19': Safari with Accept-Encoding header
    [WARN] Server class 'org.apache.commons.codec.net.URLCodec' could not be found in the web app, but was found on the system classpath
       [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.1d%2010.04/smartgwtee-3.1d/lib/commons-codec-1.3.jar' to the web app classpath for this session
       For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
    === 2012-04-20 18:48:55,411 [l0-2] DEBUG XML - Parsed XML from (in memory stream): 2ms
    === 2012-04-20 18:48:55,415 [l0-2] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\List.ds.xml: 1ms
    === 2012-04-20 18:48:55,422 [l0-2] DEBUG RPCManager - Processing 1 requests.
    === 2012-04-20 18:48:55,437 [l0-2] DEBUG RPCManager - Request #1 (DSRequest) payload: {
        values:{
            __gwt_ObjectId:10
        },
        operationConfig:{
            dataSource:"animals",
            operationType:"custom",
            __gwt_ObjectId:43
        },
        appID:"builtinApplication",
        operation:"downloadMultiple",
        oldValues:{
            __gwt_ObjectId:10
        },
        __gwt_ObjectId:20,
        criteria:{
        }
    }
    === 2012-04-20 18:48:55,441 [l0-2] INFO  IDACall - Performing 1 operation(s)
    === 2012-04-20 18:48:55,441 [l0-2] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
    === 2012-04-20 18:48:55,441 [l0-2] DEBUG DeclarativeSecurity - DataSource animals is not in the pre-checked list, processing...
    === 2012-04-20 18:48:55,453 [l0-2] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
    === 2012-04-20 18:48:55,454 [l0-2] WARN  DSResponse - Attempted to call getRecord() on a DSResponse with null DataSource
    === 2012-04-20 18:48:55,454 [l0-2] DEBUG RPCManager - DMI response, dropExtraFields: false
    === 2012-04-20 18:48:55,456 [l0-2] INFO  Compression - /builtinds/sc/IDACall: 144 -> 131 bytes
    I'm using SmartGWT EE 3.1d from the 10.4, and Chrome 18.0.1025.152m.

    Thank you!

    #2
    Don't test in Chrome development mode due to Chrome/GWT bugs (see FAQ).

    If this doesn't solve the problem, use logging to see if your server-side code is invoked at all.

    Comment


      #3
      Not testing my code in Chrome development mode didn't solve the problem.

      Like I wrote before - my function at server (multipleDownload) is invoked.

      Comment


        #4
        We're not seeing this with the latest nightly, it could be a one-day regression or similar - please try the latest.

        Comment


          #5
          ok, I switched back to smart 3.0, and it worked.

          But I have another problem...
          Now I tried to change the code. Now the server should send a file back to the client.
          The client managed to download the file, but after the file is downloaded, I can still see the "thinking circle" in the browser, which indicates that someting is wrong.

          New Client code:
          Code:
          package com.smartgwt.sample.client;
          
          import com.google.gwt.core.client.EntryPoint;
          import com.smartgwt.client.data.DSCallback;
          import com.smartgwt.client.data.DSRequest;
          import com.smartgwt.client.data.DSResponse;
          import com.smartgwt.client.data.DataSource;
          import com.smartgwt.client.data.Record;
          import com.smartgwt.client.util.SC;
          
          /**
           * Entry point classes define <code>onModuleLoad()</code>.
           */
          public class BuiltInDS implements EntryPoint {
          	
              /**
               * This is the entry point method.
               */
              public void onModuleLoad() {
              	DataSource ds = DataSource.get("animals");
              	DSRequest req = new DSRequest();
              	req.setDownloadResult(true);
              	req.setExportToClient(true);
              	ds.performCustomOperation("downloadMultiple", new Record(), new DSCallback() {
          			
          			@Override
          			public void execute(DSResponse response, Object rawData, DSRequest request) {
          				// left blank because this function shouldn't be invoked
          			}
          		}, req);
              }
          
          }
          New server code:
          Code:
          package com.smartgwt.sample.server;
          
          import java.io.FileInputStream;
          import java.io.IOException;
          import java.io.InputStream;
          
          import javax.servlet.ServletOutputStream;
          import javax.servlet.http.HttpServletResponse;
          
          import com.isomorphic.datasource.DSRequest;
          import com.isomorphic.datasource.DSResponse;
          import com.isomorphic.rpc.RPCManager;
          
          public class DMI {
          	public DSResponse multipleDownload(DSRequest dsRequest, RPCManager rpcManager,
          			HttpServletResponse servletResponse) {
          		
          		boolean success = true;
          		InputStream stream = null;
          		ServletOutputStream out = null;
          		try
          		{
          			stream = new FileInputStream("C:\\Users\\Ronen\\Desktop\\SmartGWT_Quick_Start_Guide.pdf");
          
          			servletResponse.setContentType("application/PDF;charset=UTF-8");
          
          			final String PDFFilename = "testdatei";
          			servletResponse.setHeader("Content-Disposition", "attachment; filename=\"" + PDFFilename + ".pdf\"");
          			servletResponse.addHeader("Pragma", "public");
          			servletResponse.addHeader("Cache-Control", "max-age=0");
          
          			out = servletResponse.getOutputStream();
          
          			final byte[] buffer = new byte[32 * 1024];
          			int bytesRead = 0;
          			while ((bytesRead = stream.read(buffer)) >= 0)
          			{
          				out.write(buffer, 0, bytesRead);
          			}
          			out.flush();
          
          			rpcManager.doCustomResponse();
          		}
          		catch (final Throwable t)
          		{
          			success = false;
          		}
          		finally
          		{
          			if (stream != null)
          			{
          				try {
          					stream.close();
          				} catch (IOException e) {
          					success = false;
          				}
          			}
          
          		}
          
          		
          		DSResponse res = new DSResponse();
          		if (success) {
          			res.setSuccess();
          		} else {
          			res.setFailure();
          		}
          		return res;
          	}
          }
          Logs:
          Code:
          [WARN] Server class 'com.isomorphic.servlet.CompressionFilter' could not be found in the web app, but was found on the system classpath
             [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/isomorphic_core_rpc.jar' to the web app classpath for this session
             For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
          ISC: Configuring log4j from: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/workspace/builtinds2/war/WEB-INF/classes/log4j.isc.config.xml
          [WARN] Server class 'org.apache.commons.collections.map.LinkedMap' could not be found in the web app, but was found on the system classpath
             [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/commons-collections-3.2.1.jar' to the web app classpath for this session
             For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
          === 2012-04-21 02:21:52,768 [main] INFO  ISCInit - Isomorphic SmartClient Framework - Initializing
          === 2012-04-21 02:21:52,778 [main] INFO  ConfigLoader - Attempting to load framework.properties from CLASSPATH
          [WARN] Server class 'isc.org.apache.oro.text.perl.Perl5Util' could not be found in the web app, but was found on the system classpath
             [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/isc-jakarta-oro-2.0.6.jar' to the web app classpath for this session
             For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
          === 2012-04-21 02:21:52,860 [main] INFO  ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/isomorphic_core_rpc.jar!/framework.properties
          === 2012-04-21 02:21:52,860 [main] INFO  ConfigLoader - Attempting to load project.properties from CLASSPATH
          === 2012-04-21 02:21:52,860 [main] INFO  ConfigLoader - Unable to locate project.properties in CLASSPATH
          === 2012-04-21 02:21:52,863 [main] INFO  ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
          === 2012-04-21 02:21:52,863 [main] INFO  ConfigLoader - Attempting to load server.properties from CLASSPATH
          === 2012-04-21 02:21:52,865 [main] INFO  ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/workspace/builtinds2/war/WEB-INF/classes/server.properties
          === 2012-04-21 02:21:52,871 [main] INFO  Logger - Logging system started.
          === 2012-04-21 02:21:52,872 [main] INFO  ISCInit - Isomorphic SmartClient Framework (SC_SNAPSHOT-2011-12-05/EVAL Deployment 2011-12-05) - Initialization Complete
          === 2012-04-21 02:21:52,875 [main] INFO  ISCInit - Auto-detected webRoot - using: C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war
          [WARN] Server class 'com.isomorphic.compression.ServletCompression' could not be found in the web app, but was found on the system classpath
             [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/isomorphic_compression.jar' to the web app classpath for this session
             For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
          log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext).
          log4j:WARN Please initialize the log4j system properly.
          [WARN] Server class 'org.apache.commons.fileupload.FileItemFactory' could not be found in the web app, but was found on the system classpath
             [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/commons-fileupload-1.2.1.jar' to the web app classpath for this session
             For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
          === 2012-04-21 02:21:58,397 [l0-2] INFO  RequestContext - URL: '/builtinds/sc/DataSourceLoader', User-Agent: 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.152 Safari/535.19': Safari with Accept-Encoding header
          [WARN] Server class 'org.apache.commons.pool.impl.GenericKeyedObjectPool' could not be found in the web app, but was found on the system classpath
             [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/commons-pool-1.4.jar' to the web app classpath for this session
             For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
          === 2012-04-21 02:21:58,478 [l0-2] INFO  PoolManager - SmartClient pooling disabled for 'supplyItem' objects
          [WARN] Server class 'org.apache.commons.jxpath.AbstractFactory' could not be found in the web app, but was found on the system classpath
             [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/commons-jxpath-1.3.jar' to the web app classpath for this session
             For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
          === 2012-04-21 02:21:58,517 [l0-2] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\builtinTypes.xml: 8ms
          === 2012-04-21 02:21:58,583 [l0-2] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\ds\supplyItem.ds.xml: 2ms
          === 2012-04-21 02:21:58,590 [l0-2] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\DataSource.ds.xml: 5ms
          [WARN] Server class 'org.apache.velocity.context.Context' could not be found in the web app, but was found on the system classpath
             [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/velocity-1.6.1.jar' to the web app classpath for this session
             For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
          === 2012-04-21 02:21:58,668 [l0-2] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\DataSourceField.ds.xml: 4ms
          [WARN] Server class 'com.isomorphic.sql.SQLDataSource' could not be found in the web app, but was found on the system classpath
             [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/isomorphic_sql.jar' to the web app classpath for this session
             For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
          === 2012-04-21 02:21:58,729 [l0-2] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\ds\animals.ds.xml: 2ms
          === 2012-04-21 02:21:58,736 [l0-2] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\OperationBinding.ds.xml: 3ms
          === 2012-04-21 02:21:58,760 [l0-2] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\ServerObject.ds.xml: 2ms
          === 2012-04-21 02:21:58,771 [l0-2] INFO  Compression - /builtinds/sc/DataSourceLoader: 719 -> 271 bytes
          === 2012-04-21 02:21:58,831 [l0-0] INFO  Compression - /builtinds/sc/modules/ISC_Core.js: 705501 -> 182712 bytes
          === 2012-04-21 02:22:24,899 [l0-2] INFO  RequestContext - URL: '/builtinds/sc/DataSourceLoader', User-Agent: 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.152 Safari/535.19': Safari with Accept-Encoding header
          === 2012-04-21 02:22:24,903 [l0-2] INFO  Compression - /builtinds/sc/DataSourceLoader: 719 -> 271 bytes
          === 2012-04-21 02:22:31,993 [l0-2] INFO  RequestContext - URL: '/builtinds/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.152 Safari/535.19': Safari with Accept-Encoding header
          [WARN] Server class 'org.apache.commons.codec.net.URLCodec' could not be found in the web app, but was found on the system classpath
             [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/commons-codec-1.3.jar' to the web app classpath for this session
             For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
          === 2012-04-21 02:22:32,022 [l0-2] DEBUG XML - Parsed XML from (in memory stream): 3ms
          === 2012-04-21 02:22:32,026 [l0-2] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\List.ds.xml: 1ms
          === 2012-04-21 02:22:32,031 [l0-2] DEBUG RPCManager - Processing 1 requests.
          === 2012-04-21 02:22:32,045 [l0-2] DEBUG RPCManager - Request #1 (DSRequest) payload: {
              values:{
                  __gwt_ObjectId:5
              },
              operationConfig:{
                  dataSource:"animals",
                  operationType:"custom"
              },
              appID:"builtinApplication",
              operation:"downloadMultiple",
              oldValues:{
                  __gwt_ObjectId:5
              },
              exportToClient:true,
              criteria:{
              }
          }
          === 2012-04-21 02:22:32,050 [l0-2] INFO  IDACall - Performing 1 operation(s)
          Please help..

          Comment


            #6
            Looks like you're testing with Chrome Dev Mode again - please don't do that.

            Comment


              #7
              Oh, oops...
              Using Firefox dev mode is OK? Because I can see the same problem over there...

              Logs:
              Code:
              [WARN] Server class 'com.isomorphic.servlet.CompressionFilter' could not be found in the web app, but was found on the system classpath
                 [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/isomorphic_core_rpc.jar' to the web app classpath for this session
                 For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
              ISC: Configuring log4j from: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/workspace/builtinds2/war/WEB-INF/classes/log4j.isc.config.xml
              [WARN] Server class 'org.apache.commons.collections.map.LinkedMap' could not be found in the web app, but was found on the system classpath
                 [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/commons-collections-3.2.1.jar' to the web app classpath for this session
                 For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
              === 2012-04-21 09:56:11,769 [main] INFO  ISCInit - Isomorphic SmartClient Framework - Initializing
              === 2012-04-21 09:56:11,779 [main] INFO  ConfigLoader - Attempting to load framework.properties from CLASSPATH
              [WARN] Server class 'isc.org.apache.oro.text.perl.Perl5Util' could not be found in the web app, but was found on the system classpath
                 [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/isc-jakarta-oro-2.0.6.jar' to the web app classpath for this session
                 For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
              === 2012-04-21 09:56:11,867 [main] INFO  ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/isomorphic_core_rpc.jar!/framework.properties
              === 2012-04-21 09:56:11,867 [main] INFO  ConfigLoader - Attempting to load project.properties from CLASSPATH
              === 2012-04-21 09:56:11,869 [main] INFO  ConfigLoader - Unable to locate project.properties in CLASSPATH
              === 2012-04-21 09:56:11,872 [main] INFO  ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
              === 2012-04-21 09:56:11,872 [main] INFO  ConfigLoader - Attempting to load server.properties from CLASSPATH
              === 2012-04-21 09:56:11,874 [main] INFO  ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/workspace/builtinds2/war/WEB-INF/classes/server.properties
              === 2012-04-21 09:56:11,881 [main] INFO  Logger - Logging system started.
              === 2012-04-21 09:56:11,882 [main] INFO  ISCInit - Isomorphic SmartClient Framework (SC_SNAPSHOT-2011-12-05/EVAL Deployment 2011-12-05) - Initialization Complete
              === 2012-04-21 09:56:11,885 [main] INFO  ISCInit - Auto-detected webRoot - using: C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war
              [WARN] Server class 'com.isomorphic.compression.ServletCompression' could not be found in the web app, but was found on the system classpath
                 [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/isomorphic_compression.jar' to the web app classpath for this session
                 For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
              log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext).
              log4j:WARN Please initialize the log4j system properly.
              [WARN] Server class 'org.apache.commons.fileupload.FileItemFactory' could not be found in the web app, but was found on the system classpath
                 [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/commons-fileupload-1.2.1.jar' to the web app classpath for this session
                 For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
              === 2012-04-21 09:57:11,499 [l0-1] INFO  RequestContext - URL: '/builtinds/sc/DataSourceLoader', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; rv:10.0) Gecko/20100101 Firefox/10.0': Moz (Gecko) with Accept-Encoding header
              [WARN] Server class 'org.apache.commons.pool.impl.GenericKeyedObjectPool' could not be found in the web app, but was found on the system classpath
                 [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/commons-pool-1.4.jar' to the web app classpath for this session
                 For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
              === 2012-04-21 09:57:11,551 [l0-1] INFO  PoolManager - SmartClient pooling disabled for 'supplyItem' objects
              [WARN] Server class 'org.apache.commons.jxpath.AbstractFactory' could not be found in the web app, but was found on the system classpath
                 [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/commons-jxpath-1.3.jar' to the web app classpath for this session
                 For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
              === 2012-04-21 09:57:11,594 [l0-1] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\builtinTypes.xml: 8ms
              === 2012-04-21 09:57:11,602 [l0-2] INFO  Compression - /builtinds/sc/modules/ISC_Core.js: 705501 -> 182712 bytes
              === 2012-04-21 09:57:11,664 [l0-1] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\ds\supplyItem.ds.xml: 2ms
              === 2012-04-21 09:57:11,671 [l0-1] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\DataSource.ds.xml: 6ms
              [WARN] Server class 'org.apache.velocity.context.Context' could not be found in the web app, but was found on the system classpath
                 [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/velocity-1.6.1.jar' to the web app classpath for this session
                 For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
              === 2012-04-21 09:57:11,747 [l0-1] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\DataSourceField.ds.xml: 4ms
              [WARN] Server class 'com.isomorphic.sql.SQLDataSource' could not be found in the web app, but was found on the system classpath
                 [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/isomorphic_sql.jar' to the web app classpath for this session
                 For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
              === 2012-04-21 09:57:11,841 [l0-1] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\ds\animals.ds.xml: 2ms
              === 2012-04-21 09:57:11,848 [l0-1] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\OperationBinding.ds.xml: 3ms
              === 2012-04-21 09:57:11,877 [l0-1] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\ServerObject.ds.xml: 3ms
              === 2012-04-21 09:57:11,885 [l0-1] INFO  Compression - /builtinds/sc/DataSourceLoader: 719 -> 271 bytes
              === 2012-04-21 09:57:22,468 [l0-2] INFO  RequestContext - URL: '/builtinds/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; rv:10.0) Gecko/20100101 Firefox/10.0': Moz (Gecko) with Accept-Encoding header
              [WARN] Server class 'org.apache.commons.codec.net.URLCodec' could not be found in the web app, but was found on the system classpath
                 [WARN] Adding classpath entry 'file:/C:/Users/Ronen/Desktop/smartgwtee-3.0/smartgwtee-3.0/lib/commons-codec-1.3.jar' to the web app classpath for this session
                 For additional info see: file:/C:/Users/Ronen/Desktop/eclipse-java-indigo-SR1-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.relr37v201110112027/gwt-2.4.0/doc/helpInfo/webAppClassPath.html
              === 2012-04-21 09:57:22,499 [l0-2] DEBUG XML - Parsed XML from (in memory stream): 2ms
              === 2012-04-21 09:57:22,503 [l0-2] DEBUG XML - Parsed XML from C:\Users\Ronen\Desktop\eclipse-java-indigo-SR1-win32\workspace\builtinds2\war\builtinds\sc\system\schema\List.ds.xml: 2ms
              === 2012-04-21 09:57:22,508 [l0-2] DEBUG RPCManager - Processing 1 requests.
              === 2012-04-21 09:57:22,524 [l0-2] DEBUG RPCManager - Request #1 (DSRequest) payload: {
                  values:{
                  },
                  operationConfig:{
                      dataSource:"animals",
                      operationType:"custom"
                  },
                  appID:"builtinApplication",
                  operation:"downloadMultiple",
                  oldValues:{
                  },
                  exportToClient:true,
                  criteria:{
                  }
              }
              === 2012-04-21 09:57:22,528 [l0-2] INFO  IDACall - Performing 1 operation(s)

              Comment


                #8
                Firefox Dev mode is fine in general (it's only Chrome that has bugs) but for something like this, test in compiled mode. It's likely GWT hosted mode is interfering with the browser's ability to tell that the download is done.

                Comment


                  #9
                  Didn't work :(

                  Comment


                    #10
                    I will be very happy if you could help me... :)

                    Comment


                      #11
                      Originally posted by isosmart
                      I will be very happy if you could help me... :)
                      introduction of api which is not detailed enough

                      I don’t find a relevant example ,

                      ...

                      Comment

                      Working...
                      X