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

Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.

Thingworx EMS Java SDK connection problem

Benzar
5-Regular Member

Thingworx EMS Java SDK connection problem

Hello.

 

I'm trying to connect to my localhost:8080/Thingworx   Composer.

 

I'm executing a tutorial jar file.

 

The Error message I'm getting is this.

java -Duser.country=US -Duser.language=en -jar TruckSimulator.jar
15:00:40.405 [main] INFO  c.t.c.c.p.ClientMessageProcessor - Created new ClientMessageProcessor [minPoolSize: 4, maxPoolSize: 10, maxThreadLife: 10000, maxQueueSize: 1000]
Starting the stuff
URL: ws://http://127.0.0.1:8080/Thingworx/WS
AppKey: bde92937-8a45-4089-ae41-5dde64482dfb
15:00:40.460 [main] DEBUG i.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework
15:00:40.462 [main] DEBUG i.n.c.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 16
15:00:40.468 [main] DEBUG i.n.util.internal.PlatformDependent0 - sun.nio.ch.DirectBuffer.cleaner(): unavailable
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.PlatformDependent0 (file:/C:/Users/Ryong/Documents/MicroServer_Java/TruckSimulator.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.PlatformDependent0
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
15:00:40.470 [main] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Buffer.address: unavailable
15:00:40.471 [main] DEBUG i.n.util.internal.PlatformDependent - Platform: Windows
15:00:40.471 [main] DEBUG i.n.util.internal.PlatformDependent - Java version: 8
15:00:40.471 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noUnsafe: false
15:00:40.471 [main] DEBUG i.n.util.internal.PlatformDependent - sun.misc.Unsafe: unavailable
15:00:40.483 [main] DEBUG i.n.util.internal.PlatformDependent - maxDirectMemory: 4265607168 bytes (maybe)
15:00:40.483 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noJavassist: false
15:00:40.484 [main] DEBUG i.n.util.internal.PlatformDependent - Javassist: unavailable
15:00:40.484 [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.
15:00:40.485 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.tmpdir: C:\Users\Ryong\AppData\Local\Temp (java.io.tmpdir)
15:00:40.485 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
15:00:40.485 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: true
15:00:40.485 [main] INFO  i.n.util.internal.PlatformDependent - Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system unstability.
15:00:40.495 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
15:00:40.495 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512
15:00:40.715 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 8
15:00:40.715 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 8
15:00:40.717 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
15:00:40.721 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 11
15:00:40.722 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 16777216
15:00:40.722 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.tinyCacheSize: 512
15:00:40.725 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
15:00:40.726 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
15:00:40.730 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
15:00:40.731 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
15:00:40.731 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheCleanupInterval: 5000 ms
15:00:40.738 [main] DEBUG c.t.c.c.e.m.CommunicationEndpointMonitorTask - Initializing CommunicationEndpoint Connection Monitor...
15:00:40.742 [Client-EndpointMonitor-1] DEBUG c.t.c.c.e.m.CommunicationEndpointMonitorTask - CommunicationEndpoint Monitor - checking for disconnected endpoints
15:00:40.743 [Client-EndpointMonitor-1] INFO  c.t.c.c.e.m.CommunicationEndpointMonitorTask - Endpoint not connected [name: EP_0, id: 0]. Attempting [re]connect...
15:00:40.743 [Client-EndpointMonitor-1] DEBUG c.t.c.c.e.ClientCommunicationEndpoint - Clearing endpoint authentication data [id: 0]
15:00:40.744 [Client-EndpointMonitor-1] INFO  c.t.c.c.e.ClientCommunicationEndpoint - Needed to refill connections on client endpoint [id: 0] : [active: 0, max: 1]
15:00:43.024 [Client-EndpointMonitor-1] ERROR c.t.c.c.e.ClientCommunicationEndpoint - Refilling connections on [endpoint 0, uri: ws://http://127.0.0.1:8080/Thingworx/WS] failed : null
15:00:43.024 [Client-EndpointMonitor-1] INFO  c.t.c.c.e.m.CommunicationEndpointMonitorTask - Endpoint reconnection was unsuccessful [name: EP_0, id: 0]

I've configured my TrainingConfig.json file like this.

{
    "ServerLocation": "http://127.0.0.1",
    "Port": 8080,
    "AppKey": "xxxx-xxx-xxx-xxxxx(my app key)",
    "Security": false,
    "RemoteRepo": "/ThingworxRemoteRepository"
}

Can someone tell me how to solve this problem?

 

Thanks.

0 REPLIES 0
Top Tags