cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Edge microserver code connectivity issue with thingworx server

ishrivastava
1-Newbie

Edge microserver code connectivity issue with thingworx server

I am working on ems code for connecting to thingworx.I am getting the following result can you please suggest some solution.

12:46:13.533 [Client-Endpoint Monitor-1] INFO  c.t.c.c.c.n.NettyClientConnectionFactory - forcing underlying tcp channel closed [is open: false, is active: false]

12:46:13.533 [Client-Endpoint Monitor-1] ERROR c.t.c.c.e.ClientCommunicationEndpoint - Refilling connections on [endpoint 0, uri: ws://160.110.65.188:80/Thingworx/WS] failed : timeout waiting for websocket handshake to complete

12:46:13.534 [Client-EndpointMonitor-1] INFO  c.t.c.c.e.m.CommunicationEndpointMonitorTask - Endpoint reconnection was unsuccessful [name: SmartAgriGateway, id: 0]

SimulateTimer.ReSet.run() Thu Apr 28 12:46:17 IST 2016

SimulateTimer.Set.run() Thu Apr 28 12:46:19 IST 2016

SimulateTimer.ReSet.run() Thu Apr 28 12:46:27 IST 2016

12:46:28.535 [Client-EndpointMonitor-1] DEBUG c.t.c.c.e.m.CommunicationEndpointMonitorTask - CommunicationEndpoint Monitor - checking for disconnected endpoints

12:46:28.535 [Client-EndpointMonitor-1] INFO  c.t.c.c.e.m.CommunicationEndpointMonitorTask - Endpoint not connected [name: SmartAgriGateway, id: 0]. Attempting [re]connect...

12:46:28.535 [Client-EndpointMonitor-1] DEBUG c.t.c.c.e.ClientCommunicationEndpoint - Clearing endpoint authentication data [id: 0]

12:46:28.535 [Client-EndpointMonitor-1] INFO  c.t.c.c.e.ClientCommunicationEndpoint - Needed to refill connections on client endpoint [id: 0] : [active: 0, max: 1]

SimulateTimer.Set.run() Thu Apr 28 12:46:31 IST 2016

5 REPLIES 5
PaiChung
22-Sapphire I
(To:ishrivastava)

It looks like it can't even do the very initial http(s) call to initiate the ws(s) connection.

Could you have some firewall issues?

how can i check that??

Isha, please do post the entire log file.

Here is the log file please check and suggest me something...

Simulated Data not supported...........

SimulateTimer.Set.run() Fri Apr 29 12:05:25 IST 2016

SimulateTimer.ReSet.run() Fri Apr 29 12:05:25 IST 2016

12:05:25.463 [main] INFO  c.t.c.c.p.ClientMessageProcessor - Created new ClientMessageProcessor [minPoolSize: 4, maxPoolSize: 10, maxThreadLife: 10000, maxQueueSize: 1000]

12:05:25.579 [main] DEBUG i.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework

12:05:25.587 [main] DEBUG i.n.c.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 8

12:05:25.600 [main] DEBUG i.n.util.internal.PlatformDependent0 - sun.nio.ch.DirectBuffer.cleaner(): available

12:05:25.601 [main] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Buffer.address: available

12:05:25.602 [main] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available

12:05:25.604 [main] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available

12:05:25.604 [main] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: true

12:05:25.604 [main] DEBUG i.n.util.internal.PlatformDependent - Platform: Windows

12:05:25.605 [main] DEBUG i.n.util.internal.PlatformDependent - Java version: 8

12:05:25.605 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noUnsafe: false

12:05:25.605 [main] DEBUG i.n.util.internal.PlatformDependent - sun.misc.Unsafe: available

12:05:25.605 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noJavassist: false

12:05:25.606 [main] DEBUG i.n.util.internal.PlatformDependent - Javassist: unavailable

12:05:25.606 [main] DEBUG i.n.util.internal.PlatformDependent - You don't have Javassist in your class path or you don't have enough permission to load dynamically generated classes.  Please check the configuration for better performance.

12:05:25.607 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.tmpdir: C:\Users\ISHA_S~1\AppData\Local\Temp (java.io.tmpdir)

12:05:25.607 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)

12:05:25.608 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false

12:05:25.626 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false

12:05:25.626 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512

12:05:25.800 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 4

12:05:25.800 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 4

12:05:25.803 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192

12:05:25.803 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 11

12:05:25.803 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 16777216

12:05:25.803 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.tinyCacheSize: 512

12:05:25.803 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256

12:05:25.803 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64

12:05:25.803 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768

12:05:25.803 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192

12:05:25.803 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheCleanupInterval: 5000 ms

12:05:25.813 [main] DEBUG c.t.c.c.e.m.CommunicationEndpointMonitorTask - Initializing CommunicationEndpoint Connection Monitor...

12:05:25.814 [Client-EndpointMonitor-1] DEBUG c.t.c.c.e.m.CommunicationEndpointMonitorTask - CommunicationEndpoint Monitor - checking for disconnected endpoints

12:05:25.814 [Client-EndpointMonitor-1] INFO  c.t.c.c.e.m.CommunicationEndpointMonitorTask - Endpoint not connected [name: SmartAgriGateway, id: 0]. Attempting [re]connect...

12:05:25.815 [Client-EndpointMonitor-1] DEBUG c.t.c.c.e.ClientCommunicationEndpoint - Clearing endpoint authentication data [id: 0]

12:05:25.815 [Client-EndpointMonitor-1] INFO  c.t.c.c.e.ClientCommunicationEndpoint - Needed to refill connections on client endpoint [id: 0] : [active: 0, max: 1]

12:05:25.850 [Client-EndpointMonitor-1] DEBUG i.n.util.internal.ThreadLocalRandom - -Dio.netty.initialSeedUniquifier: 0xa292fbc2b3696a25

12:05:25.858 [Client-EndpointMonitor-1] DEBUG i.n.channel.ChannelOutboundBuffer - -Dio.netty.threadLocalDirectBufferSize: 65536

12:05:25.859 [Client-EndpointMonitor-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacity.default: 262144

12:05:25.877 [Client-EndpointMonitor-1] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: unpooled

12:05:25.916 [NettyClient-NIO-1] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetectionLevel: simple

SimulateTimer.ReSet.run() Fri Apr 29 12:05:35 IST 2016

12:05:35.885 [Client-EndpointMonitor-1] INFO  c.t.c.c.c.n.NettyClientConnectionFactory - forcing underlying tcp channel closed [is open: false, is active: false]

12:05:35.886 [Client-EndpointMonitor-1] ERROR c.t.c.c.e.ClientCommunicationEndpoint - Refilling connections on [endpoint 0, uri: ws://160.110.65.188:80/Thingworx/WS] failed : timeout waiting for websocket handshake to complete

12:05:35.887 [Client-EndpointMonitor-1] INFO  c.t.c.c.e.m.CommunicationEndpointMonitorTask - Endpoint reconnection was unsuccessful [name: SmartAgriGateway, id: 0]

SimulateTimer.Set.run() Fri Apr 29 12:05:37 IST 2016

Isha, this could possibly be related to another thread here. Do you have SSL setup as well?

Top Tags