Results 1 to 4 of 4
  1. #1

    subscription.setCommandSecondLevelDataAdapter throwing dataAdapter is not defined err

    I have a commandDataAdapter and a itemDataAdapter.

    I am able to easily subscribe to my commandDataAdapter , but when I add the second level data adapter for my itemDataAdapter I am getting a lineNumber: 2619 columnNumber: 403: dataAdapter is not defined. On the Client Side.

    However, in the server logs the itemDataAdapter is properly loaded, and is not showing any logging around a failed look-up on the server side.

    Log Entry Line: Finished loading Data Adapter MyAppAdapterSet.itemDataAdapter

    I have verified everything is subscribing off the name param set in the adapters.xml for the item data adapter.

    I have simply wrapped GWT functions around the JS Subscribe setCommandSecondLevelDataAdapter/Fields.

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    541
    First, please could you exclude that the dataAdapter is a JavaScript variable that has never been declared or declared with some typo (ie some mismatching between Java and JavaScript portion of code)?

    Second, please could you confirm that commandDataAdapter and a itemDataAdapter belong to the same Adapter Set. If this is not the case the issue should be caused by this.

    Otherwise, please could you repeat the test after raising to DEBUG level these logger:

    Code:
    <logger name="LightstreamerLogger.subscriptions" level="DEBUG"/>
    <logger name="LightstreamerLogger.requests" level="DEBUG"/>
    and post here a snippet of server log including your subscription?

    Thank you.

  3. #3
    I apologize. I found a copy/paste error in my native setNativeCommandSecondLevelDataAdapter were the data adapter paramater name was not the same variable name as being passed to the JS setCommandSecondLevelDataAdapter... and since I was in native function the compiler didn't catch that I was using a variable name which was never defined.

  4. #4
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    541
    Ok.
    Thank you for the feedback.

 

 

Similar Threads

  1. Replies: 0
    Last Post: February 4th, 2013, 04:02 PM
  2. Replies: 1
    Last Post: January 31st, 2011, 08:47 AM
  3. Replies: 1
    Last Post: October 21st, 2009, 11:19 AM
  4. Pre-Processor Snapshot vs DataAdapter Snapshot
    By sukhdev in forum Adapter APIs
    Replies: 3
    Last Post: August 1st, 2007, 09:44 AM

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 01:46 PM.