Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Jul 2013
    Posts
    39

    GWT Demo problem

    I download & run GWTDemo for LS Colosseo - using JavaScript client 6.0. I get an error:

    com.google.gwt.core.client.JavaScriptException: (TypeError) @gwtdemo.client.LSGWTLightstreamerClient::createCl ient()([]): undefined is not a function

    I use GWT 2.5.1, JRE7, devmode.

    How to solve it? Thanks.

  2. #2
    Senior Member
    Join Date
    Jul 2013
    Posts
    39
    Sorry, my mistake. I use lightstreamer.js instead of lightstreamer_globals.js.

  3. #3
    Senior Member
    Join Date
    Jul 2013
    Posts
    39
    I got serveral errors:

    1. StatusWidget is not defined in initClient()
    ---> I just remove this code //thisSub.addListener(new StatusWidget("left", "0px", true));

    2. Subscription is not defined in initSubscription()
    ---> I modify this code mySub = new Subscription(subscriptionMode, itemList, fieldList);
    to mySub = new $wnd.Subscription(subscriptionMode, itemList, fieldList);

    3. Error "Please specify a valid field list" in initSubscription(). I don't know how to fix

    Here is my environment:
    Eclipse Juno SR2
    GWT 2.5.1
    JRE 7
    Devmode

    I compiled GWTDemo project successfully.

  4. #4
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi tvhnet2013,

    The "Please specify a valid field list" error is typical when the fieldList parameter is passed null or as a string instead of a vector.
    Please can you check the fieldList parameter passed to the Subscribtion constructor?

    Anyway, about the lighstreamer.js library can you confirm me that you have generated the library through the online generator or you have just copied and renamed the lightstreamer_global.js file included in the Lightstreamer distribution?

    Thank you.

  5. #5
    Senior Member
    Join Date
    Jul 2013
    Posts
    39
    Thanks,

    I solved the problem. In dev mode, String[] param cannot be auto cast to JsStringArray in JSNI.
    I just copy & rename the lightstreamer_global.js file included in the Lightstreamer distribution.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 03:10 AM.