Results 1 to 10 of 10
  1. #1

    DISCONNECTED:WILL-RETRY on the Android Client

    HI,I've got a problem on the android platform.

    <dependencies>
    <dependency>
    <groupId>com.lightstreamer</groupId>
    <artifactId>ls-javase-client</artifactId>
    <version>3.0.0-b1</version>
    </dependency>
    </dependencies>LightstreamerClient client = new LightstreamerClient("HOST", "AdapterSet");
    client.connectionDetails.setUser("");
    client.connectionDetails.setPassword("");
    client.addListener(clientListener);
    client.connect();

    log info===

    Start listening to client events
    Client property changed: sessionId
    Client property changed: serverSocketName
    Client property changed: serverInstanceAddress
    LSLightstreamer CONNECTING
    DISCONNECTED:WILL-RETRY
    Client property changed: sessionId
    Client property changed: serverSocketName
    Client property changed: serverInstanceAddress
    LSLightstreamer CONNECTING
    DISCONNECTED:WILL-RETRY
    Client property changed: sessionId
    Client property changed: serverSocketName
    Client property changed: serverInstanceAddress
    LSLightstreamer CONNECTING
    ====
    I need your help

  2. #2
    Hi,

    Which Lightstreamer server and Android platform versions are you using?

    Further attach a copy of the server log and of the client log.

    The client logger is enabled putting the following statements in the initialization of you app:

    SystemOutLogProvider prov = new SystemOutLogProvider();
    LightstreamerClient.setLoggerProvider(prov);


    You must also include in the classpath the libraries 'com.lightstreamer:ls-log-adapter-java:1.0.1' and 'com.lightstreamer:java-system-out-log:1.0.2' available on our Maven repository.

    Please consider also the option of using a more recent version of the client. The last released is 4.0.9 and requires server 7.0.

  3. #3
    thanks you for your reply.
    Lightstreamer server : 6.0
    Android platform versions:6.0
    in accordance with you ,The logs are more detailed than before.

    log info===

    ​30.May.18 09:30:53,664|INFO |lightstreamer.actions|main|User value changed to 1#D122886140030.May.18 09:30:53,665|INFO |lightstreamer.actions|main|Password value changed
    30.May.18 09:30:53,666|INFO |lightstreamer.actions|main|Connect requested
    Start listening to client events
    30.May.18 09:30:53,670|DEBUG|lightstreamer.session|Session Thread <1>|Opening a new session and starting automatic reconnections
    30.May.18 09:30:53,672|DEBUG|lightstreamer.session|Session Thread <1>|SessionManager state change: OFF -> STREAMING_WS
    Client property changed: sessionId
    30.May.18 09:30:53,710|INFO |lightstreamer.actions|Session Thread <1>|Session ID value changed to null
    Client property changed: serverSocketName
    30.May.18 09:30:53,710|INFO |lightstreamer.actions|Session Thread <1>|Server Socket Name value changed to null
    Client property changed: clientIp
    30.May.18 09:30:53,710|INFO |lightstreamer.actions|Session Thread <1>|Client IP value changed to null
    Client property changed: serverInstanceAddress
    30.May.18 09:30:53,710|INFO |lightstreamer.actions|Session Thread <1>|Server Instance Address value changed to null
    Client property changed: realMaxBandwidth
    30.May.18 09:30:53,710|INFO |lightstreamer.session|Session Thread <1>|Opening new session
    30.May.18 09:30:53,713|INFO |lightstreamer.protocol|Session Thread <1>|Sending create_session request
    30.May.18 09:30:53,714|DEBUG|lightstreamer.protocol|Session Thread <1>|create_session parameters: LS_polling=true&LS_cause=new.api&LS_polling_millis =0&LS_idle_millis=0&LS_cid=pcYgxptg4pkpW39AK3M4hwL ri8L6U9m&LS_adapter_set=TradingPlatformAdapterSet& LS_user=1%23D1228861400&LS_password=xsOLWp4kjUa1bV b9NTcx4XwvVy2lIskJv0O5iRJXY80&
    30.May.18 09:30:53,714|DEBUG|lightstreamer.stream|Session Thread <1>|HTTP transport sending: create_session LS_polling=true&LS_cause=new.api&LS_polling_millis =0&LS_idle_millis=0&LS_cid=pcYgxptg4pkpW39AK3M4hwL ri8L6U9m&LS_adapter_set=TradingPlatformAdapterSet& LS_user=1%23D1228861400&LS_password=xsOLWp4kjUa1bV b9NTcx4XwvVy2lIskJv0O5iRJXY80&
    30.May.18 09:30:53,715|DEBUG|lightstreamer.stream|Session Thread <1>|Created HttpListener[] 1
    30.May.18 09:30:53,844|DEBUG|lightstreamer.stream|Session Thread <1>|Request header: Host = pushuat009.sfs-uat.com
    30.May.18 09:30:53,844|DEBUG|lightstreamer.stream|Session Thread <1>|Request header: user-agent = javase_client 4.0.0 build 1282
    30.May.18 09:30:53,844|DEBUG|lightstreamer.stream|Session Thread <1>|Request header: content-type = application/x-www-form-urlencoded
    30.May.18 09:30:53,844|DEBUG|lightstreamer.stream|Session Thread <1>|Request header: content-length = 232
    30.May.18 09:30:53,851|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|Getting a new channel
    30.May.18 09:30:53,851|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|Creating new ChannePoolWrapper
    30.May.18 09:30:53,915|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|ChannelPoolWrapper[1] created and initialized
    30.May.18 09:30:53,916|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|New pool created. Remote address: pushuat009.sfs-uat.com/178.33.0.247:444
    30.May.18 09:30:54,114|DEBUG|lightstreamer.session|Session Thread <1>|Session state change: OFF -> CREATING
    30.May.18 09:30:54,115|DEBUG|lightstreamer.session|Session Thread <1>|Status timeout in 4000
    LSLightstreamer START CONNECT
    30.May.18 09:30:54,115|DEBUG|lightstreamer.session|Session Thread <1>|WebSocket early opening
    30.May.18 09:30:54,116|DEBUG|lightstreamer.stream|Session Thread <1>|WebSocket transport: NOT_CONNECTED
    30.May.18 09:30:54,118|DEBUG|lightstreamer.stream|Session Thread <1>|WebSocket connecting [295acc9a]
    30.May.18 09:30:54,397|DEBUG|lightstreamer.stream|Session Thread <1>|WebSocket transport: CONNECTING
    30.May.18 09:30:54,423|DEBUG|lightstreamer.netty.pool|Netty HTTP Thread 1|Channel created [id: 0xe06a6cad]
    30.May.18 09:30:54,790|DEBUG|lightstreamer.stream|Netty HTTP Thread 2|Writing data
    30.May.18 09:30:54,808|INFO |lightstreamer.stream|Netty HTTP Thread 1|Connection opened
    30.May.18 09:30:55,119|ERROR|lightstreamer.stream|Netty HTTP Thread 1|HTTP transport error
    io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
    at io.netty.handler.codec.ByteToMessageDecoder.callDe code(ByteToMessageDecoder.java:442)
    at io.netty.handler.codec.ByteToMessageDecoder.channe lRead(ByteToMessageDecoder.java:248)
    at io.netty.channel.AbstractChannelHandlerContext.inv okeChannelRead(AbstractChannelHandlerContext.java: 373)
    at io.netty.channel.AbstractChannelHandlerContext.inv okeChannelRead(AbstractChannelHandlerContext.java: 359)
    at io.netty.channel.AbstractChannelHandlerContext.fir eChannelRead(AbstractChannelHandlerContext.java:35 1)
    at io.netty.channel.DefaultChannelPipeline$HeadContex t.channelRead(DefaultChannelPipeline.java:1334)
    at io.netty.channel.AbstractChannelHandlerContext.inv okeChannelRead(AbstractChannelHandlerContext.java: 373)
    at io.netty.channel.AbstractChannelHandlerContext.inv okeChannelRead(AbstractChannelHandlerContext.java: 359)
    at io.netty.channel.DefaultChannelPipeline.fireChanne lRead(DefaultChannelPipeline.java:926)
    at io.netty.channel.nio.AbstractNioByteChannel$NioByt eUnsafe.read(AbstractNioByteChannel.java:129)
    at io.netty.channel.nio.NioEventLoop.processSelectedK ey(NioEventLoop.java:651)
    at io.netty.channel.nio.NioEventLoop.processSelectedK eysOptimized(NioEventLoop.java:574)
    at io.netty.channel.nio.NioEventLoop.processSelectedK eys(NioEventLoop.java:488)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop .java:450)
    at io.netty.util.concurrent.SingleThreadEventExecutor $5.run(SingleThreadEventExecutor.java:873)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
    at sun.security.ssl.Handshaker.checkThrown(Handshaker .java:1431)
    at sun.security.ssl.SSLEngineImpl.checkTaskThrown(SSL EngineImpl.java:535)
    at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEn gineImpl.java:813)
    at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImp l.java:781)
    at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
    at io.netty.handler.ssl.SslHandler.unwrap(SslHandler. java:1097)
    at io.netty.handler.ssl.SslHandler.unwrap(SslHandler. java:968)
    at io.netty.handler.ssl.SslHandler.decode(SslHandler. java:902)
    at io.netty.handler.codec.ByteToMessageDecoder.callDe code(ByteToMessageDecoder.java:411)
    ... 15 more
    Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
    at sun.security.ssl.Alerts.getSSLException(Alerts.jav a:192)
    at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl .java:1728)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.jav a:304)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.jav a:296)
    at sun.security.ssl.ClientHandshaker.serverCertificat e(ClientHandshaker.java:1509)
    at sun.security.ssl.ClientHandshaker.processMessage(C lientHandshaker.java:216)
    at sun.security.ssl.Handshaker.processLoop(Handshaker .java:979)
    at sun.security.ssl.Handshaker$1.run(Handshaker.java: 919)
    at sun.security.ssl.Handshaker$1.run(Handshaker.java: 916)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.security.ssl.Handshaker$DelegatedTask.run(Hand shaker.java:1369)
    at io.netty.handler.ssl.SslHandler.runDelegatedTasks( SslHandler.java:1123)
    at io.netty.handler.ssl.SslHandler.unwrap(SslHandler. java:1008)
    ... 17 more
    Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target
    at sun.security.validator.PKIXValidator.doBuild(PKIXV alidator.java:387)
    at sun.security.validator.PKIXValidator.engineValidat e(PKIXValidator.java:292)
    at sun.security.validator.Validator.validate(Validato r.java:260)
    at sun.security.ssl.X509TrustManagerImpl.validate(X50 9TrustManagerImpl.java:324)
    at sun.security.ssl.X509TrustManagerImpl.checkTrusted (X509TrustManagerImpl.java:281)
    at sun.security.ssl.X509TrustManagerImpl.checkServerT rusted(X509TrustManagerImpl.java:136)
    at sun.security.ssl.ClientHandshaker.serverCertificat e(ClientHandshaker.java:1496)
    ... 25 more
    Caused by: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target
    at sun.security.provider.certpath.SunCertPathBuilder. build(SunCertPathBuilder.java:146)
    at sun.security.provider.certpath.SunCertPathBuilder. engineBuild(SunCertPathBuilder.java:131)
    at java.security.cert.CertPathBuilder.build(CertPathB uilder.java:280)
    at sun.security.validator.PKIXValidator.doBuild(PKIXV alidator.java:382)
    ... 31 more
    30.May.18 09:30:55,122|ERROR|lightstreamer.session|Session Thread <1>|Error event while CREATING

  4. #4
    Is this a certificate problem? Where can I get the certificate? How do I import it into LightStreamer? Why is there no problem with IOS with the same code?

  5. #5
    Any help would be greatly appreciated.
    Thanks in advance.

  6. #6
    Hi,

    The client cannot connect because you are using a Java SE client. You should instead use a version specific to Android.
    According to the server version, you have two possibilities:

    1) If your server version is 6.0.0 or lower you must use the client library included in the server distribution in the folder DOCS-SDKs/sdk_client_android or download it from this link.

    2) If your server is 6.0.1 or above, you can get the library from our public Maven repository. For example to download the last version, your pom.xml should specify the following dependency:
    <dependency>
    <groupId>com.lightstreamer</groupId>
    <artifactId>ls-android-client</artifactId>
    <version>4.0.9</version>
    </dependency>

    Further always check you are using the last client version compatible with your server looking at the changelog.

  7. #7
    hi , i use android client , print log.

    Log info ======

    I/System.out: /lightstreamer/create_session.txt?LS_protocol=TLCP-2.1.0
    LS_polling=true&LS_cause=new.api&LS_polling_millis =0&LS_idle_millis=0&LS_cid=gpGxttxdysogQz2FJ4LG3dX oqoH5Q9u&LS_adapter_set=TradingPlatformAdapterSet& LS_user=1#SHANYUGANG&LS_password=GBare-yp20OpmkhcFVTg_70iAl7edxkbqRVhc9zmIzY&
    I/System.out: 30.5月.18 16:59:20,112|DEBUG|lightstreamer.stream|Netty Thread 3|HTTP transport sending [cd1a47e3]: /lightstreamer/create_session.txt?LS_protocol=TLCP-2.1.0
    LS_polling=true&LS_cause=new.api&LS_polling_millis =0&LS_idle_millis=0&LS_cid=gpGxttxdysogQz2FJ4LG3dX oqoH5Q9u&LS_adapter_set=TradingPlatformAdapterSet& LS_user=1#SHANYUGANG&LS_password=GBare-yp20OpmkhcFVTg_70iAl7edxkbqRVhc9zmIzY&
    I/System.out: 30.5月.18 16:59:20,114|DEBUG|lightstreamer.netty.pool|Netty Thread 1|HTTP channel active [cd1a47e3]
    I/System.out: 30.5月.18 16:59:20,120|DEBUG|lightstreamer.netty.pool|Netty Thread 4|ChannelUpgradeFuture state change [4d283dd1]: CONNECTING -> CONNECTION_OK
    I/System.out: 30.5月.18 16:59:20,122|DEBUG|lightstreamer.netty.pool|Netty Thread 2|HTTP channel active [4d283dd1]
    I/System.out: 30.5月.18 16:59:20,127|DEBUG|lightstreamer.netty.pool|Netty Thread 2|WS channel handshake [4d283dd1]
    I/System.out: 30.5月.18 16:59:21,083|DEBUG|lightstreamer.stream|Netty Thread 1|Response status: 200
    I/System.out: 30.5月.18 16:59:21,084|DEBUG|lightstreamer.stream|Netty Thread 1|HTTP transport receiving [cd1a47e3]:
    CONERR,65,Unsupported protocol version: TLCP-2.1.0


    what protocol is TLCP-2.1.0 , please?

  8. #8
    Hi ,
    This problem has been bothering me for 3 days. Please help me
    This is a complete log...

    ===================================

    I/System.out: 30.5月.18 16:59:19,759|INFO |lightstreamer.actions|Thread-31|Connect requested
    I/System.out: 30.5月.18 16:59:19,760|DEBUG|lightstreamer.session|Session Thread <1>|Opening a new session and starting automatic reconnections
    I/System.out: 30.5月.18 16:59:19,761|DEBUG|lightstreamer.session|Session Thread <1>|SessionManager state change: OFF -> STREAMING_WS
    30.5月.18 16:59:19,761|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|Creating new WS channel pool map
    I/System.out: 30.5月.18 16:59:19,790|DEBUG|lightstreamer.protocol|Session Thread <1>|New protocol oid=1
    I/System.out: 30.5月.18 16:59:19,791|DEBUG|lightstreamer.heartbeat|Session Thread <1>|rhb max interval 0
    30.5月.18 16:59:19,792|DEBUG|lightstreamer.heartbeat|Session Thread <1>|rhb current interval 0
    30.5月.18 16:59:19,792|DEBUG|lightstreamer.session|Session Thread <1>|New session oid=1
    I/System.out: 30.5月.18 16:59:19,794|INFO |lightstreamer.actions|Session Thread <1>|Session ID value changed to null
    I/System.out: 30.5月.18 16:59:19,794|INFO |lightstreamer.actions|Session Thread <1>|Server Socket Name value changed to null
    30.5月.18 16:59:19,794|INFO |lightstreamer.actions|Session Thread <1>|Client IP value changed to null
    30.5月.18 16:59:19,794|INFO |lightstreamer.actions|Session Thread <1>|Server Instance Address value changed to null
    I/System.out: 30.5月.18 16:59:19,794|INFO |lightstreamer.session|Session Thread <1>|Opening new session
    I/System.out: 30.5月.18 16:59:19,805|INFO |lightstreamer.utils|Session Thread <1>|Setting up custom CookieHandler: java.net.CookieManager@f57ce2c
    30.5月.18 16:59:19,805|INFO |lightstreamer.utils|Session Thread <1>|Default CookieStore type: java.net.InMemoryCookieStore
    I/System.out: 30.5月.18 16:59:19,806|DEBUG|lightstreamer.utils|Session Thread <1>|While getting cookies for https://pushuat009.sfs-uat.com:444/l...col=TLCP-2.1.0
    30.5月.18 16:59:19,806|DEBUG|lightstreamer.utils|Session Thread <1>|Result of getting cookies for https://pushuat009.sfs-uat.com:444/l...col=TLCP-2.1.0
    30.5月.18 16:59:19,806|INFO |lightstreamer.utils|Session Thread <1>|Cookies to be inserted for https://pushuat009.sfs-uat.com:444/l...ol=TLCP-2.1.0: <none>
    I/System.out: 30.5月.18 16:59:19,811|DEBUG|lightstreamer.stream|Session Thread <1>|HTTP transport connection establishing (oid=1): https://pushuat009.sfs-uat.com:444
    /lightstreamer/create_session.txt?LS_protocol=TLCP-2.1.0
    LS_polling=true&LS_cause=new.api&LS_polling_millis =0&LS_idle_millis=0&LS_cid=gpGxttxdysogQz2FJ4LG3dX oqoH5Q9u&LS_adapter_set=TradingPlatformAdapterSet& LS_user=1#SHANYUGANG&LS_password=GBare-yp20OpmkhcFVTg_70iAl7edxkbqRVhc9zmIzY&
    30.5月.18 16:59:19,811|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|Creating new HTTP channel pool map
    I/System.out: 30.5月.18 16:59:19,824|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|HTTP channel pool map [1] created and initialized
    30.5月.18 16:59:19,824|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|New HTTP channel pool created. Remote address: pushuat009.sfs-uat.com:444
    I/System.out: 30.5月.18 16:59:19,838|DEBUG|lightstreamer.session|Session Thread <1>|Session state change (1): OFF -> CREATING
    30.5月.18 16:59:19,838|DEBUG|lightstreamer.session|Session Thread <1>|Status timeout in 4000 [currentConnectTimeout]
    30.5月.18 16:59:19,838|DEBUG|lightstreamer.session|Session Thread <1>|SessionWS state change (1) (createSent): WS_NOT_CONNECTED -> WS_CONNECTING
    I/System.out: 30.5月.18 16:59:19,839|DEBUG|lightstreamer.stream|Session Thread <1>|WebSocket transport: NOT_CONNECTED
    30.5月.18 16:59:19,839|DEBUG|lightstreamer.utils|Session Thread <1>|While getting cookies for https://pushuat009.sfs-uat.com:444/lightstreamer
    I/System.out: 30.5月.18 16:59:19,839|DEBUG|lightstreamer.utils|Session Thread <1>|Result of getting cookies for https://pushuat009.sfs-uat.com:444/lightstreamer
    30.5月.18 16:59:19,840|INFO |lightstreamer.utils|Session Thread <1>|Cookies to be inserted for https://pushuat009.sfs-uat.com:444/lightstreamer: <none>
    I/System.out: 30.5月.18 16:59:19,841|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|New WS channel pool created. Remote address: pushuat009.sfs-uat.com:444
    I/System.out: 30.5月.18 16:59:19,842|DEBUG|lightstreamer.stream|Session Thread <1>|WebSocket transport: CONNECTING
    I/System.out: 30.5月.18 16:59:19,872|DEBUG|lightstreamer.netty.pool|Netty Thread 2|HTTP channel created [4d283dd1]
    I/System.out: 30.5月.18 16:59:19,872|DEBUG|lightstreamer.netty.pool|Netty Thread 1|HTTP channel created [cd1a47e3]
    I/System.out: 30.5月.18 16:59:20,111|DEBUG|lightstreamer.stream|Netty Thread 3|HTTP transport connection established (oid=1): https://pushuat009.sfs-uat.com:444
    I/System.out: /lightstreamer/create_session.txt?LS_protocol=TLCP-2.1.0
    LS_polling=true&LS_cause=new.api&LS_polling_millis =0&LS_idle_millis=0&LS_cid=gpGxttxdysogQz2FJ4LG3dX oqoH5Q9u&LS_adapter_set=TradingPlatformAdapterSet& LS_user=1#SHANYUGANG&LS_password=GBare-yp20OpmkhcFVTg_70iAl7edxkbqRVhc9zmIzY&
    I/System.out: 30.5月.18 16:59:20,112|DEBUG|lightstreamer.stream|Netty Thread 3|HTTP transport sending [cd1a47e3]: /lightstreamer/create_session.txt?LS_protocol=TLCP-2.1.0
    LS_polling=true&LS_cause=new.api&LS_polling_millis =0&LS_idle_millis=0&LS_cid=gpGxttxdysogQz2FJ4LG3dX oqoH5Q9u&LS_adapter_set=TradingPlatformAdapterSet& LS_user=1#SHANYUGANG&LS_password=GBare-yp20OpmkhcFVTg_70iAl7edxkbqRVhc9zmIzY&
    I/System.out: 30.5月.18 16:59:20,114|DEBUG|lightstreamer.netty.pool|Netty Thread 1|HTTP channel active [cd1a47e3]
    I/System.out: 30.5月.18 16:59:20,120|DEBUG|lightstreamer.netty.pool|Netty Thread 4|ChannelUpgradeFuture state change [4d283dd1]: CONNECTING -> CONNECTION_OK
    I/System.out: 30.5月.18 16:59:20,122|DEBUG|lightstreamer.netty.pool|Netty Thread 2|HTTP channel active [4d283dd1]
    I/System.out: 30.5月.18 16:59:20,127|DEBUG|lightstreamer.netty.pool|Netty Thread 2|WS channel handshake [4d283dd1]
    I/System.out: 30.5月.18 16:59:21,083|DEBUG|lightstreamer.stream|Netty Thread 1|Response status: 200
    I/System.out: 30.5月.18 16:59:21,084|DEBUG|lightstreamer.stream|Netty Thread 1|HTTP transport receiving [cd1a47e3]:
    CONERR,65,Unsupported protocol version: TLCP-2.1.0
    I/System.out: 30.5月.18 16:59:21,084|DEBUG|lightstreamer.protocol|Session Thread <1>|New message (1): CONERR,65,Unsupported protocol version: TLCP-2.1.0
    30.5月.18 16:59:21,085|DEBUG|lightstreamer.session|Session Thread <1>|Session state change (1): CREATING -> OFF
    30.5月.18 16:59:21,085|INFO |lightstreamer.protocol|Session Thread <1>|Protocol dismissed
    30.5月.18 16:59:21,085|DEBUG|lightstreamer.heartbeat|Session Thread <1>|rhb closed
    I/System.out: 30.5月.18 16:59:21,086|INFO |lightstreamer.requests|Session Thread <1>|Batch manager is now END
    30.5月.18 16:59:21,086|DEBUG|lightstreamer.requests|Session Thread <1>|WebSocket request manager closing
    30.5月.18 16:59:21,086|DEBUG|lightstreamer.stream|Session Thread <1>|WebSocket transport: DISCONNECTED
    30.5月.18 16:59:21,086|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|WS disconnect [null]
    30.5月.18 16:59:21,086|DEBUG|lightstreamer.session|Session Thread <1>|Session shutdown
    I/System.out: 30.5月.18 16:59:21,087|DEBUG|lightstreamer.netty.pool|Netty Thread 1|HTTP channel released [cd1a47e3]
    I/System.out: 30.5月.18 16:59:21,138|DEBUG|lightstreamer.netty.pool|Netty Thread 2|ChannelUpgradeFuture state change [4d283dd1]: CONNECTION_OK -> UPGRADE_OK
    30.5月.18 16:59:21,138|DEBUG|lightstreamer.netty.pool|Netty Thread 2|WS channel created [4d283dd1]
    I/System.out: 30.5月.18 16:59:21,140|DEBUG|lightstreamer.netty|Netty Thread 2|WebSocket handler added [4d283dd1]
    W/System.err: 30.5月.18 16:59:21,140|WARN |lightstreamer.stream|Session Thread <1>|onOpen event discarded
    I/System.out: 30.5月.18 16:59:26,096|DEBUG|lightstreamer.netty.pool|Netty Thread 1|Channel closed [cd1a47e3]
    I/System.out: 30.5月.18 16:59:26,097|DEBUG|lightstreamer.netty.pool|Netty Thread 1|HTTP channel inactive [cd1a47e3]
    I/System.out: 30.5月.18 16:59:49,886|DEBUG|lightstreamer.netty.pool|Netty Thread 2|WS received close [4d283dd1]
    I/System.out: 30.5月.18 16:59:49,889|DEBUG|lightstreamer.netty.pool|Netty Thread 2|WS channel inactive [4d283dd1]
    30.5月.18 16:59:49,889|DEBUG|lightstreamer.netty|Netty Thread 2|WebSocket disconnected [4d283dd1]
    W/System.err: 30.5月.18 16:59:49,890|WARN |lightstreamer.stream|Session Thread <2>|onClosed event discarded

  9. #9
    Hi:
    This problem has been bothering me for 3 days. Please help me.
    This is a complete log


    I/System.out: 30.5月.18 16:59:19,759|INFO |lightstreamer.actions|Thread-31|Connect requested
    I/System.out: 30.5月.18 16:59:19,760|DEBUG|lightstreamer.session|Session Thread <1>|Opening a new session and starting automatic reconnections
    I/System.out: 30.5月.18 16:59:19,761|DEBUG|lightstreamer.session|Session Thread <1>|SessionManager state change: OFF -> STREAMING_WS
    30.5月.18 16:59:19,761|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|Creating new WS channel pool map
    I/System.out: 30.5月.18 16:59:19,790|DEBUG|lightstreamer.protocol|Session Thread <1>|New protocol oid=1
    I/System.out: 30.5月.18 16:59:19,791|DEBUG|lightstreamer.heartbeat|Session Thread <1>|rhb max interval 0
    30.5月.18 16:59:19,792|DEBUG|lightstreamer.heartbeat|Session Thread <1>|rhb current interval 0
    30.5月.18 16:59:19,792|DEBUG|lightstreamer.session|Session Thread <1>|New session oid=1
    I/System.out: 30.5月.18 16:59:19,794|INFO |lightstreamer.actions|Session Thread <1>|Session ID value changed to null
    I/System.out: 30.5月.18 16:59:19,794|INFO |lightstreamer.actions|Session Thread <1>|Server Socket Name value changed to null
    30.5月.18 16:59:19,794|INFO |lightstreamer.actions|Session Thread <1>|Client IP value changed to null
    30.5月.18 16:59:19,794|INFO |lightstreamer.actions|Session Thread <1>|Server Instance Address value changed to null
    I/System.out: 30.5月.18 16:59:19,794|INFO |lightstreamer.session|Session Thread <1>|Opening new session
    I/System.out: 30.5月.18 16:59:19,805|INFO |lightstreamer.utils|Session Thread <1>|Setting up custom CookieHandler: java.net.CookieManager@f57ce2c
    30.5月.18 16:59:19,805|INFO |lightstreamer.utils|Session Thread <1>|Default CookieStore type: java.net.InMemoryCookieStore
    I/System.out: 30.5月.18 16:59:19,806|DEBUG|lightstreamer.utils|Session Thread <1>|While getting cookies for https://pushuat009.sfs-uat.com:444/l...col=TLCP-2.1.0
    30.5月.18 16:59:19,806|DEBUG|lightstreamer.utils|Session Thread <1>|Result of getting cookies for https://pushuat009.sfs-uat.com:444/l...col=TLCP-2.1.0
    30.5月.18 16:59:19,806|INFO |lightstreamer.utils|Session Thread <1>|Cookies to be inserted for https://pushuat009.sfs-uat.com:444/l...ol=TLCP-2.1.0: <none>
    I/System.out: 30.5月.18 16:59:19,811|DEBUG|lightstreamer.stream|Session Thread <1>|HTTP transport connection establishing (oid=1): https://pushuat009.sfs-uat.com:444
    /lightstreamer/create_session.txt?LS_protocol=TLCP-2.1.0
    LS_polling=true&LS_cause=new.api&LS_polling_millis =0&LS_idle_millis=0&LS_cid=gpGxttxdysogQz2FJ4LG3dX oqoH5Q9u&LS_adapter_set=TradingPlatformAdapterSet& LS_user=1#SHANYUGANG&LS_password=GBare-yp20OpmkhcFVTg_70iAl7edxkbqRVhc9zmIzY&
    30.5月.18 16:59:19,811|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|Creating new HTTP channel pool map
    I/System.out: 30.5月.18 16:59:19,824|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|HTTP channel pool map [1] created and initialized
    30.5月.18 16:59:19,824|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|New HTTP channel pool created. Remote address: pushuat009.sfs-uat.com:444
    I/System.out: 30.5月.18 16:59:19,838|DEBUG|lightstreamer.session|Session Thread <1>|Session state change (1): OFF -> CREATING
    30.5月.18 16:59:19,838|DEBUG|lightstreamer.session|Session Thread <1>|Status timeout in 4000 [currentConnectTimeout]
    30.5月.18 16:59:19,838|DEBUG|lightstreamer.session|Session Thread <1>|SessionWS state change (1) (createSent): WS_NOT_CONNECTED -> WS_CONNECTING
    I/System.out: 30.5月.18 16:59:19,839|DEBUG|lightstreamer.stream|Session Thread <1>|WebSocket transport: NOT_CONNECTED
    30.5月.18 16:59:19,839|DEBUG|lightstreamer.utils|Session Thread <1>|While getting cookies for https://pushuat009.sfs-uat.com:444/lightstreamer
    I/System.out: 30.5月.18 16:59:19,839|DEBUG|lightstreamer.utils|Session Thread <1>|Result of getting cookies for https://pushuat009.sfs-uat.com:444/lightstreamer
    30.5月.18 16:59:19,840|INFO |lightstreamer.utils|Session Thread <1>|Cookies to be inserted for https://pushuat009.sfs-uat.com:444/lightstreamer: <none>
    I/System.out: 30.5月.18 16:59:19,841|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|New WS channel pool created. Remote address: pushuat009.sfs-uat.com:444
    I/System.out: 30.5月.18 16:59:19,842|DEBUG|lightstreamer.stream|Session Thread <1>|WebSocket transport: CONNECTING
    I/System.out: 30.5月.18 16:59:19,872|DEBUG|lightstreamer.netty.pool|Netty Thread 2|HTTP channel created [4d283dd1]
    I/System.out: 30.5月.18 16:59:19,872|DEBUG|lightstreamer.netty.pool|Netty Thread 1|HTTP channel created [cd1a47e3]
    I/System.out: 30.5月.18 16:59:20,111|DEBUG|lightstreamer.stream|Netty Thread 3|HTTP transport connection established (oid=1): https://pushuat009.sfs-uat.com:444
    I/System.out: /lightstreamer/create_session.txt?LS_protocol=TLCP-2.1.0
    LS_polling=true&LS_cause=new.api&LS_polling_millis =0&LS_idle_millis=0&LS_cid=gpGxttxdysogQz2FJ4LG3dX oqoH5Q9u&LS_adapter_set=TradingPlatformAdapterSet& LS_user=1#SHANYUGANG&LS_password=GBare-yp20OpmkhcFVTg_70iAl7edxkbqRVhc9zmIzY&
    I/System.out: 30.5月.18 16:59:20,112|DEBUG|lightstreamer.stream|Netty Thread 3|HTTP transport sending [cd1a47e3]: /lightstreamer/create_session.txt?LS_protocol=TLCP-2.1.0
    LS_polling=true&LS_cause=new.api&LS_polling_millis =0&LS_idle_millis=0&LS_cid=gpGxttxdysogQz2FJ4LG3dX oqoH5Q9u&LS_adapter_set=TradingPlatformAdapterSet& LS_user=1#SHANYUGANG&LS_password=GBare-yp20OpmkhcFVTg_70iAl7edxkbqRVhc9zmIzY&
    I/System.out: 30.5月.18 16:59:20,114|DEBUG|lightstreamer.netty.pool|Netty Thread 1|HTTP channel active [cd1a47e3]
    I/System.out: 30.5月.18 16:59:20,120|DEBUG|lightstreamer.netty.pool|Netty Thread 4|ChannelUpgradeFuture state change [4d283dd1]: CONNECTING -> CONNECTION_OK
    I/System.out: 30.5月.18 16:59:20,122|DEBUG|lightstreamer.netty.pool|Netty Thread 2|HTTP channel active [4d283dd1]
    I/System.out: 30.5月.18 16:59:20,127|DEBUG|lightstreamer.netty.pool|Netty Thread 2|WS channel handshake [4d283dd1]
    I/System.out: 30.5月.18 16:59:21,083|DEBUG|lightstreamer.stream|Netty Thread 1|Response status: 200
    I/System.out: 30.5月.18 16:59:21,084|DEBUG|lightstreamer.stream|Netty Thread 1|HTTP transport receiving [cd1a47e3]:
    CONERR,65,Unsupported protocol version: TLCP-2.1.0
    I/System.out: 30.5月.18 16:59:21,084|DEBUG|lightstreamer.protocol|Session Thread <1>|New message (1): CONERR,65,Unsupported protocol version: TLCP-2.1.0
    30.5月.18 16:59:21,085|DEBUG|lightstreamer.session|Session Thread <1>|Session state change (1): CREATING -> OFF
    30.5月.18 16:59:21,085|INFO |lightstreamer.protocol|Session Thread <1>|Protocol dismissed
    30.5月.18 16:59:21,085|DEBUG|lightstreamer.heartbeat|Session Thread <1>|rhb closed
    I/System.out: 30.5月.18 16:59:21,086|INFO |lightstreamer.requests|Session Thread <1>|Batch manager is now END
    30.5月.18 16:59:21,086|DEBUG|lightstreamer.requests|Session Thread <1>|WebSocket request manager closing
    30.5月.18 16:59:21,086|DEBUG|lightstreamer.stream|Session Thread <1>|WebSocket transport: DISCONNECTED
    30.5月.18 16:59:21,086|DEBUG|lightstreamer.netty.pool|Sessio n Thread <1>|WS disconnect [null]
    30.5月.18 16:59:21,086|DEBUG|lightstreamer.session|Session Thread <1>|Session shutdown
    I/System.out: 30.5月.18 16:59:21,087|DEBUG|lightstreamer.netty.pool|Netty Thread 1|HTTP channel released [cd1a47e3]
    I/System.out: 30.5月.18 16:59:21,138|DEBUG|lightstreamer.netty.pool|Netty Thread 2|ChannelUpgradeFuture state change [4d283dd1]: CONNECTION_OK -> UPGRADE_OK
    30.5月.18 16:59:21,138|DEBUG|lightstreamer.netty.pool|Netty Thread 2|WS channel created [4d283dd1]
    I/System.out: 30.5月.18 16:59:21,140|DEBUG|lightstreamer.netty|Netty Thread 2|WebSocket handler added [4d283dd1]
    W/System.err: 30.5月.18 16:59:21,140|WARN |lightstreamer.stream|Session Thread <1>|onOpen event discarded
    I/System.out: 30.5月.18 16:59:26,096|DEBUG|lightstreamer.netty.pool|Netty Thread 1|Channel closed [cd1a47e3]
    I/System.out: 30.5月.18 16:59:26,097|DEBUG|lightstreamer.netty.pool|Netty Thread 1|HTTP channel inactive [cd1a47e3]
    I/System.out: 30.5月.18 16:59:49,886|DEBUG|lightstreamer.netty.pool|Netty Thread 2|WS received close [4d283dd1]
    I/System.out: 30.5月.18 16:59:49,889|DEBUG|lightstreamer.netty.pool|Netty Thread 2|WS channel inactive [4d283dd1]
    30.5月.18 16:59:49,889|DEBUG|lightstreamer.netty|Netty Thread 2|WebSocket disconnected [4d283dd1]
    W/System.err: 30.5月.18 16:59:49,890|WARN |lightstreamer.stream|Session Thread <2>|onClosed event discarded

  10. #10
    Hi,

    You are using a client version not supported by your server.
    Please, check the changelog (https://www.lightstreamer.com/repo/m...CHANGELOG.HTML) and make sure that the client you choose has the statement “Compatible with Lightstreamer Server since XXX” where XXX is equal to or lower than you server version.

    The exact server version is printed to the console during the startup. You should search a string like “Lightstreamer Server 7.0.0 build 1860”.

    On on the Demos page of our site (https://demos.lightstreamer.com/) you can find examples of Android application. For instance see this demo (https://github.com/Lightstreamer/Lig...client-android) for a step by step tutorial.

 

 

Similar Threads

  1. Replies: 6
    Last Post: March 9th, 2016, 09:53 AM
  2. Network disconnected at client side
    By mhasan in forum Client SDKs
    Replies: 1
    Last Post: June 25th, 2015, 10:40 AM
  3. Replies: 3
    Last Post: February 11th, 2014, 09:43 AM
  4. Streaming system is disconnected
    By ivailo in forum Client SDKs
    Replies: 2
    Last Post: December 1st, 2009, 01:07 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 11:34 PM.