2021-06-14 19:17:41.262 5349-5349/com.example.myapp I/System.out: 17:17:41.253 [main] DEBUG io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework 2021-06-14 19:17:41.278 5349-5349/com.example.myapp I/System.out: 17:17:41.274 [main] DEBUG io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 8 2021-06-14 19:17:41.311 5349-5349/com.example.myapp I/System.out: 17:17:41.307 [main] DEBUG io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false 2021-06-14 19:17:41.314 5349-5349/com.example.myapp I/System.out: 17:17:41.311 [main] DEBUG io.netty.util.internal.PlatformDependent0 - Platform: Android 2021-06-14 19:17:41.318 5349-5349/com.example.myapp I/System.out: 17:17:41.315 [main] DEBUG io.netty.util.internal.PlatformDependent0 - Java version: 6 2021-06-14 19:17:41.321 5349-5349/com.example.myapp I/System.out: 17:17:41.318 [main] DEBUG io.netty.util.internal.PlatformDependent0 - Platform: Android 2021-06-14 19:17:41.326 5349-5349/com.example.myapp I/System.out: 17:17:41.323 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available 2021-06-14 19:17:41.344 5349-5349/com.example.myapp I/System.out: 17:17:41.331 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: unavailable 2021-06-14 19:17:41.344 5349-5349/com.example.myapp I/System.out: java.lang.NoSuchMethodException: sun.misc.Unsafe.copyMemory [class java.lang.Object, long, class java.lang.Object, long, long] 2021-06-14 19:17:41.344 5349-5349/com.example.myapp I/System.out: at java.lang.Class.getMethod(Class.java:2072) 2021-06-14 19:17:41.344 5349-5349/com.example.myapp I/System.out: at java.lang.Class.getDeclaredMethod(Class.java:2050) 2021-06-14 19:17:41.344 5349-5349/com.example.myapp I/System.out: at io.netty.util.internal.PlatformDependent0$2.run(PlatformDependent0.java:121) 2021-06-14 19:17:41.344 5349-5349/com.example.myapp I/System.out: at java.security.AccessController.doPrivileged(AccessController.java:43) 2021-06-14 19:17:41.344 5349-5349/com.example.myapp I/System.out: at io.netty.util.internal.PlatformDependent0.(PlatformDependent0.java:117) 2021-06-14 19:17:41.344 5349-5349/com.example.myapp I/System.out: at io.netty.util.internal.PlatformDependent0.isAndroid(PlatformDependent0.java:765) 2021-06-14 19:17:41.345 5349-5349/com.example.myapp I/System.out: at io.netty.util.internal.PlatformDependent.isAndroid(PlatformDependent.java:202) 2021-06-14 19:17:41.345 5349-5349/com.example.myapp I/System.out: at io.netty.util.internal.PlatformDependent.(PlatformDependent.java:79) 2021-06-14 19:17:41.345 5349-5349/com.example.myapp I/System.out: at io.netty.util.internal.PlatformDependent.newConcurrentHashMap(PlatformDependent.java:327) 2021-06-14 19:17:41.345 5349-5349/com.example.myapp I/System.out: at io.netty.util.ConstantPool.(ConstantPool.java:32) 2021-06-14 19:17:41.345 5349-5349/com.example.myapp I/System.out: at io.netty.util.Signal$1.(Signal.java:27) 2021-06-14 19:17:41.345 5349-5349/com.example.myapp I/System.out: at io.netty.util.Signal.(Signal.java:27) 2021-06-14 19:17:41.345 5349-5349/com.example.myapp I/System.out: at io.netty.util.Signal.valueOf(Signal.java:45) 2021-06-14 19:17:41.345 5349-5349/com.example.myapp I/System.out: at io.netty.util.concurrent.DefaultPromise.(DefaultPromise.java:43) 2021-06-14 19:17:41.345 5349-5349/com.example.myapp I/System.out: at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:36) 2021-06-14 19:17:41.345 5349-5349/com.example.myapp I/System.out: at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:58) 2021-06-14 19:17:41.345 5349-5349/com.example.myapp I/System.out: at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:47) 2021-06-14 19:17:41.345 5349-5349/com.example.myapp I/System.out: at io.netty.channel.MultithreadEventLoopGroup.(MultithreadEventLoopGroup.java:59) 2021-06-14 19:17:41.345 5349-5349/com.example.myapp I/System.out: at io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:77) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:72) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:59) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory.(NettyClientConnectionFactory.java:325) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory.(NettyClientConnectionFactory.java:51) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory$Builder.build(NettyClientConnectionFactory.java:230) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at com.thingworx.communications.client.BaseClient.createDefaultClientConnectionFactory(BaseClient.java:231) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at com.thingworx.communications.client.BaseClient.getClientConnectionFactory(BaseClient.java:243) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at com.thingworx.communications.client.BaseClient.initialize(BaseClient.java:183) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at com.thingworx.communications.client.BaseClient.(BaseClient.java:127) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at com.thingworx.communications.client.ConnectedThingClient.(ConnectedThingClient.java:100) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at com.thingworx.communications.client.ConnectedThingClient.(ConnectedThingClient.java:88) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at com.example.myapp.SimpleClient.(SimpleClient.java:46) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at com.example.myapp.SimpleClient.notifyServer(SimpleClient.java:60) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at com.example.myapp.MainActivity$1.onClick(MainActivity.java:45) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at android.view.View.performClick(View.java:7448) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at android.view.View.performClickInternal(View.java:7425) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at android.view.View.access$3600(View.java:810) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at android.view.View$PerformClick.run(View.java:28305) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at android.os.Handler.handleCallback(Handler.java:938) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at android.os.Handler.dispatchMessage(Handler.java:99) 2021-06-14 19:17:41.346 5349-5349/com.example.myapp I/System.out: at android.os.Looper.loop(Looper.java:223) 2021-06-14 19:17:41.347 5349-5349/com.example.myapp I/System.out: at android.app.ActivityThread.main(ActivityThread.java:7656) 2021-06-14 19:17:41.347 5349-5349/com.example.myapp I/System.out: at java.lang.reflect.Method.invoke(Native Method) 2021-06-14 19:17:41.347 5349-5349/com.example.myapp I/System.out: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) 2021-06-14 19:17:41.347 5349-5349/com.example.myapp I/System.out: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) 2021-06-14 19:17:41.350 5349-5349/com.example.myapp I/System.out: 17:17:41.347 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.(long, int): unavailable 2021-06-14 19:17:41.354 5349-5349/com.example.myapp I/System.out: 17:17:41.351 [main] DEBUG io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: unavailable (Android) 2021-06-14 19:17:41.354 5349-5349/com.example.myapp W/m.example.myap: Accessing hidden method Lsun/misc/VM;->maxDirectMemory()J (greylist, reflection, allowed) 2021-06-14 19:17:41.358 5349-5349/com.example.myapp I/System.out: 17:17:41.355 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: /data/user/0/com.example.myapp/cache (java.io.tmpdir) 2021-06-14 19:17:41.362 5349-5349/com.example.myapp I/System.out: 17:17:41.360 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: true 2021-06-14 19:17:41.365 5349-5349/com.example.myapp I/System.out: 17:17:41.363 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: -1 bytes 2021-06-14 19:17:41.368 5349-5349/com.example.myapp I/System.out: 17:17:41.366 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1 2021-06-14 19:17:41.393 5349-5349/com.example.myapp I/System.out: 17:17:41.390 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false 2021-06-14 19:17:41.396 5349-5349/com.example.myapp I/System.out: 17:17:41.393 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512 2021-06-14 19:17:41.403 5349-5349/com.example.myapp I/System.out: 17:17:41.400 [main] DEBUG io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: unavailable 2021-06-14 19:17:41.407 5349-5349/com.example.myapp W/m.example.myap: Accessing hidden field Lsun/nio/ch/SelectorImpl;->selectedKeys:Ljava/util/Set; (greylist, reflection, allowed) 2021-06-14 19:17:41.408 5349-5349/com.example.myapp W/m.example.myap: Accessing hidden field Lsun/nio/ch/SelectorImpl;->publicSelectedKeys:Ljava/util/Set; (greylist, reflection, allowed) 2021-06-14 19:17:41.428 5349-5349/com.example.myapp I/System.out: 17:17:41.425 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 2 2021-06-14 19:17:41.431 5349-5349/com.example.myapp I/System.out: 17:17:41.428 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 0 2021-06-14 19:17:41.435 5349-5349/com.example.myapp I/System.out: 17:17:41.432 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192 2021-06-14 19:17:41.438 5349-5349/com.example.myapp I/System.out: 17:17:41.435 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 11 2021-06-14 19:17:41.442 5349-5349/com.example.myapp I/System.out: 17:17:41.439 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 16777216 2021-06-14 19:17:41.446 5349-5349/com.example.myapp I/System.out: 17:17:41.443 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.tinyCacheSize: 512 2021-06-14 19:17:41.450 5349-5349/com.example.myapp I/System.out: 17:17:41.447 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256 2021-06-14 19:17:41.453 5349-5349/com.example.myapp I/System.out: 17:17:41.450 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64 2021-06-14 19:17:41.456 5349-5349/com.example.myapp I/System.out: 17:17:41.453 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768 2021-06-14 19:17:41.459 5349-5349/com.example.myapp I/System.out: 17:17:41.456 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192 2021-06-14 19:17:41.462 5349-5349/com.example.myapp I/System.out: 17:17:41.459 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: true 2021-06-14 19:17:41.471 5349-5349/com.example.myapp I/System.out: 17:17:41.468 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024 2021-06-14 19:17:41.474 5349-5349/com.example.myapp I/System.out: 17:17:41.471 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096 2021-06-14 19:17:41.486 5349-5349/com.example.myapp I/System.out: 17:17:41.484 [main] INFO com.thingworx.communications.client.processor.ClientMessageProcessor - Created new ClientMessageProcessor [minPoolSize: 4, maxPoolSize: 10, maxThreadLife: 10000, maxQueueSize: 1000] 2021-06-14 19:17:41.491 5349-5349/com.example.myapp I/System.out: 17:17:41.489 [main] DEBUG com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask - Initializing CommunicationEndpoint Connection Monitor... 2021-06-14 19:17:41.498 5349-5388/com.example.myapp I/System.out: 17:17:41.495 [Client-EndpointMonitor-1] DEBUG com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask - Resetting duty cycle 2021-06-14 19:17:41.501 5349-5388/com.example.myapp I/System.out: 17:17:41.498 [Client-EndpointMonitor-1] DEBUG com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask - Entering duty cycle ON 2021-06-14 19:17:41.504 5349-5388/com.example.myapp I/System.out: 17:17:41.501 [Client-EndpointMonitor-1] INFO com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask - Endpoint not connected [name: EP_0, id: 0]. Attempting [re]connect in 0 seconds... 2021-06-14 19:17:41.507 5349-5388/com.example.myapp I/System.out: 17:17:41.504 [Client-EndpointMonitor-1] DEBUG com.thingworx.communications.client.endpoints.ClientCommunicationEndpoint - Clearing endpoint authentication data [id: 0] 2021-06-14 19:17:41.510 5349-5388/com.example.myapp I/System.out: 17:17:41.507 [Client-EndpointMonitor-1] INFO com.thingworx.communications.client.endpoints.ClientCommunicationEndpoint - Needed to refill connections on client endpoint [id: 0] : [active: 0, max: 1] 2021-06-14 19:17:41.550 5349-5388/com.example.myapp I/System.out: 17:17:41.544 [Client-EndpointMonitor-1] DEBUG io.netty.channel.DefaultChannelId - Could not invoke ManagementFactory.getRuntimeMXBean().getName(); Android? 2021-06-14 19:17:41.550 5349-5388/com.example.myapp I/System.out: java.lang.ClassNotFoundException: java.lang.management.ManagementFactory 2021-06-14 19:17:41.551 5349-5388/com.example.myapp I/System.out: at java.lang.Class.classForName(Native Method) 2021-06-14 19:17:41.551 5349-5388/com.example.myapp I/System.out: at java.lang.Class.forName(Class.java:454) 2021-06-14 19:17:41.551 5349-5388/com.example.myapp I/System.out: at io.netty.channel.DefaultChannelId.defaultProcessId(DefaultChannelId.java:114) 2021-06-14 19:17:41.551 5349-5388/com.example.myapp I/System.out: at io.netty.channel.DefaultChannelId.(DefaultChannelId.java:77) 2021-06-14 19:17:41.551 5349-5388/com.example.myapp I/System.out: at io.netty.channel.DefaultChannelId.newInstance(DefaultChannelId.java:55) 2021-06-14 19:17:41.551 5349-5388/com.example.myapp I/System.out: at io.netty.channel.AbstractChannel.newId(AbstractChannel.java:111) 2021-06-14 19:17:41.551 5349-5388/com.example.myapp I/System.out: at io.netty.channel.AbstractChannel.(AbstractChannel.java:83) 2021-06-14 19:17:41.551 5349-5388/com.example.myapp I/System.out: at io.netty.channel.nio.AbstractNioChannel.(AbstractNioChannel.java:84) 2021-06-14 19:17:41.551 5349-5388/com.example.myapp I/System.out: at io.netty.channel.nio.AbstractNioByteChannel.(AbstractNioByteChannel.java:55) 2021-06-14 19:17:41.551 5349-5388/com.example.myapp I/System.out: at io.netty.channel.socket.nio.NioSocketChannel.(NioSocketChannel.java:98) 2021-06-14 19:17:41.551 5349-5388/com.example.myapp I/System.out: at io.netty.channel.socket.nio.NioSocketChannel.(NioSocketChannel.java:88) 2021-06-14 19:17:41.551 5349-5388/com.example.myapp I/System.out: at io.netty.channel.socket.nio.NioSocketChannel.(NioSocketChannel.java:81) 2021-06-14 19:17:41.551 5349-5388/com.example.myapp I/System.out: at io.netty.channel.socket.nio.NioSocketChannel.(NioSocketChannel.java:74) 2021-06-14 19:17:41.551 5349-5388/com.example.myapp I/System.out: at java.lang.reflect.Constructor.newInstance0(Native Method) 2021-06-14 19:17:41.552 5349-5388/com.example.myapp I/System.out: at java.lang.reflect.Constructor.newInstance(Constructor.java:343) 2021-06-14 19:17:41.552 5349-5388/com.example.myapp I/System.out: at io.netty.channel.ReflectiveChannelFactory.newChannel(ReflectiveChannelFactory.java:38) 2021-06-14 19:17:41.552 5349-5388/com.example.myapp I/System.out: at io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:321) 2021-06-14 19:17:41.552 5349-5388/com.example.myapp I/System.out: at io.netty.bootstrap.Bootstrap.doResolveAndConnect(Bootstrap.java:163) 2021-06-14 19:17:41.552 5349-5388/com.example.myapp I/System.out: at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:145) 2021-06-14 19:17:41.552 5349-5388/com.example.myapp I/System.out: at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:126) 2021-06-14 19:17:41.552 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory.createConnection(NettyClientConnectionFactory.java:395) 2021-06-14 19:17:41.552 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.client.endpoints.ClientCommunicationEndpoint.refillConnections(ClientCommunicationEndpoint.java:234) 2021-06-14 19:17:41.553 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask.dutyCycleOn(ConnectivityMonitorTask.java:159) 2021-06-14 19:17:41.553 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask.run(ConnectivityMonitorTask.java:306) 2021-06-14 19:17:41.553 5349-5388/com.example.myapp I/System.out: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 2021-06-14 19:17:41.553 5349-5388/com.example.myapp I/System.out: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 2021-06-14 19:17:41.553 5349-5388/com.example.myapp I/System.out: at java.lang.Thread.run(Thread.java:923) 2021-06-14 19:17:41.553 5349-5388/com.example.myapp I/System.out: Caused by: java.lang.ClassNotFoundException: Didn't find class "java.lang.management.ManagementFactory" on path: DexPathList[[zip file "/data/app/~~9o84GGJR6cOzUDFN6IAzSw==/com.example.myapp-J2ttrWIKonUdev7mJlfOmw==/base.apk"],nativeLibraryDirectories=[/data/app/~~9o84GGJR6cOzUDFN6IAzSw==/com.example.myapp-J2ttrWIKonUdev7mJlfOmw==/lib/arm64, /system/lib64]] 2021-06-14 19:17:41.553 5349-5388/com.example.myapp I/System.out: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207) 2021-06-14 19:17:41.553 5349-5388/com.example.myapp I/System.out: at java.lang.ClassLoader.loadClass(ClassLoader.java:379) 2021-06-14 19:17:41.553 5349-5388/com.example.myapp I/System.out: at java.lang.ClassLoader.loadClass(ClassLoader.java:312) 2021-06-14 19:17:41.553 5349-5388/com.example.myapp I/System.out: ... 27 common frames omitted 2021-06-14 19:17:41.558 5349-5388/com.example.myapp I/System.out: 17:17:41.555 [Client-EndpointMonitor-1] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.processId: 5349 (auto-detected) 2021-06-14 19:17:41.567 5349-5388/com.example.myapp I/System.out: 17:17:41.565 [Client-EndpointMonitor-1] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: false 2021-06-14 19:17:41.570 5349-5388/com.example.myapp I/System.out: 17:17:41.567 [Client-EndpointMonitor-1] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false 2021-06-14 19:17:41.578 5349-5388/com.example.myapp I/System.out: 17:17:41.575 [Client-EndpointMonitor-1] DEBUG io.netty.util.NetUtil - Loopback interface: lo (lo, ::1) 2021-06-14 19:17:41.587 5349-5388/com.example.myapp I/System.out: 17:17:41.581 [Client-EndpointMonitor-1] DEBUG io.netty.util.NetUtil - Failed to get SOMAXCONN from sysctl and file /proc/sys/net/core/somaxconn. Default: 128 2021-06-14 19:17:41.587 5349-5388/com.example.myapp I/System.out: java.io.FileNotFoundException: /proc/sys/net/core/somaxconn: open failed: EACCES (Permission denied) 2021-06-14 19:17:41.587 5349-5388/com.example.myapp I/System.out: at libcore.io.IoBridge.open(IoBridge.java:492) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at java.io.FileInputStream.(FileInputStream.java:160) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at java.io.FileReader.(FileReader.java:72) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at io.netty.util.NetUtil$1.run(NetUtil.java:266) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at io.netty.util.NetUtil$1.run(NetUtil.java:251) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at java.security.AccessController.doPrivileged(AccessController.java:43) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at io.netty.util.NetUtil.(NetUtil.java:251) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at io.netty.util.internal.MacAddressUtil.bestAvailableMac(MacAddressUtil.java:50) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at io.netty.util.internal.MacAddressUtil.defaultMachineId(MacAddressUtil.java:138) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at io.netty.channel.DefaultChannelId.(DefaultChannelId.java:99) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at io.netty.channel.DefaultChannelId.newInstance(DefaultChannelId.java:55) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at io.netty.channel.AbstractChannel.newId(AbstractChannel.java:111) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at io.netty.channel.AbstractChannel.(AbstractChannel.java:83) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at io.netty.channel.nio.AbstractNioChannel.(AbstractNioChannel.java:84) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at io.netty.channel.nio.AbstractNioByteChannel.(AbstractNioByteChannel.java:55) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at io.netty.channel.socket.nio.NioSocketChannel.(NioSocketChannel.java:98) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at io.netty.channel.socket.nio.NioSocketChannel.(NioSocketChannel.java:88) 2021-06-14 19:17:41.588 5349-5388/com.example.myapp I/System.out: at io.netty.channel.socket.nio.NioSocketChannel.(NioSocketChannel.java:81) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at io.netty.channel.socket.nio.NioSocketChannel.(NioSocketChannel.java:74) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at java.lang.reflect.Constructor.newInstance0(Native Method) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at java.lang.reflect.Constructor.newInstance(Constructor.java:343) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at io.netty.channel.ReflectiveChannelFactory.newChannel(ReflectiveChannelFactory.java:38) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:321) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at io.netty.bootstrap.Bootstrap.doResolveAndConnect(Bootstrap.java:163) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:145) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:126) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory.createConnection(NettyClientConnectionFactory.java:395) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.client.endpoints.ClientCommunicationEndpoint.refillConnections(ClientCommunicationEndpoint.java:234) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask.dutyCycleOn(ConnectivityMonitorTask.java:159) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask.run(ConnectivityMonitorTask.java:306) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at java.lang.Thread.run(Thread.java:923) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at libcore.io.Linux.open(Native Method) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at libcore.io.ForwardingOs.open(ForwardingOs.java:166) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:254) 2021-06-14 19:17:41.589 5349-5388/com.example.myapp I/System.out: at libcore.io.ForwardingOs.open(ForwardingOs.java:166) 2021-06-14 19:17:41.590 5349-5388/com.example.myapp I/System.out: at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7542) 2021-06-14 19:17:41.590 5349-5388/com.example.myapp I/System.out: at libcore.io.IoBridge.open(IoBridge.java:478) 2021-06-14 19:17:41.590 5349-5388/com.example.myapp I/System.out: ... 32 common frames omitted 2021-06-14 19:17:41.599 5349-5388/com.example.myapp I/System.out: 17:17:41.597 [Client-EndpointMonitor-1] DEBUG io.netty.util.internal.ThreadLocalRandom - -Dio.netty.initialSeedUniquifier: 0x26eb02e42066c404 2021-06-14 19:17:41.604 5349-5388/com.example.myapp I/System.out: 17:17:41.601 [Client-EndpointMonitor-1] WARN io.netty.util.internal.MacAddressUtil - Failed to find a usable hardware address from the network interfaces; using random bytes: ea:e3:75:f4:c4:02:cf:30 2021-06-14 19:17:41.576 5349-5349/com.example.myapp W/Client-Endpoint: type=1400 audit(0.0:108): avc: denied { read } for name="somaxconn" dev="proc" ino=216266 scontext=u:r:untrusted_app:s0:c107,c256,c512,c768 tcontext=u:object_r:proc_net:s0 tclass=file permissive=0 app=com.example.myapp 2021-06-14 19:17:41.609 5349-5388/com.example.myapp I/System.out: 17:17:41.606 [Client-EndpointMonitor-1] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.machineId: ea:e3:75:f4:c4:02:cf:30 (auto-detected) 2021-06-14 19:17:41.632 5349-5388/com.example.myapp I/System.out: 17:17:41.630 [Client-EndpointMonitor-1] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple 2021-06-14 19:17:41.635 5349-5388/com.example.myapp I/System.out: 17:17:41.632 [Client-EndpointMonitor-1] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.maxRecords: 4 2021-06-14 19:17:41.657 5349-5388/com.example.myapp I/System.out: 17:17:41.655 [Client-EndpointMonitor-1] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: unpooled 2021-06-14 19:17:41.660 5349-5388/com.example.myapp I/System.out: 17:17:41.658 [Client-EndpointMonitor-1] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 65536 2021-06-14 19:17:41.663 5349-5388/com.example.myapp I/System.out: 17:17:41.661 [Client-EndpointMonitor-1] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384 2021-06-14 19:17:41.692 5349-5390/com.example.myapp I/System.out: 17:17:41.690 [NettyClient-NIO-1] DEBUG com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory - initializing a secure websocket connection [ignore ssl errors: true] 2021-06-14 19:17:41.751 5349-5390/com.example.myapp I/System.out: 17:17:41.749 [NettyClient-NIO-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.bytebuf.checkAccessible: true 2021-06-14 19:17:41.756 5349-5390/com.example.myapp I/System.out: 17:17:41.754 [NettyClient-NIO-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@2092f3 2021-06-14 19:17:41.792 5349-5390/com.example.myapp I/System.out: 17:17:41.790 [NettyClient-NIO-1] DEBUG com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory - Adding compression handler to pipeline 2021-06-14 19:17:41.799 5349-5390/com.example.myapp I/System.out: 17:17:41.797 [NettyClient-NIO-1] DEBUG io.netty.handler.codec.compression.ZlibCodecFactory - -Dio.netty.noJdkZlibDecoder: true 2021-06-14 19:17:41.802 5349-5390/com.example.myapp I/System.out: 17:17:41.800 [NettyClient-NIO-1] DEBUG io.netty.handler.codec.compression.ZlibCodecFactory - -Dio.netty.noJdkZlibEncoder: false 2021-06-14 19:17:51.677 5349-5388/com.example.myapp I/System.out: 17:17:51.674 [Client-EndpointMonitor-1] ERROR com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory - Exception occurred while connecting to server 2021-06-14 19:17:51.677 5349-5388/com.example.myapp I/System.out: java.util.concurrent.TimeoutException: timeout waiting for websocket handshake to complete 2021-06-14 19:17:51.677 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory$HandshakeCompletionNotifier.await(NettyClientConnectionFactory.java:693) 2021-06-14 19:17:51.678 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory.createConnection(NettyClientConnectionFactory.java:398) 2021-06-14 19:17:51.678 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.client.endpoints.ClientCommunicationEndpoint.refillConnections(ClientCommunicationEndpoint.java:234) 2021-06-14 19:17:51.678 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask.dutyCycleOn(ConnectivityMonitorTask.java:159) 2021-06-14 19:17:51.678 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask.run(ConnectivityMonitorTask.java:306) 2021-06-14 19:17:51.678 5349-5388/com.example.myapp I/System.out: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 2021-06-14 19:17:51.678 5349-5388/com.example.myapp I/System.out: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 2021-06-14 19:17:51.678 5349-5388/com.example.myapp I/System.out: at java.lang.Thread.run(Thread.java:923) 2021-06-14 19:17:51.680 5349-5388/com.example.myapp I/System.out: 17:17:51.678 [Client-EndpointMonitor-1] INFO com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory - forcing underlying tcp channel closed [is open: false, is active: false] 2021-06-14 19:17:51.684 5349-5388/com.example.myapp I/System.out: 17:17:51.681 [Client-EndpointMonitor-1] ERROR com.thingworx.communications.client.endpoints.ClientCommunicationEndpoint - Refilling connections on [endpoint 0, uri: wss://xxxxxxxxxxxx/Thingworx/WS] failed : timeout waiting for websocket handshake to complete 2021-06-14 19:17:51.688 5349-5388/com.example.myapp I/System.out: 17:17:51.685 [Client-EndpointMonitor-1] ERROR com.thingworx.communications.client.endpoints.ClientCommunicationEndpoint - Exception refilling connections was: 2021-06-14 19:17:51.688 5349-5388/com.example.myapp I/System.out: java.util.concurrent.TimeoutException: timeout waiting for websocket handshake to complete 2021-06-14 19:17:51.688 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory$HandshakeCompletionNotifier.await(NettyClientConnectionFactory.java:693) 2021-06-14 19:17:51.688 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory.createConnection(NettyClientConnectionFactory.java:398) 2021-06-14 19:17:51.688 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.client.endpoints.ClientCommunicationEndpoint.refillConnections(ClientCommunicationEndpoint.java:234) 2021-06-14 19:17:51.688 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask.dutyCycleOn(ConnectivityMonitorTask.java:159) 2021-06-14 19:17:51.689 5349-5388/com.example.myapp I/System.out: at com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask.run(ConnectivityMonitorTask.java:306) 2021-06-14 19:17:51.689 5349-5388/com.example.myapp I/System.out: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 2021-06-14 19:17:51.689 5349-5388/com.example.myapp I/System.out: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 2021-06-14 19:17:51.689 5349-5388/com.example.myapp I/System.out: at java.lang.Thread.run(Thread.java:923) 2021-06-14 19:17:51.691 5349-5388/com.example.myapp I/System.out: 17:17:51.689 [Client-EndpointMonitor-1] INFO com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask - Endpoint reconnection was unsuccessful [name: EP_0, id: 0] 2021-06-14 19:17:52.695 5349-5388/com.example.myapp I/System.out: 17:17:52.693 [Client-EndpointMonitor-1] DEBUG com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask - Entering duty cycle ON 2021-06-14 19:17:52.699 5349-5388/com.example.myapp I/System.out: 17:17:52.696 [Client-EndpointMonitor-1] INFO com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask - Endpoint not connected [name: EP_0, id: 0]. Attempting [re]connect in 60 seconds... 2021-06-14 19:18:11.529 5349-5349/com.example.myapp I/System.out: 17:18:11.526 [main] WARN com.example.myapp.SimpleClient - Client did not connect within 30 seconds. Exiting 2021-06-14 19:18:11.532 5349-5349/com.example.myapp I/System.out: 17:18:11.529 [main] INFO com.thingworx.communications.client.BaseClient - CommunicationEndpoint Monitor - STOPPING... 2021-06-14 19:18:11.536 5349-5349/com.example.myapp I/System.out: 17:18:11.533 [main] INFO com.thingworx.communications.client.BaseClient - CommunicationEndpoint Monitor - OFF 2021-06-14 19:18:11.539 5349-5388/com.example.myapp I/System.out: 17:18:11.536 [Client-EndpointMonitor-1] INFO com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask - CommunicationEndpoint Monitor was interrupted, system is probably shutting down 2021-06-14 19:18:11.542 5349-5349/com.example.myapp I/System.out: 17:18:11.537 [main] INFO com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory - NettyClientConnectionFactory - STOPPING 2021-06-14 19:18:11.544 5349-5388/com.example.myapp I/System.out: 17:18:11.540 [Client-EndpointMonitor-1] INFO com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask - CommunicationEndpoint Monitor - exiting 2021-06-14 19:18:11.550 5349-5349/com.example.myapp I/System.out: 17:18:11.546 [main] INFO com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory - NettyClientConnectionFactory - OFF 2021-06-14 19:18:11.553 5349-5349/com.example.myapp I/System.out: 17:18:11.550 [main] DEBUG com.thingworx.communications.common.endpoints.CommunicationEndpoint - [Endpoint id: 0] closing 2021-06-14 19:18:11.557 5349-5349/com.example.myapp I/System.out: 17:18:11.554 [main] DEBUG com.thingworx.communications.client.endpoints.ClientCommunicationEndpoint - Clearing endpoint authentication data [id: 0] 2021-06-14 19:18:11.563 5349-5349/com.example.myapp I/System.out: 17:18:11.560 [main] DEBUG com.thingworx.communications.client.processor.ClientMessageProcessor - ClientProcessor executor service shutdown normally within soft timeout. 2021-06-14 19:18:11.567 5349-5349/com.example.myapp I/System.out: 17:18:11.564 [main] INFO com.example.myapp.SimpleClient - SimpleClient is done. Exiting 2021-06-14 19:18:11.568 5349-5349/com.example.myapp I/Choreographer: Skipped 2077 frames! The application may be doing too much work on its main thread. 2021-06-14 19:18:11.581 5349-5371/com.example.myapp I/OpenGLRenderer: Davey! duration=30564ms; Flags=0, IntendedVsync=39159335904916, Vsync=39189880021830, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=39189888812000, AnimationStart=39189888832875, PerformTraversalsStart=39189891446500, DrawStart=39189894215875, SyncQueued=39189894328250, SyncStart=39189895801250, IssueDrawCommandsStart=39189895964750, SwapBuffers=39189899013125, FrameCompleted=39189901657250, DequeueBufferDuration=543125, QueueBufferDuration=873125, GpuCompleted=0,