11 Replies Latest reply on Feb 2, 2017 2:38 AM by nbansal RSS
    rkandasamy Apprentice

    Java SDK is not connecting to local host

    Hi Team,

     

    I have got the java SDK from thingworx market place and i am trying to connect a sample thing. But the thing is not connecting and i am getting the log results as follows,

    Please have a look at the logs attached and let me know solution to get my sample thing connected to Thingworx remote thing. Thanks.

      • Re: Java SDK is not connecting to local host
        supandey Collaborator

        Hi Rdhakrishnan, is this complete log? Have you created the corresponding RemoteThing in the ThingWorx platform? Do you see your Thing (initated from the JavaSDK) as unbound if you check on the Platform > Monitoring > Remote Things

        • Re: Java SDK is not connecting to local host
          supandey Collaborator

          Just to add to that,  your RemoteThing in ThingWorx platform should match to your thing created in Java SDK, which i think is called as "SteamSensorGateway"

            • Re: Java SDK is not connecting to local host
              rkandasamy Apprentice

              Hi Sushant Pandey,

               

              Thanks for your prompt response. SteamSensorGateway is SDKGateWay type. Actual Thing is VendingMachine1.

              I am also wondering why the connection is not established between remote things. In addition to what ever the logs i have attached, below lines are keep on repeating,

               

              20:59:45.104 [NettyClient-NIO-1] DEBUG c.t.c.c.c.n.ThingworxClientConnectionHandler - [ClientHandler: 1198168038] PONG has been received

              21:00:20.103 [NettyClient-NIO-1] DEBUG c.t.c.c.c.n.ThingworxClientConnectionHandler - [ClientHandler: 651137855] Client has been idle, sending websocket ping with timeout 10000 ...

              21:00:20.103 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Encoding WebSocket Frame opCode=9 length=0

              21:00:20.104 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Decoding WebSocket Frame opCode=10

              21:00:20.104 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Decoding WebSocket Frame length=0

              21:00:30.106 [NettyClient-NIO-1] DEBUG c.t.c.c.c.n.ThingworxClientConnectionHandler - [ClientHandler: 216683491] PONG has been received

              21:01:05.105 [NettyClient-NIO-1] DEBUG c.t.c.c.c.n.ThingworxClientConnectionHandler - [ClientHandler: 651137855] Client has been idle, sending websocket ping with timeout 10000 ...

              21:01:05.105 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Encoding WebSocket Frame opCode=9 length=0

              21:01:05.105 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Decoding WebSocket Frame opCode=10

              21:01:05.106 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Decoding WebSocket Frame length=0

              21:01:15.106 [NettyClient-NIO-1] DEBUG c.t.c.c.c.n.ThingworxClientConnectionHandler - [ClientHandler: 1507608264] PONG has been received

              21:01:50.107 [NettyClient-NIO-1] DEBUG c.t.c.c.c.n.ThingworxClientConnectionHandler - [ClientHandler: 651137855] Client has been idle, sending websocket ping with timeout 10000 ...

              21:01:50.107 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Encoding WebSocket Frame opCode=9 length=0

              21:01:50.108 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Decoding WebSocket Frame opCode=10

              21:01:50.108 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Decoding WebSocket Frame length=0

              21:02:00.107 [NettyClient-NIO-1] DEBUG c.t.c.c.c.n.ThingworxClientConnectionHandler - [ClientHandler: 845641462] PONG has been received

               

              I am not able to come to any reason for the same.