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

What's the matter on installation EMS java sdk?

Newbie

What's the matter on installation EMS java sdk?

  Hello Expert,

  I am studying connect to external data sources. (Part 2 of instruction to thingworx 5.4)

  I want to start the thingworx EMS java sdk Truck Simulator, but running "wsjavatruckstart.bat" is unsuccessful.

I don't know what is the problem. Please help!

14 REPLIES 14

Re: What's the matter on installation EMS java sdk?

Hi Ji young, are you running this on an local setup?  could you please share with us

1. Thingworx server version

2. Tomcat version

3. Java SDK version

And finally the application log from \\ThingworxStorage\logs and the catalina.out from Tomcat's installation directory

Re: What's the matter on installation EMS java sdk?

Thank you Sushant.

1. Thingworx Platform H2 Developer Freemium 7.2.1

2. Tomcat 8.5.13

3. Java ver 8 (1.8.0)

2017-04-20 14:17:33.777+0900 [L: ERROR] [O: E.c.t.e.u.ExtensionPackageUtilities] [I: ] [U: Administrator] [S: ] [T: http-nio-8080-exec-1] [message: Extension : A newer version of GoogleWidgets_ExtensionPackage is already installed: GoogleWidgets_ExtensionPackage:1.0.0] com.thingworx.extensibility.ExtensibilityException: Extension : A newer version of GoogleWidgets_ExtensionPackage is already installed: GoogleWidgets_ExtensionPackage:1.0.0

  at com.thingworx.platform.common.utils.EntityVersionUtilities.validateExtensionValidWithVersioningRules(EntityVersionUtilities.java:196) ~[thingworx-platform-h2-freemium-7.2.1-b71.jar:na]

  at com.thingworx.extensibility.utils.ExtensionPackageUtilities.checkVersioning(ExtensionPackageUtilities.java:1038) [thingworx-platform-h2-freemium-7.2.1-b71.jar:na]

  at com.thingworx.extensibility.utils.ExtensionPackageUtilities.validateExtensionPackage(ExtensionPackageUtilities.java:903) [thingworx-platform-h2-freemium-7.2.1-b71.jar:na]

  at com.thingworx.extensibility.utils.ExtensionPackageUtilities.recurseForValidationPhase(ExtensionPackageUtilities.java:340) [thingworx-platform-h2-freemium-7.2.1-b71.jar:na]

  at com.thingworx.extensibility.utils.ExtensionPackageUtilities.recurseForValidationPhase(ExtensionPackageUtilities.java:335) [thingworx-platform-h2-freemium-7.2.1-b71.jar:na]

  at com.thingworx.extensibility.utils.ExtensionPackageUtilities.validateDependencyMap(ExtensionPackageUtilities.java:307) [thingworx-platform-h2-freemium-7.2.1-b71.jar:na]

  at com.thingworx.extensibility.utils.ExtensionPackageUtilities.installExtensionPackages(ExtensionPackageUtilities.java:210) [thingworx-platform-h2-freemium-7.2.1-b71.jar:na]

  at com.thingworx.webservices.ExtensionPackageUploader.beginImport(ExtensionPackageUploader.java:174) [thingworx-platform-h2-freemium-7.2.1-b71.jar:na]

  at com.thingworx.webservices.ExtensionPackageUploader.service(ExtensionPackageUploader.java:101) [thingworx-platform-h2-freemium-7.2.1-b71.jar:na]

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) [servlet-api.jar:na]

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) [catalina.jar:8.5.13]

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) [catalina.jar:8.5.13]

  at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-websocket.jar:8.5.13]

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) [catalina.jar:8.5.13]

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) [catalina.jar:8.5.13]

  at com.thingworx.security.contenttype.ContentTypeFilter.doFilter(ContentTypeFilter.java:111) [thingworx-platform-h2-freemium-7.2.1-b71.jar:na]

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) [catalina.jar:8.5.13]

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) [catalina.jar:8.5.13]

  at com.thingworx.security.filter.ValidationFilter.doFilter(ValidationFilter.java:22) [thingworx-platform-h2-freemium-7.2.1-b71.jar:na]

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) [catalina.jar:8.5.13]

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) [catalina.jar:8.5.13]

  at com.thingworx.security.authentication.AuthenticationFilter.propagateRequest(AuthenticationFilter.java:370) [thingworx-platform-h2-freemium-7.2.1-b71.jar:na]

  at com.thingworx.security.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:150) [thingworx-platform-h2-freemium-7.2.1-b71.jar:na]

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) [catalina.jar:8.5.13]

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) [catalina.jar:8.5.13]

  at com.thingworx.security.filter.ClickjackFilter.doFilter(ClickjackFilter.java:32) [thingworx-platform-h2-freemium-7.2.1-b71.jar:na]

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) [catalina.jar:8.5.13]

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) [catalina.jar:8.5.13]

  at com.thingworx.security.filter.ProhibitIfNotLeaderFilter.doFilter(ProhibitIfNotLeaderFilter.java:119) [thingworx-platform-h2-freemium-7.2.1-b71.jar:na]

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) [catalina.jar:8.5.13]

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) [catalina.jar:8.5.13]

  at com.thingworx.security.filter.HttpResponseHeadersFilter.doFilter(HttpResponseHeadersFilter.java:52) [thingworx-platform-h2-freemium-7.2.1-b71.jar:na]

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) [catalina.jar:8.5.13]

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) [catalina.jar:8.5.13]

  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) [catalina.jar:8.5.13]

  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [catalina.jar:8.5.13]

  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) [catalina.jar:8.5.13]

  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) [catalina.jar:8.5.13]

  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80) [catalina.jar:8.5.13]

  at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624) [catalina.jar:8.5.13]

  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [catalina.jar:8.5.13]

  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:341) [catalina.jar:8.5.13]

  at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799) [tomcat-coyote.jar:8.5.13]

  at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-coyote.jar:8.5.13]

  at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861) [tomcat-coyote.jar:8.5.13]

  at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455) [tomcat-coyote.jar:8.5.13]

  at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-coyote.jar:8.5.13]

  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_121]

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_121]

  at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:8.5.13]

  at java.lang.Thread.run(Unknown Source) [na:1.8.0_121]

