pquiring commented on issue #1958:
URL: https://github.com/apache/plc4x/issues/1958#issuecomment-2580519611
Tried with Netty/4.1.116.Final
(modules:-common,-buffer,-transport,-handler,-codec) and get different results.
Now the connection fails and returns immediately.
Log output:
[2025/01/09 10:06:25] Instantiating new PLC Driver Manager with class loader
{}
[2025/01/09 10:06:25] Registering available drivers...
[2025/01/09 10:06:25] Registering driver for Protocol {} ({})
[2025/01/09 10:06:25] Using SLF4J as the default logging framework
[2025/01/09 10:06:25] -Dio.netty.noUnsafe: {}
[2025/01/09 10:06:25] sun.misc.Unsafe: unavailable (io.netty.noUnsafe)
[2025/01/09 10:06:25] Java version: {}
[2025/01/09 10:06:25] java.nio.DirectByteBuffer.<init>(long, {int,long}): {}
[2025/01/09 10:06:25] maxDirectMemory: {} bytes (maybe)
[2025/01/09 10:06:25] -Dio.netty.tmpdir: {} (java.io.tmpdir)
[2025/01/09 10:06:25] -Dio.netty.bitMode: {} (sun.arch.data.model)
[2025/01/09 10:06:25] Platform: Windows
[2025/01/09 10:06:25] -Dio.netty.maxDirectMemory: {} bytes
[2025/01/09 10:06:25] -Dio.netty.uninitializedArrayAllocationThreshold: {}
[2025/01/09 10:06:25] java.nio.ByteBuffer.cleaner(): unavailable
[2025/01/09 10:06:25] java.lang.UnsupportedOperationException:
sun.misc.Unsafe unavailable
at io.netty.util.internal.CleanerJava9.<clinit>(CleanerJava9.java:68)
at
io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:195)
at io.netty.util.ConstantPool.<init>(ConstantPool.java:34)
at io.netty.util.AttributeKey$1.<init>(AttributeKey.java:27)
at io.netty.util.AttributeKey.<clinit>(AttributeKey.java:27)
at
org.apache.plc4x.java.s7.readwrite.protocol.S7HMuxImpl.<clinit>(S7HMuxImpl.java:61)
at
org.apache.plc4x.java.s7.readwrite.protocol.S7HPlcConnection.<init>(S7HPlcConnection.java:117)
at
org.apache.plc4x.java.s7.readwrite.protocol.S7HGeneratedDriverBase.getConnection(S7HGeneratedDriverBase.java:162)
at
org.apache.plc4x.java.DefaultPlcDriverManager.getConnection(DefaultPlcDriverManager.java:79)
at javaforce.controls.Controller.connect(Controller.java:101)
at javaforce.controls.ReadTag.main(ReadTag.java:21)
[2025/01/09 10:06:25] -Dio.netty.noPreferDirect: {}
[2025/01/09 10:06:25] -Dio.netty.threadLocalMap.stringBuilder.initialSize: {}
[2025/01/09 10:06:25] -Dio.netty.threadLocalMap.stringBuilder.maxSize: {}
[2025/01/09 10:06:25] -D{}: {}
[2025/01/09 10:06:25] -D{}: {}
[2025/01/09 10:06:25] -Dio.netty.allocator.numHeapArenas: {}
[2025/01/09 10:06:25] -Dio.netty.allocator.numDirectArenas: {}
[2025/01/09 10:06:25] -Dio.netty.allocator.pageSize: {}
[2025/01/09 10:06:25] -Dio.netty.allocator.maxOrder: {}
[2025/01/09 10:06:25] -Dio.netty.allocator.chunkSize: {}
[2025/01/09 10:06:25] -Dio.netty.allocator.smallCacheSize: {}
[2025/01/09 10:06:25] -Dio.netty.allocator.normalCacheSize: {}
[2025/01/09 10:06:25] -Dio.netty.allocator.maxCachedBufferCapacity: {}
[2025/01/09 10:06:25] -Dio.netty.allocator.cacheTrimInterval: {}
[2025/01/09 10:06:25] -Dio.netty.allocator.cacheTrimIntervalMillis: {}
[2025/01/09 10:06:25] -Dio.netty.allocator.useCacheForAllThreads: {}
[2025/01/09 10:06:25] -Dio.netty.allocator.maxCachedByteBuffersPerChunk: {}
[2025/01/09 10:06:25]
-Dio.netty.allocator.disableCacheFinalizersForFastThreadLocalThreads: {}
[2025/01/09 10:06:25] -Dio.netty.allocator.type: {}
[2025/01/09 10:06:25] -Dio.netty.threadLocalDirectBufferSize: {}
[2025/01/09 10:06:25] -Dio.netty.maxThreadLocalCharBufferSize: {}
[2025/01/09 10:06:25] -Dio.netty.eventLoopThreads: {}
[2025/01/09 10:06:25] -Dio.netty.globalEventExecutor.quietPeriodSeconds: {}
[2025/01/09 10:06:25] -Dio.netty.noKeySetOptimization: {}
[2025/01/09 10:06:25] -Dio.netty.selectorAutoRebuildThreshold: {}
[2025/01/09 10:06:25] org.jctools-core.MpscChunkedArrayQueue: unavailable
[2025/01/09 10:06:25] failed to instrument a special java.util.Set into: {}
[2025/01/09 10:06:25] failed to instrument a special java.util.Set into: {}
[2025/01/09 10:06:25] failed to instrument a special java.util.Set into: {}
[2025/01/09 10:06:25] failed to instrument a special java.util.Set into: {}
[2025/01/09 10:06:25] failed to instrument a special java.util.Set into: {}
[2025/01/09 10:06:25] failed to instrument a special java.util.Set into: {}
[2025/01/09 10:06:25] failed to instrument a special java.util.Set into: {}
[2025/01/09 10:06:25] failed to instrument a special java.util.Set into: {}
[2025/01/09 10:06:25] Configuring Bootstrap with {}
[2025/01/09 10:06:25] -Dio.netty.processId: {} (auto-detected)
[2025/01/09 10:06:25] -Djava.net.preferIPv4Stack: {}
[2025/01/09 10:06:25] -Djava.net.preferIPv6Addresses: {}
[2025/01/09 10:06:25] Loopback interface: {} ({}, {})
[2025/01/09 10:06:25] Failed to get SOMAXCONN from sysctl and file {}.
Default: {}
[2025/01/09 10:06:25] -Dio.netty.machineId: {} (auto-detected)
[2025/01/09 10:06:25] -Dio.netty.bootstrap.extensions: {}
[2025/01/09 10:06:25] [id: 0xa94284d6] CLOSE
[2025/01/09 10:06:25] Unable to connect, shutting down worker thread.
[2025/01/09 10:06:25]
org.apache.plc4x.java.api.exceptions.PlcConnectionException: Error creating
channel.
[2025/01/09 10:06:25] [id: 0xa94284d6] REGISTERED
[2025/01/09 10:06:25] Channels was not created, firing DisconnectEvent Event
[2025/01/09 10:06:25] [id: 0xa94284d6] UNREGISTERED
[2025/01/09 10:06:25] [id: 0xembedded, L:embedded - R:embedded] USER_EVENT:
org.apache.plc4x.java.spi.events.DisconnectEvent@293a5bf6
[2025/01/09 10:06:25] 10:06:25.549068600 userEventTriggered: Multiplexor
Event: org.apache.plc4x.java.spi.events.DisconnectEvent@293a5bf6
[2025/01/09 10:06:25] DisconnectEvent
[2025/01/09 10:06:25]
org.apache.plc4x.java.api.exceptions.PlcConnectionException: Connection is not
possible.
at
org.apache.plc4x.java.s7.readwrite.protocol.S7HPlcConnection.connect(S7HPlcConnection.java:171)
at
org.apache.plc4x.java.DefaultPlcDriverManager.getConnection(DefaultPlcDriverManager.java:80)
at javaforce.controls.Controller.connect(Controller.java:101)
at javaforce.controls.ReadTag.main(ReadTag.java:21)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]