Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29
  1. #11
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Hi,

    could you please confirm that you are still using the SDK for .NET Adapter version 1.7 on remote side?
    Is there any chance to get the log file of remote adapters?

    Thanks
    Gianluca

  2. #12
    Senior Member
    Join Date
    Aug 2014
    Posts
    71
    i attach the log file to the previous post
    http://www.mediafire.com/download/q1...htstreamer.log

    now, i use the version 1.7 with the edit in config. you said

  3. #13
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    I was talking about .NET adapter log file, if any.

  4. #14
    Senior Member
    Join Date
    Aug 2014
    Posts
    71
    what is the adapter log file?

  5. #15
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Hi,

    the log you sent us is full of issues due to "notifyUser" invocation, as follows:

    20-أبر-15 11:38:42,170|ERROR|LightstreamerLogger.requests |ET DataPool POOLED THREAD 3|Unexpected error in notifyUser: Timeout while waiting for an answer to request 30000014cd5fa8421:

    Do you have any chance to monitor such invocation on .NET adapter? Is your notifyUser somehow related to any external system which could provoke any timeouts?

    Regards,
    Gianluca

  6. #16
    Senior Member
    Join Date
    Aug 2014
    Posts
    71
    i can't understand you
    my problem is in connection to LS despite the port 8080 is opened
    the exception is in client1.OpenConnection() :
    An unhandled exception of type 'Lightstreamer.DotNet.Client.PushConnException' occurred in DotNetClient_N2.dll


    Additional information: The remote server returned an error: (500) Internal Server Error.


    this is the code for connecting:

    ConnectionInfo _cInfo = new ConnectionInfo();
    _cInfo.PushServerUrl = "http://localhost:8080";
    _cInfo.Adapter = "DataPool";


    LSClient client1 = new LSClient();
    client1.OpenConnection(_cInfo, new Tabee3ConnectionListener());
    Last edited by engcoder; April 21st, 2015 at 01:13 PM.

  7. #17
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Hi,

    the (500) Internal Server Error is due to a communication problem between Lightstreamer Server instance and the remote .NET Adapter.
    The .NET Adapter is experiencing an issue in notifyUser method, remotely invoked by the Lightstreamer Server, which in turn raises an Internal Error.
    Probably you have overridden the notifyUser method in your Adapter to perform some authentication logic and there a problem occurs.

    Please verify that logic and get back to us.

    Regards,
    Gianluca

  8. #18
    Senior Member
    Join Date
    Aug 2014
    Posts
    71
    hello,
    my adapter was working well at LS version 5.2
    but why now gives that Exception

    this is the adapter class

    Code:
        class IntraDayAdapterUpdate : LiteralBasedProvider, IDataProvider
        {
    
    
            private IItemEventListener _listener;
    
    
            public void Init(System.Collections.IDictionary parameters, string configFile)
            {
          
            }
    
    
            public bool IsSnapshotAvailable(string itemName)
            {
                //throw new NotImplementedException();
                return true;
            }
    
    
            public void SetListener(IItemEventListener eventListener)
            {
        
                if (Intraday._listener == null)
                    Intraday._listener = eventListener;
            }
    
    
            Intraday obj;
            public void Subscribe(string itemName)
            {
    
    
        
            }
    
    
            public void Unsubscribe(string itemName)
            {
    
            }
    
    
    
    
    
    
    
    
    
    
     
       
            public void NotifyNewSession(string user, string sessionID, IDictionary clientContext)
            {
                 
            }
    
    
            public void NotifyNewTables(string user, string sessionID, TableInfo[] tables)
            {
                
            }
    
    
            public void NotifySessionClose(string sessionID)
            {
                
            }
    
    
            public void NotifyTablesClose(string sessionID, TableInfo[] tables)
            {
                 
            }
    
    
            public void NotifyUser(string user, string password, IDictionary httpHeaders, string clientPrincipal)
            {
                 
            }
    
    
            public void NotifyUser(string user, string password, IDictionary httpHeaders)
            {
                
            }
    
    
    
    
            public override string[] GetItems(string user, string sessionID, string itemList)
            {
                    return itemList.Split(' ');
            }
    
    
    
    
    
    
            public static SqlConnection conn = new SqlConnection(@"Data Source=212.70.49.113\MicroT;Initial Catalog=StockMarket;User ID=sa;Password=McdcT@#935");
            bool _valid = false;
            public override void NotifyUserMessage(string user, string sessionID, string message)
            {
                try
                {
                 
    
    
                    MyEncryptor enc = new MyEncryptor();
                    string[] arr = message.Split(';');
                    string _user = arr[0];
                    string _pass = arr[1];
                    string _key = arr[2];
    
    
                
    
                        bool _found = false;
                        for (int i = 0; i < Intraday._userkeys.Count; i++)
                        {
                            if (Intraday._userkeys[i] == _key)
                            {
                                _found = true;
                               
                                break;
                            }
                        }
    
    
                        if (!_found)
                        {
                            Intraday._userkeys.Add(_key);
                           
                        }
    
    
                      
                    }
                }
                catch { }
            }
    
    
            public bool WantsTablesNotification(string user)
            {
                throw new NotImplementedException();
            }
        }

  9. #19
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    This is really puzzling, as the Proxy Adapters for Server 6.0 with "init_remote" configured to false should behave exactly like the Proxy Adapters for Server 5.1.2, so nothing was supposed to change for the remote part.
    Since the remote NotifyUser is empty and cannot be responsible for delaying the response, we must find some error message in the log of the remote process.

    Do you see anything in the remote process console?
    Perhaps we have to configure the log properly.
    As a preliminary step, please clarify if you run the Remote Metadata Adapter by taking advantage of the supplied DotNetServer_N2.exe or if you use a custom executable (possibly based on the supplied "StandaloneLauncher.cs" example).

  10. #20
    Senior Member
    Join Date
    Aug 2014
    Posts
    71
    i can't understand your question about the remote metadata adapter
    no thing clear to me other the exception of the connection to LS
    and that was working well at the version 5.2

 

 

Similar Threads

  1. Replies: 7
    Last Post: April 20th, 2015, 10:10 AM
  2. Replies: 3
    Last Post: March 5th, 2011, 12:35 AM
  3. How to let Data and Metadata Adapters comunicate
    By CitiMan in forum Adapter SDKs
    Replies: 4
    Last Post: November 21st, 2008, 06:24 PM
  4. speed up initial loading
    By rd2008 in forum General
    Replies: 1
    Last Post: November 20th, 2008, 10:32 AM
  5. Accessing multiple adapters
    By Waddy in forum General
    Replies: 2
    Last Post: March 16th, 2007, 07:06 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 08:39 PM.