Re: What's the matter on installation EMS java sdk?

Thank you for sharing the details. The log seems to be only taken from the time when you tried importing the Google Map widget extension so it doesn't contain anything concerning your attempts to execute the said batch file. Could you try attach/share full log or do you see any error when you execute the batch file?

Re: What's the matter on installation EMS java sdk?

This is the batch file log.

17:25:29.183 [main] DEBUG i.n.util.internal.PlatformDependent - You don't have J

avassist in your class path or you don't have enough permission to load dynamica

lly generated classes.  Please check the configuration for better performance.

17:25:29.185 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.tmpdi

r: C:\Users\SAMSUNG\AppData\Local\Temp (java.io.tmpdir)

17:25:29.187 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.bitMo

de: 64 (sun.arch.data.model)

17:25:29.187 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noPre

ferDirect: false

17:25:29.223 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySe

tOptimization: false

17:25:29.223 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selecto

rAutoRebuildThreshold: 512

17:25:29.608 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocat

or.numHeapArenas: 4

17:25:29.608 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocat

or.numDirectArenas: 4

17:25:29.609 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocat

or.pageSize: 8192

17:25:29.609 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocat

or.maxOrder: 11

17:25:29.609 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocat

or.chunkSize: 16777216

17:25:29.610 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocat

or.tinyCacheSize: 512

17:25:29.610 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocat

or.smallCacheSize: 256

17:25:29.611 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocat

or.normalCacheSize: 64

17:25:29.611 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocat

or.maxCachedBufferCapacity: 32768

17:25:29.611 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocat

or.cacheTrimInterval: 8192

17:25:29.612 [main] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocat

or.cacheCleanupInterval: 5000 ms

