-
April 1st, 2009, 10:48 AM
#1
"Hello World" & Demos - Not data shown nor errors thrown
I have followed the instructions for creating a .Net data adapter using C#.
Everything seems to be working fine but I get no data shown in the WebClient page.
Page output:
loading...
loading...
Starting Lightstreamer Server...
Please check logs for detailed information.
01.Apr.09 11:48:52,438 < INFO> This is a trial version.
01.Apr.09 11:48:53,483 < INFO> Lightstreamer Server starting in Vivace edition
01.Apr.09 11:48:53,610 < INFO> Started HTML Adaptor for JMX on port 6666
01.Apr.09 11:48:53,683 < INFO> Started JMXMP Connector for JMX on port 9999
01.Apr.09 11:48:53,839 < INFO> data_provider element without name attribute; using DEFAULT as the de
fault name
01.Apr.09 11:48:53,841 < INFO> Loading Metadata Adapter DEMO
01.Apr.09 11:48:53,857 < INFO> Loading Data Adapter DEMO.MONITOR
01.Apr.09 11:48:53,857 < INFO> Loading Data Adapter DEMO.QUOTE_ADAPTER
01.Apr.09 11:48:53,858 < INFO> Loading Data Adapter DEMO.PORTFOLIO_ADAPTER
01.Apr.09 11:48:53,858 < INFO> Finished loading Data Adapter DEMO.MONITOR
01.Apr.09 11:48:53,857 < INFO> Loading Data Adapter DEMO.CHAT_ROOM
01.Apr.09 11:48:53,858 < INFO> Loading Metadata Adapter PROXY_HELLOWORLD
01.Apr.09 11:48:53,858 < INFO> Loading Data Adapter DEMO.SIMPLE_MESSENGER
01.Apr.09 11:48:53,858 < INFO> Loading Data Adapter PROXY_HELLOWORLD.DEFAULT
01.Apr.09 11:48:53,991 < INFO> PortfolioDataAdapter ready
01.Apr.09 11:48:53,992 < INFO> Finished loading Metadata Adapter PROXY_HELLOWORLD
01.Apr.09 11:48:53,992 < INFO> Finished loading Data Adapter DEMO.PORTFOLIO_ADAPTER
01.Apr.09 11:48:54,016 < INFO> Finished loading Data Adapter DEMO.QUOTE_ADAPTER
01.Apr.09 11:48:54,020 < INFO> Connecting...
01.Apr.09 11:48:54,021 < INFO> Waiting for a connection on port 6662...
01.Apr.09 11:48:54,021 < INFO> Waiting for a connection on port 6661...
01.Apr.09 11:48:54,032 < INFO> IMDataAdapter ready
01.Apr.09 11:48:54,032 < INFO> MixedMetadataAdapter ready
01.Apr.09 11:48:54,032 < INFO> Finished loading Data Adapter DEMO.SIMPLE_MESSENGER
01.Apr.09 11:48:54,032 < INFO> ChatDataAdapter ready
01.Apr.09 11:48:54,032 < INFO> Finished loading Metadata Adapter DEMO
01.Apr.09 11:48:54,033 < INFO> Finished loading Data Adapter DEMO.CHAT_ROOM
01.Apr.09 11:49:06,234 < INFO> Connected on port 6661
01.Apr.09 11:49:06,235 < INFO> Connected on port 6662
01.Apr.09 11:49:06,236 < INFO> Connected
01.Apr.09 11:49:06,236 < INFO> Finished loading Data Adapter PROXY_HELLOWORLD.DEFAULT
01.Apr.09 11:49:06,344 < INFO> Pump pool size set by default at 4
01.Apr.09 11:49:06,388 < INFO> Notify receiver '#1' starting...
01.Apr.09 11:49:06,445 < INFO> Request sender '#1' starting...
01.Apr.09 11:49:06,446 < INFO> Reply receiver '#1' starting...
01.Apr.09 11:49:06,447 < INFO> Events pool size set by default at 4
01.Apr.09 11:49:06,458 < INFO> Lightstreamer Server 3.5 build 1428.4 starting...
01.Apr.09 11:49:06,688 < INFO> Server "Lightstreamer HTTP Server" listening to *:8080 ...
<div source="lightstreamer" table="helloTable" item="greetings" field="message">
loading...</div>
<div source="lightstreamer" table="helloTable" item="greetings" field="timestamp">
loading...</div>
</form>
<script type="text/javascript" language="javascript">
document.lightstreamerPage = new PushPage();
// The web server host name is the one contained in the url by which you recall the pages.
// Lightstreamer Server host name is the name you supply to "setLSHost".
document.lightstreamerPage.context.setDomain("ligh tstreamer.localhost");
document.lightstreamerPage.onEngineCreation = function(engine) {
// put your configuration code here
engine.connection.setAdapterName("PROXY_HELLOWORLD ");
engine.changeStatus("STREAMING");
}
document.lightstreamerPage.bind();
document.lightstreamerPage.createEngine("HelloWorl dApp", "LS", "SHARE_SESSION");
//var group = ["greetings"];
//var schema = ["message", "timestamp"]
//var pushTable = new OverwriteTable(group, schema, "MERGE");
var pushTable = new OverwriteTable(null, null, "MERGE");
document.lightstreamerPage.addTable(pushTable, "helloTable");
</script>
What could be happening?
-
April 1st, 2009, 12:05 PM
#2
Got it.
needed to assigned the LightStreamer host and port (which are different from those of the WebClient)
engine.connection.setLSHost("lightstreamer.localho st");
engine.connection.setLSPort("8080");
-
April 9th, 2009, 06:26 AM
#3
No data shown on front end and no errors
HI,
i am using SmartDataProvider
there is no errors in server console, listener.smartupdate method is also invoking but data is not updating in front end screen what might be the reason
even after adding the above two lines also it is not working
-
April 9th, 2009, 10:38 AM
#4
Kishorekkk,
Are yo referring to the "Hello World" for .NET Tutorial? Please follow its instructions literally and it will work.
Similar Threads
-
By Mone in forum Client SDKs
Replies: 1
Last Post: July 10th, 2012, 06:06 PM
-
By hofmanna in forum Client SDKs
Replies: 3
Last Post: February 18th, 2010, 11:14 PM
-
By Alessandro in forum Adapter SDKs
Replies: 3
Last Post: May 30th, 2008, 01:49 PM
-
By Alessandro in forum Adapter SDKs
Replies: 0
Last Post: February 13th, 2008, 10:12 AM
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 05:10 AM.
Bookmarks