問題タブ [milo]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
61 参照

milo - milo の変数ノードの監視を一時的に無効にするにはどうすればよいですか?

私は digitalpetri opcua client sdk (現在は milo) を使用しています。

OPCUA クライアントのサブスクリプションの一部であるいくつかの監視対象アイテムを一時的に無効にしたいと考えています。どうやってやるの?MonitoringModeを無効に設定する方法があるようです。それは正しい方法ですか?

クライアントとの接続を切断したくないので、監視対象アイテムのサブスクリプションを将来のある時点で更新したいと考えています。

0 投票する
1 に答える
1838 参照

eclipse - Milo: (パブリック) OPC-UA-Server に接続します

まず第一に、私は OPCUA の初心者です。:)

Milo クライアントをサーバーに接続しようとしていますが、何が問題なのかよくわかりません。サンプル クライアントとサーバーは一緒に問題なく動作しますが、クライアント サンプルをパブリック OPC-UA-Test-Server の 1 つに接続しようとすると、次の例外が発生します。

15:48:34.729 [ua-netty-event-loop-0] DEBUG org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientAcknowledgeHandler - channel=[id: 0xc22800c2, L:/10.22.19.217 で Hello メッセージを送信しました:58947 - R:opcua.demo-this.com/52.233.134.134:51210]。15:48:34.729 [ua-netty-event-loop-0] WARN io.netty.channel.DefaultChannelPipeline - exceptionCaught() イベントが発生し、パイプラインの末尾に到達しました。これは通常、パイプラインの最後のハンドラーが例外を処理しなかったことを意味します。java.io.IOException: 既存の接続が、sun.nio.ch.SocketDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43) at sun のリモート ホストによって強制的に閉じられました。 nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) で sun.nio.ch.IOUtil.read(IOUtil.java:192) で sun.nio.ch.SocketChannelImpl。

opc.tcp://opcua.demo-this.com:51210/UA/SampleServerサンプルコードを取得し、証明書/キーペアを削除し、公開サーバーは承認を必要としないため、URL を次のように変更しました。

私は何が欠けていますか?

事前にご挨拶と感謝:)

0 投票する
1 に答える
1110 参照

opc-ua - UnresolvedAdressException マイロ

基本的な Milo-Client (ReadSample) から接続しようとしていますが、UnresolvedAdressException が発生します。クライアントとサーバーの両方がリモート ネットワークにあり、クライアントにしかアクセスできませんでした。他のクライアント (Prosys OPC UA クライアント) と接続できるので、ファイアウォールではないと確信しており、ログで IP がホスト名に解決されていることがわかります。

サーバーは opc.tcp://192.168.115.40:49580 別名 opc.tcp://Extern-Mess-Rec:49580 です (UaTcpStackClient.getEndpoints(url).get(); で両方を試しました)

