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:
The server:
The client:
Console (Smart logs):
I'm using SmartGWT EE 3.1d from the 10.4, and Chrome 18.0.1025.152m.
Thank you!
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>
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; } }
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()); } }
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
Thank you!
Comment