-
April 21st, 2010, 06:20 AM
#1
<ERROR> Failure invoked by Data Adapter
I use lighstreamer with Socket Programming. I put lightstreamer on Windows and it work fine.
Now we have change server to Linux. Everything is going fine, until I send item with code minus "-", like TMPI-W. Server suddenly stop with Error Warning below :
------------------------------------------------------
21.Apr.10 11:49:46,274 < WARN> Received Remote Server message: '0|S|stock_name|S|TMPI-W|S|last_price|S|2375|S|time|S|11:50:43|S|pct_chan ge|S|0|S|bid_quantity|S|52529|S|bid|S|2350|S|ask|S |2375|S|ask_quantity|S|874|S|min|S|2375|S|max|S|24 25|S|ref_price|S|2386.57|S|open_price|S|2425'
21.Apr.10 11:49:50,270 <ERROR> Failure invoked by Data Adapter
com.lightstreamer.adapters.remote.RemotingExceptio n: Exception caught while reading from the notify stream: null
at com.lightstreamer.adapters.remote.request_reply.No tifyReceiver.run(NotifyReceiver.java:93)
Caused by: java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(StringTokenize r.java:332)
at com.lightstreamer.adapters.remote.data.DataProvide rProtocol.readUpdateByMap(DataProviderProtocol.jav a:612)
at com.lightstreamer.adapters.remote.data.RemoteDataP rovider.onNotifyReceived(RemoteDataProvider.java:1 01)
at com.lightstreamer.adapters.remote.request_reply.No tifyReceiver.onNotifyReceived(NotifyReceiver.java: 165)
at com.lightstreamer.adapters.remote.request_reply.No tifyReceiver.run(NotifyReceiver.java:89)
21.Apr.10 11:49:50,270 <FATAL> Failure in a Data Adapter
21.Apr.10 11:49:50,270 < INFO> Exiting.....
------------------------------
We need Item with minus character, is there any setting for solving this problem
Thx
Gani K
-
April 21st, 2010, 01:23 PM
#2
The message in the reported warning, indeed, has a wrong syntax, but this is because of the initial part, which was supposed to contain a message type, like UD3
(note that a heading timestamp should have been already consumed before).
The reported exception occurs 4 seconds later, so it may be related with a different line.
You can have the Server log the lines it receives by setting the com.lightstreamer.adapters.remote logger at DEBUG level.
Then, we can check what exactly causes the exception.
-
April 22nd, 2010, 08:01 AM
#3
I Found The Problem
I found the problem, it seem there is some line with no value in messaging format. Like "||", it should be "|withvalue|".
In Windows 2003 it work fine, but in Linux Debian this is a problem, but I handle this with code inside socket sending application.
rgds,
Gani K
Similar Threads
-
By Alessandro in forum Adapter SDKs
Replies: 4
Last Post: October 24th, 2011, 09:33 AM
-
By msgiribabu in forum Adapter SDKs
Replies: 1
Last Post: January 31st, 2011, 07:47 AM
-
By lwyic in forum General
Replies: 1
Last Post: July 28th, 2010, 10:15 AM
-
By wwatts in forum Adapter SDKs
Replies: 1
Last Post: July 9th, 2009, 08:38 AM
-
By khalil78 in forum Adapter SDKs
Replies: 3
Last Post: March 28th, 2008, 02:39 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 03:12 PM.
Bookmarks