Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Dec 2008
    Location
    Saddle River
    Posts
    3

    Connection reset error

    Hello,

    I developed a .NET DataAdapter following examples from both the HelloWorld and StockListDemo projects.

    I configured everything correctly (I think). The LS server starts, and my proxy adapter is listening for connections. Everything runs on the localhost.

    The data adapter connects successfully and then the client subscribes for items. The data adapter retrieves the data from an external source and raises the Update event.

    Here, the error happens and the LS server throws. Below is the log. I cannot figure it out - would you please help me by pointing out what I am missing? Thanks in advance.

    ----

    06-Jan-09 17:54:43,502 |INFO |LightstreamerLogger.license |main |This is a trial version.
    06-Jan-09 17:54:43,518 |TRACE|LightstreamerLogger.license |main |Connecting to license server app.lightstreamer.com
    06-Jan-09 17:54:43,581 |TRACE|LightstreamerLogger.license |main |Waiting for an answer from license server
    06-Jan-09 17:54:44,487 |TRACE|LightstreamerLogger.license |main |Checking answer from license server
    06-Jan-09 17:54:44,487 |INFO |LightstreamerLogger.init |main |Lightstreamer Server starting in Vivace edition
    06-Jan-09 17:54:44,502 |INFO |LightstreamerLogger.init |main |Started HTML Adaptor for JMX on port 6666
    06-Jan-09 17:54:44,518 |INFO |LightstreamerLogger.init |main |Started JMXMP Connector for JMX on port 9999
    06-Jan-09 17:54:44,565 |INFO |LightstreamerLogger.init |Init for DEMO |Loading Metadata Adapter DEMO
    06-Jan-09 17:54:44,565 |INFO |LightstreamerLogger.init |Init for DEMO.MONITOR |Loading Data Adapter DEMO.MONITOR
    06-Jan-09 17:54:44,565 |INFO |LightstreamerLogger.init |Init for DEMO.CHAT_ROOM |Loading Data Adapter DEMO.CHAT_ROOM
    06-Jan-09 17:54:44,565 |INFO |LightstreamerLogger.init | for DEMO.PORTFOLIO_ADAPTER|Loading Data Adapter DEMO.PORTFOLIO_ADAPTER
    06-Jan-09 17:54:44,565 |INFO |LightstreamerLogger.init |Init for PROXY_FX |Loading Metadata Adapter PROXY_FX
    06-Jan-09 17:54:44,565 |INFO |LightstreamerLogger.init |Init for DEMO.MONITOR |Finished loading Data Adapter DEMO.MONITOR
    06-Jan-09 17:54:44,565 |INFO |LightstreamerLogger.init |Init for DEMO.QUOTE_ADAPTER|Loading Data Adapter DEMO.QUOTE_ADAPTER
    06-Jan-09 17:54:44,565 |INFO |LightstreamerLogger.init |t for DEMO.SIMPLE_MESSENGER|Loading Data Adapter DEMO.SIMPLE_MESSENGER
    06-Jan-09 17:54:44,565 |INFO |LightstreamerLogger.init |it for PROXY_FX.GTS_ADAPTER|Loading Data Adapter PROXY_FX.GTS_ADAPTER
    06-Jan-09 17:54:44,581 |INFO |LightstreamerLogger.init |Init for PROXY_FX |Finished loading Metadata Adapter PROXY_FX
    06-Jan-09 17:54:44,581 |INFO |htstreamerLogger.MessengerAdapter|t for DEMO.SIMPLE_MESSENGER|IMDataAdapter ready
    06-Jan-09 17:54:44,581 |INFO |LightstreamerLogger.init |t for DEMO.SIMPLE_MESSENGER|Finished loading Data Adapter DEMO.SIMPLE_MESSENGER
    06-Jan-09 17:54:44,596 |INFO |LightstreamerLogger.ChatAdapter |Init for DEMO.CHAT_ROOM |ChatDataAdapter ready
    06-Jan-09 17:54:44,596 |INFO |LightstreamerLogger.init |Init for DEMO.CHAT_ROOM |Finished loading Data Adapter DEMO.CHAT_ROOM
    06-Jan-09 17:54:44,596 |INFO |LightstreamerLogger.Portfolio | for DEMO.PORTFOLIO_ADAPTER|PortfolioDataAdapter ready
    06-Jan-09 17:54:44,596 |INFO |LightstreamerLogger.init | for DEMO.PORTFOLIO_ADAPTER|Finished loading Data Adapter DEMO.PORTFOLIO_ADAPTER
    06-Jan-09 17:54:44,596 |INFO |reamerLogger.MixedMetadataAdapter|Init for DEMO |MixedMetadataAdapter ready
    06-Jan-09 17:54:44,596 |INFO |LightstreamerLogger.init |Init for DEMO |Finished loading Metadata Adapter DEMO
    06-Jan-09 17:54:44,596 |INFO |LightstreamerLogger.init |Init for DEMO.QUOTE_ADAPTER|Finished loading Data Adapter DEMO.QUOTE_ADAPTER
    06-Jan-09 17:54:44,596 |INFO |.remote.transport.SocketTransport|it for PROXY_FX.GTS_ADAPTER|Connecting...
    06-Jan-09 17:54:44,596 |INFO |.remote.transport.SocketTransport|Notify Socket Connector |Waiting for a connection on port 6664...
    06-Jan-09 17:54:44,596 |INFO |.remote.transport.SocketTransport|uest/Reply Socket Connector|Waiting for a connection on port 6663...
    06-Jan-09 17:55:06,253 |INFO |.remote.transport.SocketTransport|uest/Reply Socket Connector|Connected on port 6663
    06-Jan-09 17:55:06,253 |INFO |.remote.transport.SocketTransport|Notify Socket Connector |Connected on port 6664
    06-Jan-09 17:55:06,253 |INFO |.remote.transport.SocketTransport|it for PROXY_FX.GTS_ADAPTER|Connected
    06-Jan-09 17:55:06,253 |INFO |LightstreamerLogger.init |it for PROXY_FX.GTS_ADAPTER|Finished loading Data Adapter PROXY_FX.GTS_ADAPTER
    06-Jan-09 17:55:06,284 |INFO |LightstreamerLogger.init |main |Pump pool size set by default at 4
    06-Jan-09 17:55:06,316 |INFO |mote.request_reply.NotifyReceiver|#1 Notify Receiver |Notify receiver '#1' starting...
    06-Jan-09 17:55:06,316 |INFO |emote.request_reply.RequestSender|#1 Request Sender |Request sender '#1' starting...
    06-Jan-09 17:55:06,316 |INFO |mote.request_reply.NotifyReceiver|#1 Reply Receiver |Reply receiver '#1' starting...
    06-Jan-09 17:55:06,316 |INFO |LightstreamerLogger.init |main |Events pool size set by default at 4
    06-Jan-09 17:55:06,316 |INFO |LightstreamerLogger.init |main |Lightstreamer Server 3.5 build 1422 starting...
    06-Jan-09 17:55:06,347 |INFO |LightstreamerLogger.init |main |Server "Lightstreamer HTTP Server" listening to *:8080 ...
    06-Jan-09 17:55:14,550 |INFO |LightstreamerLogger.connections |SERVER POOLED THREAD 1 |Accepted HTTP connection on Lightstreamer HTTP Server from 127.0.0.1:2492
    06-Jan-09 17:55:14,894 |TRACE|LightstreamerLogger.connections |SERVER POOLED THREAD 2 |Processing push request:
    /lightstreamer/create_session.txt from 127.0.0.1:2492
    06-Jan-09 17:55:14,894 |INFO |LightstreamerLogger.requests |SERVER POOLED THREAD 2 |Serving request: /lightstreamer/create_session.txt?LS_content_length=50000000&LS_r eport_info=true&LS_adapter=PROXY_FX from 127.0.0.1:2492
    06-Jan-09 17:55:14,925 |INFO |LightstreamerLogger.requests |SERVER POOLED THREAD 2 |Starting new session: S2e23ccf16ec80a07T5514910 from 127.0.0.1:2492
    06-Jan-09 17:55:14,925 |TRACE|LightstreamerLogger.push |SERVER POOLED THREAD 2 |RELEASING DATA --> HTTP/1.0 200 OK
    Date: Tue, 6 Jan 2009 22:55:14 GMT
    Server: Lightstreamer/3.5 build 1422 (Lightstreamer Push Server - www.lightstreamer.com) Vivace edition
    Content-Type: text/plain; charset=iso-8859-1
    Cache-Control: no-store
    Cache-Control: no-cache
    Pragma: no-cache
    Expires: Thu, 1 Jan 1970 00:00:00 GMT
    Content-Length: 50000000
    Connection: close

    OK
    SessionId:S2e23ccf16ec80a07T5514910
    KeepaliveMillis:2000
    MaxBandwidth:0.0
    RequestLimit:50000
    ServerName:Lightstreamer HTTP Server


    06-Jan-09 17:55:16,925 |TRACE|LightstreamerLogger.push |PUMP POOLED THREAD 3 |RELEASING DATA --> PROBE

    06-Jan-09 17:55:17,941 |INFO |LightstreamerLogger.connections |SERVER POOLED THREAD 3 |Accepted HTTP connection on Lightstreamer HTTP Server from 127.0.0.1:2501
    06-Jan-09 17:55:17,941 |TRACE|LightstreamerLogger.connections |SERVER POOLED THREAD 3 |Processing push request:
    /lightstreamer/control.txt from 127.0.0.1:2501
    06-Jan-09 17:55:17,941 |INFO |LightstreamerLogger.requests |SERVER POOLED THREAD 3 |Serving request: /lightstreamer/control.txt?LS_op=add&LS_schema1=stock_name+bid+as k&LS_mode1=MERGE&LS_session=S2e23ccf16ec80a07T5514 910&LS_Snapshot1=true&LS_window=1&LS_id1=EUR_USD+G BP_USD&LS_data_adapter1=GTS_ADAPTER from 127.0.0.1:2501
    06-Jan-09 17:55:17,956 |INFO |LightstreamerLogger.requests |SERVER POOLED THREAD 3 |Controlling session: S2e23ccf16ec80a07T5514910 from 127.0.0.1:2501
    06-Jan-09 17:55:17,972 |INFO |LightstreamerLogger.connections |SERVER POOLED THREAD 5 |Closed HTTP connection on Lightstreamer HTTP Server from 127.0.0.1:2501
    06-Jan-09 17:55:18,019 |FATAL|rs.remote.data.RemoteDataProvider|#1 Notify Receiver |I/O Exception caught while reading/writing from/to streams: Connection reset, aborting...
    java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream. java:168)
    at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.j ava:264)
    at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.ja va:306)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:1 58)
    at java.io.InputStreamReader.read(InputStreamReader.j ava:167)
    at java.io.BufferedReader.fill(BufferedReader.java:13 6)
    at java.io.BufferedReader.readLine(BufferedReader.jav a:299)
    at java.io.LineNumberReader.readLine(LineNumberReader .java:182)
    at com.lightstreamer.adapters.remote.request_reply.No tifyReceiver.run(NotifyReceiver.java:63)
    06-Jan-09 17:55:18,019 |FATAL|rs.remote.data.RemoteDataProvider|#1 Reply Receiver |I/O Exception caught while reading/writing from/to streams: Connection reset, aborting...
    java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream. java:168)
    at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.j ava:264)
    at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.ja va:306)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:1 58)
    at java.io.InputStreamReader.read(InputStreamReader.j ava:167)
    at java.io.BufferedReader.fill(BufferedReader.java:13 6)
    at java.io.BufferedReader.readLine(BufferedReader.jav a:299)
    at java.io.LineNumberReader.readLine(LineNumberReader .java:182)
    at com.lightstreamer.adapters.remote.request_reply.No tifyReceiver.run(NotifyReceiver.java:63)
    06-Jan-09 17:55:18,019 |ERROR|LightstreamerLogger.subscriptions|#1 Notify Receiver |Failure invoked by Data Adapter
    java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream. java:168)
    at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.j ava:264)
    at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.ja va:306)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:1 58)
    at java.io.InputStreamReader.read(InputStreamReader.j ava:167)
    at java.io.BufferedReader.fill(BufferedReader.java:13 6)
    at java.io.BufferedReader.readLine(BufferedReader.jav a:299)
    at java.io.LineNumberReader.readLine(LineNumberReader .java:182)
    at com.lightstreamer.adapters.remote.request_reply.No tifyReceiver.run(NotifyReceiver.java:63)
    06-Jan-09 17:55:18,019 |ERROR|LightstreamerLogger.subscriptions|#1 Reply Receiver |Failure invoked by Data Adapter
    java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream. java:168)
    at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.j ava:264)
    at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.ja va:306)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:1 58)
    at java.io.InputStreamReader.read(InputStreamReader.j ava:167)
    at java.io.BufferedReader.fill(BufferedReader.java:13 6)
    at java.io.BufferedReader.readLine(BufferedReader.jav a:299)
    at java.io.LineNumberReader.readLine(LineNumberReader .java:182)
    at com.lightstreamer.adapters.remote.request_reply.No tifyReceiver.run(NotifyReceiver.java:63)
    06-Jan-09 17:55:18,019 |FATAL|LightstreamerLogger.init |#1 Notify Receiver |Failure in a Data Adapter
    06-Jan-09 17:55:18,019 |INFO |LightstreamerLogger.init |#1 Notify Receiver |Exiting.....
    06-Jan-09 17:55:18,019 |FATAL|LightstreamerLogger.init |#1 Reply Receiver |Failure in a Data Adapter
    06-Jan-09 17:55:18,019 |INFO |LightstreamerLogger.init |#1 Reply Receiver |Exiting.....
    06-Jan-09 17:55:18,925 |TRACE|LightstreamerLogger.push |PUMP POOLED THREAD 1 |RELEASING DATA --> PROBE

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    hi,

    it seems that the connection between the LS server and the remote adapter is broken.
    Is it possible that there are connectivity problems between the server and the adapter?

    Please also check RobustNetworkedDataProvider

  3. #3
    Member
    Join Date
    Dec 2008
    Location
    Saddle River
    Posts
    3

    Exception: Found value '1.3605' of an unsupported type while building a UD3 request

    Mone,

    Thanks for your suggestion. I used the proxy adapter you mentioned, it gets me a little further but still there is something missing.

    The LS server starts fine, the Data Adapter loads fine, (I am using the default "com.lightstreamer.adapters.metadata.LiteralBasedP rovider" meta data adapter).

    I them start-up an external feed, which is hosted in a Console App using the StandaloneLauncher sample in the StockListDemo sample. The feed starts fine and LS shows connection established.

    When I start-up a client, it connects, but then I get an exception in the StandaloneLauncher.cs, in the following code:

    public bool handleException(Exception exception) {
    if (! _closed) {
    _log.Error("Caught exception: " + exception.Message, exception);
    _server.Close();
    System.Environment.Exit(1);
    }
    return false;
    }

    The exception reads: Found value '1.3605' of an unsupported type while building a UD3 request

    I believe I am still missing some settings, maybe I cannot use the LiteralBasedProvider fir the meta data adapter? Please advise.

    Thanks a lot,

    GS

  4. #4
    Member
    Join Date
    Dec 2008
    Location
    Saddle River
    Posts
    3

    Use string data type instead of double

    I found the issue:

    In my external feed I was sending out prices as double, and LS doesn't like it. Changed it to strings and everything works fine. The following thread was helpful:

    http://www.lightstreamer.com/vb/showthread.php?t=310

    Thanks,

    GS

  5. #5
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    I'm glad you found the issue.
    Thanks for sharing your solution.

 

 

Similar Threads

  1. Reset DynaMetapushTable
    By garyj in forum Adapter SDKs
    Replies: 1
    Last Post: March 25th, 2008, 09:03 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 10:56 PM.
Lightstreamer Logo