Announcement

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

    Client not receiving messages from messaging module

    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:
    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();
    
        }
    
    }
    testingDS.ds.xml
    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>
    TestingDMI:
    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();
        }
    }
    Logs:
    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

    #2
    With the chrome developer tools (network) I see the following:
    Click image for larger version

Name:	Bildschirmfoto 2016-03-30 um 16.29.46.png
Views:	64
Size:	522.3 KB
ID:	236329

    Comment


      #3
      In Firefox
      Click image for larger version

Name:	Bildschirmfoto 2016-03-30 um 16.37.53.png
Views:	62
Size:	395.0 KB
ID:	236331

      Comment


        #4
        Ok, from Firebug I see a 404 message, so I changed:

        Code:
        [LIST][*]<servlet-mapping>[*]        <servlet-name>MessagingServlet</servlet-name>[*]        <url-pattern>/showcase/sc/messaging/*</url-pattern>[*]    </servlet-mapping>[/LIST]
        to
        Code:
        [LIST][*]<servlet-mapping>[*]        <servlet-name>MessagingServlet</servlet-name>[*]        <url-pattern>/showcase/sc/messaging*</url-pattern>[*]    </servlet-mapping>[/LIST]
        (omitted the last /)
        and now I don't get 404 messages.
        (Is this servlet definition incorrect in your testcase ?? http://www.smartclient.com/smartgwte...ng_stock_chart Further, I don't see any servlet definition for "examples/StockQuotes/generate?sp" in your testcase ... is this missing too?? )
        This servlet declaration (sc/messaging*) is not documented anywhere in the messaging module installation as far as I see, so I got it only from your showcase. Could you please document this?

        My logs after correcting this:
        Code:
        === 2016-03-30 16:48:57,353 [ec-7] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: host:localhost:8080
        === 2016-03-30 16:48:57,353 [ec-7] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: connection:keep-alive
        === 2016-03-30 16:48:57,353 [ec-7] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: content-length:864
        === 2016-03-30 16:48:57,353 [ec-7] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: origin:http://localhost:8080
        === 2016-03-30 16:48:57,353 [ec-7] 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:48:57,353 [ec-7] 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:48:57,354 [ec-7] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: accept:*/*
        === 2016-03-30 16:48:57,354 [ec-7] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: referer:http://localhost:8080/kids-dev/
        === 2016-03-30 16:48:57,354 [ec-7] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: accept-encoding:gzip, deflate
        === 2016-03-30 16:48:57,354 [ec-7] 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:48:57,354 [ec-7] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Header Name:Value pair: cookie:JSESSIONID=F46218A675B7E31CE602BFD0DC3AAEAE; lastLoggedInUser=admin; GWT_LOCALE=de; human.version=1.4.5%20pre-release%20development%20version%2020160330-1447; 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:48:57,354 [ec-7] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - session exists: F46218A675B7E31CE602BFD0DC3AAEAE
        === 2016-03-30 16:48:57,354 [ec-7] DEBUG IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - remote user: admin
        === 2016-03-30 16:48:57,371 [ec-7] DEBUG XML - Parsed XML from (in memory stream): 1ms
        === 2016-03-30 16:48:57,371 [ec-7] DEBUG ISCKeyedObjectPool - Borrowing object for 'transaction'
        === 2016-03-30 16:48:57,371 [ec-7] DEBUG PoolableDataSourceFactory - Tried to create DataSource  of type 'transaction' but null was returned
        === 2016-03-30 16:48:57,371 [ec-7] DEBUG PoolableDataSourceFactory - Created DataSource null of type 'transaction' in the pooling flow
        === 2016-03-30 16:48:57,372 [ec-7] DEBUG ISCKeyedObjectPool - Borrowing object for 'Object'
        === 2016-03-30 16:48:57,372 [ec-7] DEBUG PoolableDataSourceFactory - Created DataSource 612 of type 'Object' and assigned it to thread http-nio-8080-exec-7
        === 2016-03-30 16:48:57,372 [ec-7] DEBUG PoolableDataSourceFactory - Created DataSource 612 of type 'Object' in the pooling flow
        === 2016-03-30 16:48:57,372 [ec-7] DEBUG PoolableDataSourceFactory - Activated DataSource 612 of type 'Object'
        === 2016-03-30 16:48:57,372 [ec-7] DEBUG ISCKeyedObjectPool - Borrowing object for 'List'
        === 2016-03-30 16:48:57,373 [ec-7] 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:48:57,373 [ec-7] DEBUG ISCKeyedObjectPool - Borrowing object for 'DataSource'
        === 2016-03-30 16:48:57,374 [ec-7] DEBUG PoolableDataSourceFactory - Created DataSource 613 of type 'DataSource' and assigned it to thread http-nio-8080-exec-7
        === 2016-03-30 16:48:57,374 [ec-7] DEBUG PoolableDataSourceFactory - Created DataSource 613 of type 'DataSource' in the pooling flow
        === 2016-03-30 16:48:57,374 [ec-7] DEBUG PoolableDataSourceFactory - Activated DataSource 613 of type 'DataSource'
        === 2016-03-30 16:48:57,376 [ec-7] DEBUG PoolableDataSourceFactory - Created DataSource 614 of type 'List' and assigned it to thread http-nio-8080-exec-7
        === 2016-03-30 16:48:57,376 [ec-7] DEBUG PoolableDataSourceFactory - Created DataSource 614 of type 'List' in the pooling flow
        === 2016-03-30 16:48:57,376 [ec-7] DEBUG PoolableDataSourceFactory - Activated DataSource 614 of type 'List'
        === 2016-03-30 16:48:57,376 [ec-7] DEBUG ISCKeyedObjectPool - Borrowing object for 'elem'
        === 2016-03-30 16:48:57,376 [ec-7] DEBUG PoolableDataSourceFactory - Tried to create DataSource  of type 'elem' but null was returned
        === 2016-03-30 16:48:57,376 [ec-7] DEBUG PoolableDataSourceFactory - Created DataSource null of type 'elem' in the pooling flow
        === 2016-03-30 16:48:57,376 [ec-7] DEBUG RPCManager - Processing 1 requests.
        === 2016-03-30 16:48:57,376 [ec-7] DEBUG ISCKeyedObjectPool - Borrowing object for 'testingDS'
        === 2016-03-30 16:48:57,376 [ec-7] DEBUG PoolableDataSourceFactory - Activated DataSource 586 of type 'testingDS'
        === 2016-03-30 16:48:57,377 [ec-7] DEBUG DSRequest - Caching instance 586 of DS 'testingDS' from DSRequest.getDataSource()
        === 2016-03-30 16:48:57,377 [ec-7] DEBUG DSRequest - Caching instance 586 of DS testingDS
        === 2016-03-30 16:48:57,377 [ec-7] 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:48:57,377 [ec-7] INFO  IDACall - Key[type=com.isomorphic.servlet.IDACall, annotation=[none]] - Performing 1 operation(s)
        === 2016-03-30 16:48:57,378 [ec-7] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
        === 2016-03-30 16:48:57,378 [ec-7] DEBUG DeclarativeSecurity - DataSource testingDS is not in the pre-checked list, processing...
        === 2016-03-30 16:48:57,383 [ec-7] INFO  TestingDMI - TestingDMI: ExecuteMethod()
        === 2016-03-30 16:48:57,384 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,384 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,384 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,384 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,384 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,384 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        ...
        ...
        ...
        === 2016-03-30 16:48:57,396 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,396 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,396 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,396 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,396 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,396 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,396 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,396 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,396 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,396 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,396 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,396 [ec-7] DEBUG ISCMessageDispatcher - sending message to channel: testChannel
        === 2016-03-30 16:48:57,396 [ec-7] DEBUG DSRequest - About to free up resources for request of type custom on DataSource testingDS
        === 2016-03-30 16:48:57,396 [ec-7] DEBUG DSRequest - Ignoring freeResources call because this is not a primary request!
        === 2016-03-30 16:48:57,397 [ec-7] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
        === 2016-03-30 16:48:57,397 [ec-7] DEBUG RPCManager - DMI response, dropExtraFields: false
        === 2016-03-30 16:48:57,406 [ec-7] DEBUG DSRequest - Ignoring freeQueueResources call because this is not a primary request!
        === 2016-03-30 16:48:57,406 [ec-7] INFO  Compression - /kids-dev/V010405SNAPSHOT/sc/IDACall: 159 -> 142 bytes
        === 2016-03-30 16:49:12,273 [izer] DEBUG SQLDataSource - About to clear SQLDriver state for DS instance 299 from Finalizer
        === 2016-03-30 16:49:12,274 [izer] DEBUG SQLDataSource - About to clear SQLDriver state for DS instance 294 from Finalizer
        === 2016-03-30 16:49:12,274 [izer] DEBUG SQLDriver - Freeing SQLDriver dbConnection 1092876276 for SQLDriver instance 630945482
        === 2016-03-30 16:49:12,274 [izer] DEBUG SQLConnectionManager - About to close connection with hashcode "1092876276"
        === 2016-03-30 16:49:12,274 [izer] DEBUG PoolableSQLConnectionFactory - Passivating connection '1092876276

        Comment


          #5
          Chrome screenshot after correcting this: (Still, the client not getting any message)
          Click image for larger version

