Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Jul 2009
    Location
    HCM
    Posts
    3

    Error when create Hello world sample

    I create sample in link http://cometdaily.com/2008/04/14/hel...lightstreamer/, but when i run it raise error
    0
    Code:
    5-Jan-11 10:36:22,015 |ERROR|rs.remote.data.RemoteDataProvider|#1 Reply Receiver          |Exception caught while subscribing to item 'greetings': Connection closed while waiting for an answer to request 10000012d543ebe8a
    05-Jan-11 10:36:22,015 |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:69)
    05-Jan-11 10:36:22,031 |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:69)
    05-Jan-11 10:36:22,046 |FATAL|LightstreamerLogger.init         |#1 Reply Receiver          |Failure in a Data Adapter
    05-Jan-11 10:36:22,046 |INFO |LightstreamerLogger.init         |#1 Reply Receiver          |Exiting.....
    Who can help me?

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    975
    The Server, in this case, just complains for an unexpected interruption of the connection toward the Remote Adapter.
    Please check what happens in the latter process; does it crash?
    Are you using the VB or C# version of the Remote Adapter?

  3. #3
    Member
    Join Date
    Jul 2009
    Location
    HCM
    Posts
    3
    Quote Originally Posted by DarioCrivelli
    The Server, in this case, just complains for an unexpected interruption of the connection toward the Remote Adapter.
    Please check what happens in the latter process; does it crash?
    Are you using the VB or C# version of the Remote Adapter?
    I use dotnet 4.0 to build Remote Adapter, is it something wrong?

  4. #4
    Member
    Join Date
    Jul 2009
    Location
    HCM
    Posts
    3
    I found the problem, lightstreamer not support dotnet 4.0, thanks admin.

  5. #5
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    from my experience I can tell you that the dlls are compatible with .NET framework 4.0
    Why do you say that's not?
    Do you get any compile errors while building your remote adapter?

  6. #6
    Senior Member
    Join Date
    Jan 2011
    Location
    Navi Mumbai
    Posts
    30

    Angry .NET4 compile time error

    i am getting compline time error, i have created sample application using .NET3.5 its working fine, when i tried to run the same using .NET4.0 it throwing errors.
    added the "DotNetAdapter_N2" ref file

    Code:
    The type or namespace name 'Lightstreamer' could not be found (are you 
    missing a using directive or an assembly reference?)
    Code:
    The referenced assembly "DotNetAdapter_N2" could not be resolved because 
    it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, 
    PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework 
    ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies
     not in the targeted framework or consider retargeting your project.

  7. #7
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    I finally was able to reproduce the issue using ".NET Framewrk 4 Client Profile" which is different from ".NET Framework 4" (see http://goo.gl/bcCz )

    please can you double check that you're using ".NET Framework 4"?

  8. #8
    Senior Member
    Join Date
    Jan 2011
    Location
    Navi Mumbai
    Posts
    30
    I am using .NET Framework 4 Client Profile, let me know any alternative to run the application, i how to create a POC using VS.NET 2010, and i am searching for database related samples. i need to retrieve data from DB, there is no samples in help file. let me know asap

  9. #9
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    as said, to let your application work you have to use the complete .NET Framework instead of using the client profile. Just changing that in your project properties should solve the issue.

    About the db there is not an official example, btw some discussions about it are available on the forum. Check out the following threads:
    http://www.lightstreamer.com/vb/showthread.php?t=872
    http://www.lightstreamer.com/vb/showthread.php?t=231 (most interesting part is on page 2)
    http://www.lightstreamer.com/vb/showthread.php?t=23

    HTH

  10. #10
    Senior Member
    Join Date
    Jan 2011
    Location
    Navi Mumbai
    Posts
    30
    Thx Mone, its working fine after changing the property. now im looking on database issue.

 

 

Similar Threads

  1. how to create Adapter Set
    By msgiribabu in forum Adapter APIs
    Replies: 2
    Last Post: January 31st, 2011, 12:32 PM
  2. Tibco sample Code
    By wmolde in forum Client APIs
    Replies: 5
    Last Post: September 24th, 2009, 11:59 AM
  3. Hello World Error
    By jaguarg in forum Adapter APIs
    Replies: 2
    Last Post: November 5th, 2008, 09:38 PM
  4. VB.Net sample
    By ethar1 in forum Client APIs
    Replies: 1
    Last Post: August 25th, 2008, 10:17 AM
  5. create .jar with .class
    By khalil78 in forum Adapter APIs
    Replies: 2
    Last Post: April 4th, 2008, 08:38 PM

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 06:04 PM.