17:25:29.625 [main] DEBUG c.t.c.c.e.m.CommunicationEndpointMonitorTask - Initial

izing CommunicationEndpoint Connection Monitor...

17:25:29.627 [Client-EndpointMonitor-1] DEBUG c.t.c.c.e.m.CommunicationEndpointM

onitorTask - CommunicationEndpoint Monitor - checking for disconnected endpoints

17:25:29.629 [Client-EndpointMonitor-1] INFO  c.t.c.c.e.m.CommunicationEndpointM

onitorTask - Endpoint not connected [name: EP_0, id: 0]. Attempting [re]connect.

..

17:25:29.630 [Client-EndpointMonitor-1] DEBUG c.t.c.c.e.ClientCommunicationEndpo

int - Clearing endpoint authentication data [id: 0]

17:25:29.630 [Client-EndpointMonitor-1] INFO  c.t.c.c.e.ClientCommunicationEndpo

int - Needed to refill connections on client endpoint [id: 0] : [active: 0, max:

1]

17:25:29.666 [Client-EndpointMonitor-1] DEBUG i.n.util.internal.ThreadLocalRando

m - -Dio.netty.initialSeedUniquifier: 0x40c14c7f0c7b22ab

17:25:29.687 [Client-EndpointMonitor-1] DEBUG i.n.channel.ChannelOutboundBuffer

- -Dio.netty.threadLocalDirectBufferSize: 65536

17:25:29.689 [Client-EndpointMonitor-1] DEBUG io.netty.util.Recycler - -Dio.nett

y.recycler.maxCapacity.default: 262144

17:25:29.711 [Client-EndpointMonitor-1] DEBUG io.netty.buffer.ByteBufUtil - -Dio

.netty.allocator.type: unpooled

17:25:29.780 [NettyClient-NIO-1] DEBUG io.netty.util.ResourceLeakDetector - -Dio

.netty.leakDetectionLevel: simple

17:25:29.801 [NettyClient-NIO-1] DEBUG c.t.c.c.c.n.ThingworxClientConnectionHand

ler - WebSocket Channel is connected [is open: true]

17:25:29.805 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocketClientHandshaker13 -

WebSocket version 13 client handshake key: sW6fgDms0HpqYncK3C+V7w==, expected r

esponse: 7vJoUAL6kzGlp15gJP4zAFXtvVg=

17:25:29.853 [NettyClient-NIO-1] DEBUG c.t.c.c.c.n.ThingworxClientConnectionHand

ler - [ClientHandler: 1440736915] Client websocket handshake is complete

17:25:29.858 [Client-EndpointMonitor-1] INFO  c.t.c.c.e.ClientCommunicationEndpo

int - Preparing new Connection Authentication Request: DispatchingClientEndpoint

[id: 0, isConnected: false, open connections: 0, max connections: 1]

17:25:29.862 [Client-EndpointMonitor-1] DEBUG c.t.c.c.e.CommunicationEndpoint -

Sending connection authentication message, waiting for response [message: AuthRe

questMessage [requestId: 1, endpointId: -1, sessionId: -1, method: AUTHREQUEST]]

17:25:29.867 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=2 length=60

17:25:29.871 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=2

17:25:29.872 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=17

17:25:29.888 [Client-EndpointMonitor-1] INFO  c.t.c.c.e.ClientCommunicationEndpo

int - Authentication Request was SUCCESSFUL [tworx session id: 17, connection gr

oup id: 20]

17:25:29.889 [NettyClient-NIO-1] DEBUG c.t.c.c.e.DispatchingClientEndpoint - RES

PONSE received [endpoint id: 0, duration: 27] ResponseMessage [requestId: 1, end

pointId: 20, sessionId: 17, code: STATUS_SUCCESS, multipart: false, packet #: 0,

total packets: 0]

17:25:29.889 [Client-EndpointMonitor-1] DEBUG c.t.c.c.e.CommunicationEndpoint -

[Endpoint id: 0, connection id: 0-0] added Connection