Name:	Bildschirmfoto 2016-03-30 um 16.50.45.png
Views:	74
Size:	148.3 KB
ID:	236335


          Firefox screenshot after correcting this:
          Click image for larger version

Name:	Bildschirmfoto 2016-03-30 um 16.51.15.png
Views:	73
Size:	118.8 KB
ID:	236336

          Comment


            #6
            ok, now it seems to work if I change the messaging callback to:
            Code:
            Messaging.subscribe("testChannel", new MessagingCallback() {  
                        @Override  
                        public void execute(Object data) {  
                            l.setContents((String)data);
                        }  
                    });
            Still, this seems to be wrong in your showcase:

            Originally posted by edulid View Post
            Ok, from Firebug I see a 404 message, so I changed:

            Code:
            [LIST][*]<servlet-mapping>[*] <servlet-name>MessagingServlet</servlet-name>[*] <url-pattern>/showcase/sc/messaging/*</url-pattern>[*] </servlet-mapping>[/LIST]
            to
            Code:
            [LIST][*]<servlet-mapping>[*] <servlet-name>MessagingServlet</servlet-name>[*] <url-pattern>/showcase/sc/messaging*</url-pattern>[*] </servlet-mapping>[/LIST]
            (omitted the last /)
            and now I don't get 404 messages.
            (Is this servlet definition incorrect in your testcase ?? http://www.smartclient.com/smartgwte...ng_stock_chart Further, I don't see any servlet definition for "examples/StockQuotes/generate?sp" in your testcase ... is this missing too?? )
            This servlet declaration (sc/messaging*) is not documented anywhere in the messaging module installation as far as I see, so I got it only from your showcase. Could you please document this?

            Comment


              #7
              The Showcase setting is obviously working. If your server isn't mapping a request to "..../messaging?..." to a servlet registered for "messaging/*" then maybe you have some kind of filter servlet also installed that is intercepting such requests.

              Comment


                #8
                The source for the StockQuotesServlet from the sample is available if you press the View Source button.

                Comment


                  #9
                  Originally posted by Isomorphic View Post
                  The source for the StockQuotesServlet from the sample is available if you press the View Source button.
                  The source is available, yes, but the registration of "examples/StockQuotes/generate?sp"?
                  Where is the redirect of this request to StockQuotesServlet?

                  Comment


                    #10
                    It's true that the registration is not shown when you View Source, which is just an accidental omission - we'll check on that. But there's no mystery functionality here, it's just an ordinary servlet registration, no special redirects or anything of the kind.

                    Comment


                      #11
                      So it is also possible that the correct url-pattern is
                      "/showcase/sc/messaging*" and not "/showcase/sc/messaging/*"? I ask because I don't have any special filters or anything similar and I have to put "/showcase/sc/messaging*" instead of "/showcase/sc/messaging/*" and also "/sc/IDACall* instead of "/sc/IDACall/*" .

                      If the source of your showcase does not reflect 100% the code seen by "view source" (as I suspect because of the missing servlet registration and the showcase still working despite of this), then could you please also check this?

                      Comment


                        #12
                        We already have, but you also have the source itself and are not limited by the View Source interface, so you can convince yourself without our help as well.

                        Comment


                          #13
                          Note we've now fixed the problem that was causing the StockQuotesServlet not to show up in the web.xml file accessible via View Source.

                          Comment

                          Working...
                          X