when i restart server,opcua client respone message:" Received unmatched TransferSubscriptionsResponse"
when i restart server the sdk respone message:" Received unmatched TransferSubscriptionsResponse with requestHandle=0, timestamp=DateTime{utcTime=0, javaDate=Mon Jan 01 08:00:00 CST 1601}", can you help me out ?
So you have a client written with Milo SDK and you're restarting the server it's connected to?
What server is it? Can you capture this happening on Wireshark?
So you have a client written with Milo SDK and you're restarting the server it's connected to? What server is it? Can you capture this happening on Wireshark?
The service is the official .net service demo provided by the opcua foundation. when the server close, Milo SDK respone error message: java.io.IOException: 远程主机强迫关闭了一个现有的连接。 at sun.nio.ch.SocketDispatcher.read0(Native Method) ~[na:1.8.0_171] at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43) ~[na:1.8.0_171] at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) ~[na:1.8.0_171] at sun.nio.ch.IOUtil.read(IOUtil.java:192) ~[na:1.8.0_171] at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) ~[na:1.8.0_171] at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288) ~[netty-buffer-4.1.31.Final.jar:4.1.31.Final] at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132) ~[netty-buffer-4.1.31.Final.jar:4.1.31.Final] at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:347) ~[netty-transport-4.1.31.Final.jar:4.1.31.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:148) ~[netty-transport-4.1.31.Final.jar:4.1.31.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:648) [netty-transport-4.1.31.Final.jar:4.1.31.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:583) [netty-transport-4.1.31.Final.jar:4.1.31.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:500) [netty-transport-4.1.31.Final.jar:4.1.31.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:462) [netty-transport-4.1.31.Final.jar:4.1.31.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897) [netty-common-4.1.31.Final.jar:4.1.31.Final] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_171]
Seeing an IOException when you restart the server seems like normal behavior.
The "Received unmatched TransferSubscriptionsResponse with requestHandle=0..." message is a bit odd. If I had to guess, I'd think maybe the server is erroneously sending the response without mirroring the requestHandle like it should.
A Wireshark capture of the traffic between client and server would help clear things up.
i don't understand what you mean for Wireshark capture,and don't know how to capture this error
I believe this is an issue with the sample server you're using returning a TransferSubscriptionResponse that doesn't have the requestHandle properly set. If you can verify otherwise please open another issue.
Wireshark is a packet capture tool that can be downloaded here: https://www.wireshark.org/