17:25:29.890 [Client-EndpointMonitor-1] INFO  c.t.c.c.e.ClientCommunicationEndpo

int - Successfully reconnected client endpoint [id: 0] : [active: 1, max: 1]

17:25:29.890 [Client-EndpointMonitor-1] INFO  c.t.c.client.ConnectedThingClient

- Communications Endpoint Opened

17:25:29.893 [Client-EndpointMonitor-1] DEBUG c.t.c.c.e.CommunicationEndpoint -

Sending synchronous message, waiting for response [message: BindRequestMessage [

requestId: 2, method: BINDREQUEST, names: [EP_0, RemoteTruck, EP_0]]]

17:25:29.895 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=2 length=56

17:25:29.899 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=2

17:25:29.899 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=17

17:25:29.900 [NettyClient-NIO-1] DEBUG c.t.c.c.e.DispatchingClientEndpoint - RES

PONSE received [endpoint id: 0, duration: 7] ResponseMessage [requestId: 2, endp

ointId: -1, sessionId: -1, code: STATUS_SUCCESS, multipart: false, packet #: 0,

total packets: 0]

17:25:29.900 [Client-EndpointMonitor-1] INFO  c.t.c.c.e.m.CommunicationEndpointM

onitorTask - Endpoint reconnected [name: EP_0, id: 0]

17:25:30.899 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=2

17:25:30.899 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=45

17:25:30.903 [NettyClient-NIO-1] DEBUG c.t.c.c.e.DispatchingClientEndpoint - API

REQUEST received [endpoint id: 0] APIRequestMessage [requestId: 43, endpointId:

-1, sessionId: -1, method: POST, entityName: EP_0, characteristic: Unknown, tar

get: ]

17:25:30.906 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=2

17:25:30.906 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=52

17:25:30.906 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=2

17:25:30.907 [ClientProcessor-1] DEBUG c.t.c.c.e.CommunicationEndpoint - Sending

synchronous message, waiting for response [message: APIRequestMessage [requestI

d: 3, endpointId: 0, sessionId: 17, method: POST, entityName: EP_0, characterist

ic: Services, target: GetPropertySubscriptions]]

17:25:30.907 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=45

17:25:30.908 [NettyClient-NIO-1] DEBUG c.t.c.c.e.DispatchingClientEndpoint - API

REQUEST received [endpoint id: 0] APIRequestMessage [requestId: 44, endpointId:

-1, sessionId: -1, method: POST, entityName: RemoteTruck, characteristic: Unkno

wn, target: ]

17:25:30.909 [NettyClient-NIO-1] DEBUG c.t.c.c.e.DispatchingClientEndpoint - API

REQUEST received [endpoint id: 0] APIRequestMessage [requestId: 45, endpointId:

-1, sessionId: -1, method: POST, entityName: EP_0, characteristic: Unknown, tar

get: ]

17:25:30.909 [ClientProcessor-2] DEBUG c.t.c.c.e.CommunicationEndpoint - Sending

synchronous message, waiting for response [message: APIRequestMessage [requestI

d: 4, endpointId: 0, sessionId: 17, method: POST, entityName: RemoteTruck, chara

cteristic: Services, target: GetPropertySubscriptions]]

17:25:30.910 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=2 length=49

17:25:30.910 [ClientProcessor-3] DEBUG c.t.c.c.e.CommunicationEndpoint - Sending

synchronous message, waiting for response [message: APIRequestMessage [requestI

d: 5, endpointId: 0, sessionId: 17, method: POST, entityName: EP_0, characterist

ic: Services, target: GetPropertySubscriptions]]

17:25:30.911 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=2 length=56

17:25:30.912 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=2 length=49

17:25:30.913 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=2

17:25:30.914 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=223

17:25:30.915 [NettyClient-NIO-1] DEBUG c.t.c.c.e.DispatchingClientEndpoint - RES

PONSE received [endpoint id: 0, duration: 8] ResponseMessage [requestId: 3, endp

ointId: 0, sessionId: -1, code: STATUS_SUCCESS, multipart: false, packet #: 0, t

otal packets: 0]