13:24:51.530 [main] DEBUG io.netty.util.internal.logging.InternalLoggerFactory - SLF4J をデフォルトのロギング フレームワークとして使用する 13:24:51.546 [main] DEBUG io.netty.channel.MultithreadEventLoopGroup - -Dio.netty. eventLoopThreads: 8 13:24:51.561 [メイン] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: 利用可能 13:24:51.561 [メイン] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: 利用可能 13:24:51.561 [メイン] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: 利用可能 13:24:51.561 [メイン] DEBUG io.netty. util.internal.PlatformDependent0 - java.nio.Bits.unaligned: true 13:24:51.561 [main] DEBUG io.netty.util.internal.PlatformDependent - プラットフォーム: Windows 13:24:51.561 [main] DEBUG io.netty. util.internal.PlatformDependent - Java バージョン: 8 13:24:51。561 [メイン] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.noUnsafe: false 13:24:51.561 [メイン] DEBUG io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: 利用可能 13 :24:51.561 [メイン] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.noJavassist: false 13:24:51.686 [メイン] DEBUG io.netty.util.internal.PlatformDependent - Javassist: 利用可能 13: 24:51.686 [メイン] デバッグ io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: C:\Users\SOFTWA~1\AppData\Local\Temp\3 (java.io.tmpdir) 13:24 :51.686 [メイン] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model) 13:24:51.686 [メイン] DEBUG io.netty.util.internal. PlatformDependent - -Dio.netty.noPreferDirect: false 13:24:51.718 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization:false 13:24:51.718 [メイン] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512 13:24:51.858 [メイン] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty. leakDetection.level: シンプル 13:24:51.858 [メイン] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.maxRecords: 4 13:24:52.264 [メイン] DEBUG io.netty.buffer.PooledByteBufAllocator - - Dio.netty.allocator.numHeapArenas: 8 13:24:52.264 [メイン] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 8 13:24:52.264 [メイン] DEBUG io.netty.buffer .PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192 13:24:52.264 [メイン] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 11 13:24:52.264 [メイン] DEBUG io .netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize:16777216 13:24:52.264 [メイン] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.tinyCacheSize: 512 13:24:52.264 [メイン] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty. allocator.smallCacheSize: 256 13:24:52.264 [メイン] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64 13:24:52.264 [メイン] DEBUG io.netty.buffer.PooledByteBufAllocator - - Dio.netty.allocator.maxCachedBufferCapacity: 32768 13:24:52.264 [メイン] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192 13:24:52.296 [メイン] DEBUG io.netty.util .internal.ThreadLocalRandom - -Dio.netty.initialSeedUniquifier: 0x35f32988e43eab85 (10 ミリ秒かかりました) 13:24:52.327 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: unpooled 13:24:52.327 [メイン] io.netty.buffer をデバッグします。ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 65536 13:24:52.327 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384 13:24:52.358 [ua-netty-event-loop-0 ] DEBUG io.netty.util.internal.JavassistTypeParameterMatcherGenerator - 生成: io.netty.util.internal.マッチャー.org.eclipse.milo.opcua.stack.client.handlers.UaRequestFutureMatcher 13:24:52.389 [ua-netty-event-loop-0] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.bytebuf. checkAccessible: true 13:24:52.858 [ua-netty-event-loop-0] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacity.default: 262144 13:24:52.890 [ua-netty- event-loop-0] DEBUG org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientAcknowledgeHandler - channel=[id: 0xa0ec7fec, L:/130.83.225.169:58872 - R:/192.168.115.40: で Hello メッセージを送信しました: 49580]。13:24:52.905 [ua-netty-event-loop-0] DEBUG org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientAcknowledgeHandler - channel=[id: 0xa0ec7fec, L:/130.83.225.169 で受信確認メッセージ:58872 - R:/192.168.115.40:49580]。13:24:52.921 [ua-netty-event-loop-0] DEBUG org.eclipse.milo.opcua.stack.client. handlers.UaTcpClientMessageHandler - +5 秒 13:24:52.967 にスケジュールされた OpenSecureChannel タイムアウト52.967 [ua-shared-pool-0] DEBUG org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientMessageHandler - 送信された OpenSecureChannelRequest (問題、id=0、currentToken=-1、previousToken=-1)。13:24:52.999 [ua-shared-pool-1] DEBUG org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientMessageHandler - OpenSecureChannelResponse を受け取りました。13:24:52.999 [ua-shared-pool-1] DEBUG org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientMessageHandler - SecureChannel id=1140、currentTokenId=1、previousTokenId=-1、lifetime=3600000ms、createdAt =DateTime{utcTime=131384570808248472、javaDate=5 月 5 日金曜日 13:24: 40 CEST 2017} 13:24:52.999 [ua-netty-event-loop-0] DEBUG org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientMessageHandler - ハンドシェイクが完了する前にキューに入れられた 0 メッセージ。今送信中。13:24:52.999 [ForkJoinPool.commonPool-worker-1] DEBUG org.eclipse.milo.opcua.stack.client.ClientChannelManager - チャネルのブートストラップが成功しました: localAddress=/130.83.225.169:58872, remoteAddress=/192.168.115.40:49580 13:24:53.061 [ForkJoinPool.commonPool-worker-1] DEBUG org.eclipse.milo.opcua.stack.client.ClientChannelManager - CloseSecureChannelRequest を送信しています... 13:24:53.061 [メイン] INFO org.eclipse.milo.examples .client.ClientExampleRunner - エンドポイントの使用: opc.tcp://Extern-Mess-Rec:49580 [なし] 13:24:53.077 [ua-netty-event-loop-0] DEBUG org.eclipse.milo.opcua.stack .client.ClientChannelManager - channelInactive(),