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_report_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+ask&LS_mode1=MERGE&LS_session=S2e23ccf16ec80a07T5514910&LS_Snapshot1=true&LS_window=1&LS_id1=EUR_USD+GBP_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.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.LineNumberReader.readLine(LineNumberReader.java:182)
at com.lightstreamer.adapters.remote.request_reply.NotifyReceiver.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.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.LineNumberReader.readLine(LineNumberReader.java:182)
at com.lightstreamer.adapters.remote.request_reply.NotifyReceiver.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.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.LineNumberReader.readLine(LineNumberReader.java:182)
at com.lightstreamer.adapters.remote.request_reply.NotifyReceiver.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.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.LineNumberReader.readLine(LineNumberReader.java:182)
at com.lightstreamer.adapters.remote.request_reply.NotifyReceiver.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