17:25:30.916 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=2

17:25:30.916 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=223

17:25:30.916 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=2

17:25:30.917 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=223

17:25:30.917 [NettyClient-NIO-1] DEBUG c.t.c.c.e.DispatchingClientEndpoint - RES

PONSE received [endpoint id: 0, duration: 8] ResponseMessage [requestId: 4, endp

ointId: 0, sessionId: -1, code: STATUS_SUCCESS, multipart: false, packet #: 0, t

otal packets: 0]

17:25:30.918 [NettyClient-NIO-1] DEBUG c.t.c.c.e.DispatchingClientEndpoint - RES

PONSE received [endpoint id: 0, duration: 8] ResponseMessage [requestId: 5, endp

ointId: 0, sessionId: -1, code: STATUS_SUCCESS, multipart: false, packet #: 0, t

otal packets: 0]

17:25:30.920 [ClientProcessor-1] DEBUG c.t.c.c.e.CommunicationEndpoint - Sending

synchronous message, waiting for response [message: APIRequestMessage [requestI

d: 6, endpointId: 0, sessionId: 17, method: POST, entityName: EP_0, characterist

ic: Services, target: GetEventSubscriptions]]

17:25:30.920 [ClientProcessor-2] DEBUG c.t.c.c.e.CommunicationEndpoint - Sending

synchronous message, waiting for response [message: APIRequestMessage [requestI

d: 8, endpointId: 0, sessionId: 17, method: POST, entityName: RemoteTruck, chara

cteristic: Services, target: GetEventSubscriptions]]

17:25:30.920 [ClientProcessor-3] DEBUG c.t.c.c.e.CommunicationEndpoint - Sending

synchronous message, waiting for response [message: APIRequestMessage [requestI

d: 7, endpointId: 0, sessionId: 17, method: POST, entityName: EP_0, characterist

ic: Services, target: GetEventSubscriptions]]

17:25:30.921 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=2 length=46

17:25:30.922 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=2 length=53

17:25:30.923 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=2 length=46

17:25:30.925 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=2

17:25:30.925 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=63

17:25:30.926 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=2

17:25:30.926 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=63

17:25:30.927 [NettyClient-NIO-1] DEBUG c.t.c.c.e.DispatchingClientEndpoint - RES

PONSE received [endpoint id: 0, duration: 7] ResponseMessage [requestId: 6, endp

ointId: 0, sessionId: -1, code: STATUS_SUCCESS, multipart: false, packet #: 0, t

otal packets: 0]

17:25:30.928 [NettyClient-NIO-1] DEBUG c.t.c.c.e.DispatchingClientEndpoint - RES

PONSE received [endpoint id: 0, duration: 7] ResponseMessage [requestId: 8, endp

ointId: 0, sessionId: -1, code: STATUS_SUCCESS, multipart: false, packet #: 0, t

otal packets: 0]

17:25:30.928 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=2 length=17

17:25:30.929 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=2 length=17

17:25:30.930 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=2

17:25:30.930 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=63

17:25:30.931 [NettyClient-NIO-1] DEBUG c.t.c.c.e.DispatchingClientEndpoint - RES

PONSE received [endpoint id: 0, duration: 11] ResponseMessage [requestId: 7, end

pointId: 0, sessionId: -1, code: STATUS_SUCCESS, multipart: false, packet #: 0,

total packets: 0]

17:25:30.931 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=2 length=17

17:26:15.935 [NettyClient-NIO-1] DEBUG c.t.c.c.c.n.ThingworxClientConnectionHand

ler - [ClientHandler: 1440736915] Client has been idle, sending websocket ping..

.

17:26:15.937 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=9 length=0

17:26:15.940 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=10

17:26:15.940 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=0

17:26:29.901 [Client-EndpointMonitor-1] DEBUG c.t.c.c.e.m.CommunicationEndpointM

onitorTask - CommunicationEndpoint Monitor - checking for disconnected endpoints

