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
Printable View
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
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
I was talking about .NET adapter log file, if any.
what is the adapter log file?
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
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());
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
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();
}
}
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).
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