The client is not receiving any message sent by the server. Maybe something is wrong with my configuration? I am not getting any error message. Simply, nothing happens. The same when trying to reproduce your testcase (http://www.smartclient.com/smartgwte...ng_stock_chart), that's why I created a simple test case. Using 5.1-p20160327 power.
Testcase:
testingDS.ds.xml
TestingDMI:
Logs:
Testcase:
Code:
public class TestingModule implements EntryPoint {
Label l;
@Override
public void onModuleLoad() {
final VLayout vlayout = new VLayout();
IButton button = new IButton("go!");
button.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
Messaging.subscribe("testChannel", new MessagingCallback() {
@Override
public void execute(Object data) {
l.setTitle((String)data);
}
});
DataSource.get("testingDS").performCustomOperation("testMethod", new Record(), null);
}
});
vlayout.addMember(button);
l = new Label();
vlayout.addMember(l);
vlayout.draw();
}
}
Code:
<DataSource ID="testingDS" serverType="generic">
<operationBindings>
<operationBinding operationType="custom" operationId="testMethod">
<serverObject className="de.mks_infofabrik.kids.server.test.TestingDMI"
methodName="testMethod" />
</operationBinding>
</operationBindings>
</DataSource>
Code:
public class TestingDMI {
private static final Logger LOG = Utils.getLogger(TestingDMI.class);
public DSResponse testMethod(DSRequest dsRequest) throws Exception {
LOG.info("TestingDMI: ExecuteMethod()");
ISCMessageDispatcher dispatcher = ISCMessageDispatcher.instance();
for (int i = 0; i <= 500; i++) {
dispatcher.send(new ISCMessage("testChannel", "message " + i));
}
return new DSResponse();
}
}
Code:
=== 2016-03-30 16:20:14,608 [ec-1] INFO RequestContext - URL: '/kids-dev/V010405SNAPSHOT/sc/IDACall', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36': Safari with Accept-Encoding header
=== 2016-03-30 16:20:14,609 [ec-1] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: host:localhost:8080
=== 2016-03-30 16:20:14,609 [ec-1] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: connection:keep-alive
=== 2016-03-30 16:20:14,609 [ec-1] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: content-length:864
=== 2016-03-30 16:20:14,609 [ec-1] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: origin:http://localhost:8080
=== 2016-03-30 16:20:14,609 [ec-1] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: user-agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36
=== 2016-03-30 16:20:14,609 [ec-1] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: content-type:application/x-www-form-urlencoded; charset=UTF-8
=== 2016-03-30 16:20:14,609 [ec-1] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: accept:*/*
=== 2016-03-30 16:20:14,609 [ec-1] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: referer:http://localhost:8080/kids-dev/
=== 2016-03-30 16:20:14,609 [ec-1] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: accept-encoding:gzip, deflate
=== 2016-03-30 16:20:14,609 [ec-1] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: accept-language:de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4
=== 2016-03-30 16:20:14,609 [ec-1] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: cookie:JSESSIONID=CE35C9BA8A3FAE5085FA4A158DFE76B3; lastLoggedInUser=admin;GWT_LOCALE=de; human.version=1.4.5%20pre-release%20development%20version%2020160330-1418; isc_cState=ready; GLog=%7B%0A%20%20%20%20trackRPC%3Atrue%2C%20%0A%20%20%20%20isc_pageURL%3A%22http%3A//localhost%3A8080/kids-dev/%22%2C%20%0A%20%20%20%20isc_pageGUID%3A%22BB7BA66B-4B00-42BC-AD5A-A964F322EF8F%22%2C%20%0A%20%20%20%20priorityDefaults%3A%7B%0A%20%20%20%20%20%20%20%20sgwtInternal%3A1%0A%20%20%20%20%7D%2C%20%0A%20%20%20%20defaultPriority%3A3%2C%20%0A%20%20%20%20left%3A0%2C%20%0A%20%20%20%20top%3A23%2C%20%0A%20%20%20%20width%3A1918%2C%20%0A%20%20%20%20height%3A1045%0A%7D
=== 2016-03-30 16:20:14,609 [ec-1] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - session exists: CE35C9BA8A3FAE5085FA4A158DFE76B3
=== 2016-03-30 16:20:14,609 [ec-1] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - remote user: admin
=== 2016-03-30 16:20:14,630 [ec-1] DEBUG XML - Parsed XML from (in memory stream): 2ms
=== 2016-03-30 16:20:14,630 [ec-1] DEBUG ISCKeyedObjectPool - Borrowing object for 'transaction'
=== 2016-03-30 16:20:14,631 [ec-1] DEBUG PoolableDataSourceFactory - Tried to create DataSource of type 'transaction' but null was returned
=== 2016-03-30 16:20:14,631 [ec-1] DEBUG PoolableDataSourceFactory - Created DataSource null of type 'transaction' in the pooling flow
=== 2016-03-30 16:20:14,631 [ec-1] DEBUG ISCKeyedObjectPool - Borrowing object for 'Object'
=== 2016-03-30 16:20:14,631 [ec-1] DEBUG PoolableDataSourceFactory - Created DataSource 612 of type 'Object' and assigned it to thread http-nio-8080-exec-1
=== 2016-03-30 16:20:14,631 [ec-1] DEBUG PoolableDataSourceFactory - Created DataSource 612 of type 'Object' in the pooling flow
=== 2016-03-30 16:20:14,631 [ec-1] DEBUG PoolableDataSourceFactory - Activated DataSource 612 of type 'Object'
=== 2016-03-30 16:20:14,632 [ec-1] DEBUG ISCKeyedObjectPool - Borrowing object for 'List'
=== 2016-03-30 16:20:14,633 [ec-1] DEBUG XML - Parsed XML from /Users/eduardo/Documents/git/kids/kids/target/kids-1.4.5-SNAPSHOT/V010405SNAPSHOT/sc/system/schema/List.ds.xml: 1ms
=== 2016-03-30 16:20:14,633 [ec-1] DEBUG ISCKeyedObjectPool - Borrowing object for 'DataSource'
=== 2016-03-30 16:20:14,634 [ec-1] DEBUG PoolableDataSourceFactory - Created DataSource 613 of type 'DataSource' and assigned it to thread http-nio-8080-exec-1
=== 2016-03-30 16:20:14,634 [ec-1] DEBUG PoolableDataSourceFactory - Created DataSource 613 of type 'DataSource' in the pooling flow
=== 2016-03-30 16:20:14,634 [ec-1] DEBUG PoolableDataSourceFactory - Activated DataSource 613 of type 'DataSource'
=== 2016-03-30 16:20:14,635 [ec-1] DEBUG PoolableDataSourceFactory - Created DataSource 614 of type 'List' and assigned it to thread http-nio-8080-exec-1
=== 2016-03-30 16:20:14,635 [ec-1] DEBUG PoolableDataSourceFactory - Created DataSource 614 of type 'List' in the pooling flow
=== 2016-03-30 16:20:14,635 [ec-1] DEBUG PoolableDataSourceFactory - Activated DataSource 614 of type 'List'
=== 2016-03-30 16:20:14,635 [ec-1] DEBUG ISCKeyedObjectPool - Borrowing object for 'elem'
=== 2016-03-30 16:20:14,636 [ec-1] DEBUG PoolableDataSourceFactory - Tried to create DataSource of type 'elem' but null was returned
=== 2016-03-30 16:20:14,636 [ec-1] DEBUG PoolableDataSourceFactory - Created DataSource null of type 'elem' in the pooling flow
=== 2016-03-30 16:20:14,636 [ec-1] DEBUG RPCManager - Processing 1 requests.
=== 2016-03-30 16:20:14,636 [ec-1] DEBUG ISCKeyedObjectPool - Borrowing object for 'testingDS'
=== 2016-03-30 16:20:14,636 [ec-1] DEBUG PoolableDataSourceFactory - Activated DataSource 586 of type 'testingDS'
=== 2016-03-30 16:20:14,636 [ec-1] DEBUG DSRequest - Caching instance 586 of DS 'testingDS' from DSRequest.getDataSource()
=== 2016-03-30 16:20:14,637 [ec-1] DEBUG DSRequest - Caching instance 586 of DS testingDS
=== 2016-03-30 16:20:14,637 [ec-1] DEBUG RPCManager - Request #1 (DSRequest) payload: {
values:{
},
operationConfig:{
dataSource:"testingDS",
repo:null,
operationType:"custom",
textMatchStyle:"exact"
},
appID:"builtinApplication",
operation:"testMethod",
oldValues:{
},
criteria:{
}
}
=== 2016-03-30 16:20:14,637 [ec-1] INFO IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Performing 1 operation(s)
=== 2016-03-30 16:20:14,637 [ec-1] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
=== 2016-03-30 16:20:14,637 [ec-1] DEBUG DeclarativeSecurity - DataSource testingDS is not in the pre-checked list, processing...
=== 2016-03-30 16:20:14,643 [ec-1] INFO TestingDMI - TestingDMI: ExecuteMethod()
=== 2016-03-30 16:20:14,647 [ec-1] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
=== 2016-03-30 16:20:14,647 [ec-1] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
=== 2016-03-30 16:20:14,647 [ec-1] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
=== 2016-03-30 16:20:14,647 [ec-1] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
=== 2016-03-30 16:20:14,647 [ec-1] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
=== 2016-03-30 16:20:14,647 [ec-1] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
=== 2016-03-30 16:20:14,647 [ec-1] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
.........
.........
.........
=== 2016-03-30 16:20:14,654 [ec-1] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
=== 2016-03-30 16:20:14,654 [ec-1] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
=== 2016-03-30 16:20:14,654 [ec-1] DEBUG DSRequest - About to free up resources for request of type custom on DataSource testingDS
=== 2016-03-30 16:20:14,654 [ec-1] DEBUG DSRequest - Ignoring freeResources call because this is not a primary request!
=== 2016-03-30 16:20:14,654 [ec-1] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
=== 2016-03-30 16:20:14,654 [ec-1] DEBUG RPCManager - DMI response, dropExtraFields: false
=== 2016-03-30 16:20:14,657 [ec-1] DEBUG DSRequest - Ignoring freeQueueResources call because this is not a primary request!
=== 2016-03-30 16:20:14,657 [ec-1] INFO Compression - /kids-dev/V010405SNAPSHOT/sc/IDACall: 159 -> 142 bytes
Comment