17:27:00.939 [NettyClient-NIO-1] DEBUG c.t.c.c.c.n.ThingworxClientConnectionHand

ler - [ClientHandler: 1440736915] Client has been idle, sending websocket ping..

.

17:27:00.939 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=9 length=0

17:27:00.940 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=10

17:27:00.940 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=0

17:27:29.902 [Client-EndpointMonitor-1] DEBUG c.t.c.c.e.m.CommunicationEndpointM

onitorTask - CommunicationEndpoint Monitor - checking for disconnected endpoints

17:27:45.940 [NettyClient-NIO-1] DEBUG c.t.c.c.c.n.ThingworxClientConnectionHand

ler - [ClientHandler: 1440736915] Client has been idle, sending websocket ping..

.

17:27:45.940 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=9 length=0

17:27:45.942 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=10

17:27:45.943 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=0

17:28:29.902 [Client-EndpointMonitor-1] DEBUG c.t.c.c.e.m.CommunicationEndpointM

onitorTask - CommunicationEndpoint Monitor - checking for disconnected endpoints

17:28:30.943 [NettyClient-NIO-1] DEBUG c.t.c.c.c.n.ThingworxClientConnectionHand

ler - [ClientHandler: 1440736915] Client has been idle, sending websocket ping..

.

17:28:30.943 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=9 length=0

17:28:30.945 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=10

17:28:30.945 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=0

17:29:15.945 [NettyClient-NIO-1] DEBUG c.t.c.c.c.n.ThingworxClientConnectionHand

ler - [ClientHandler: 1440736915] Client has been idle, sending websocket ping..

.

17:29:15.945 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=9 length=0

17:29:15.946 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=10

17:29:15.946 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=0

17:29:29.904 [Client-EndpointMonitor-1] DEBUG c.t.c.c.e.m.CommunicationEndpointM

onitorTask - CommunicationEndpoint Monitor - checking for disconnected endpoints

17:30:00.946 [NettyClient-NIO-1] DEBUG c.t.c.c.c.n.ThingworxClientConnectionHand

ler - [ClientHandler: 1440736915] Client has been idle, sending websocket ping..

.

17:30:00.946 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=9 length=0

17:30:00.947 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=10

17:30:00.947 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=0

17:30:29.905 [Client-EndpointMonitor-1] DEBUG c.t.c.c.e.m.CommunicationEndpointM

onitorTask - CommunicationEndpoint Monitor - checking for disconnected endpoints

17:30:45.947 [NettyClient-NIO-1] DEBUG c.t.c.c.c.n.ThingworxClientConnectionHand

ler - [ClientHandler: 1440736915] Client has been idle, sending websocket ping..

.

17:30:45.947 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Enc

oding WebSocket Frame opCode=9 length=0

17:30:45.948 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame opCode=10

17:30:45.948 [NettyClient-NIO-1] DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Dec

oding WebSocket Frame length=0

Re: What's the matter on installation EMS java sdk?

Hi Ji young Lee​,

Please make sure to update the TrainingConfig.json file.

Here is the screenshot of my file:

You need to create your own Appkey.

I hope it helps.

Re: What's the matter on installation EMS java sdk?

Hello Ankit Gupta

Thank you for your answer.

Appkey isn't admin_key on the thingworx composer?

Should I create own Appkey? Then how to insert it?

I did "<insert Appkey( -- )>" but it was failed.

Re: What's the matter on installation EMS java sdk?

Hi Ji young Lee​,

The Java SDK seems connected. Are you seeing anything in the unbound Remote Things?

Re: What's the matter on installation EMS java sdk?

You can check it from Monitoring -> Remote Things -> Unbound tab.

Re: What's the matter on installation EMS java sdk?

App Key is bound to a user so like Ankit said you need to create your own App Key from ThingWorx Composer > Security > Application Key and during creation you will bind a user, to that app key which will define what sort of rights/permissions AppKey will get by default. So if you are creating appKey using Administrator user appkey will have the admin rights