Daniel,
Thank you for the update, looking forward to hearing whether it resolves the issue or not. On Jan 28, 2021, at 06:27, Daniele Menozzi <menoz.zone+eclipse@xxxxxxxxx> wrote:
Hi all, just wanted to tell you that Codesys told us that this bug was fixed in today's new Control relase (Version: 3.5.16.40), we're checking it out right now...
Bye Daniel
Daniel,
This issue can arise while decoding any response from the server. I don't think the service being invoked has anything to do with it.
Sorry Kevin, one more question: is it correct to say that this issue should arise only during a read operation? If I understand correctly, this message that we need to decode is (and can only be) the response to a read request, is it? Or this message can also be generated by a subscription's changed value, or other ways as well?
Daniel
Thanks!
Yes, catch and then close the connection, because this is a critical condition and the OPC UA spec dictates that the connection should be closed when this happens.
Ok, that's because you catch that exception here [1] , leaving just an error message in the output, is that correct?
Given this situation, I'd like to catch this very error (BadSequenceNumberInvalid) and treat it "specially"; can anybody please give me a hint on where/how it's the best place to do this? I'd like to be able to manage this error, so that as soon as I get this error I can intercept it and do "special" stuff to mitigate the problem...
Thanks
Thank you very much Ibrahim! Glad to hear this will be fixed soon :-)
Hi Daniele,
i read you Mail regarding the Codesys. We had exactly the same issue with out Prosys Client when connecting to Codesys OPC UA Server. For your information: Codesys has analysed and found
the bug. We had contact to the developer Mr. Scholl. They are tracking this issue under the ticket number
CDS-74609.
The fix for this issue should be released with the next patch version in January.
Ibrahim
Datenschutzhinweise gemäß Artikel
13 DSGVO (Informationspflicht)
Privacy policy according to Art.
13 GDPR (Information to be provided)
----------------------------
iTAC Software AG
Vorstand / Management: Peter Bollinger, Stefan Brügge, Martin Heinz
Vorsitzender des Aufsichtsrats: Dr. Jochen Weyrauch
Sitz der Gesellschaft / DC: 56410 Montabaur, Reg.G: AG Montabaur HRB 6740
Dürr Group
----------------------------
Yes, it's exactly the same. So my only chance now is to get in touch with the codesys support... I'm using the latest softplc code, I hope it's something that can be fixed with a downgrade...
Thank you very much, Kevin, your help is really appreciated!
I'm using Milo to connect a java application running on a linux server to a Codesys control PLC on a windows server, milo version 0.4.3 .
I recently started to receive the error " Error decoding symmetric message", you can see the full log attached here (and maybe you can see the log better here:
https://codeshare.io/5oJgNp).
Do you know what can cause this issue? What can I check to fix this? Ideas?
bizartifact-server | 23:05:05.266 ERROR read-pool-24 e.m.o.s.c.t.u.UascClientMessageHandler Error decoding symmetric message
bizartifact-server | org.eclipse.milo.opcua.stack.core.channel.MessageDecodeException: UaException: status=Bad_SequenceNumberInvalid, message=expected sequence number 75730 but received 75731
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder.decode(ChunkDecoder.java:99) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder.decodeSymmetric(ChunkDecoder.java:79) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.client.transport.uasc.UascClientMessageHandler.lambda$onSecureMessage$11(UascClientMessageHandler.java:635) ~[stack-client-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.SerializationQueue.lambda$decode$1(SerializationQueue.java:61) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.util.ExecutionQueue$Task.run(ExecutionQueue.java:119) [stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
bizartifact-server | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
bizartifact-server | at java.lang.Thread.run(Thread.java:834) [?:?]
bizartifact-server | Caused by: org.eclipse.milo.opcua.stack.core.UaException: expected sequence number 75730 but received 75731
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder$AbstractDecoder.decode(ChunkDecoder.java:207) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder.decode(ChunkDecoder.java:91) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | ... 7 more
bizartifact-server | 23:05:05.269 ERROR read-pool-29 e.m.o.s.c.t.u.UascClientMessageHandler Error decoding symmetric message
bizartifact-server | org.eclipse.milo.opcua.stack.core.channel.MessageDecodeException: UaException: status=Bad_SequenceNumberInvalid, message=expected sequence number 75731 but received 75732
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder.decode(ChunkDecoder.java:99) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder.decodeSymmetric(ChunkDecoder.java:79) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.client.transport.uasc.UascClientMessageHandler.lambda$onSecureMessage$11(UascClientMessageHandler.java:635) ~[stack-client-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.SerializationQueue.lambda$decode$1(SerializationQueue.java:61) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.util.ExecutionQueue$Task.run(ExecutionQueue.java:119) [stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
bizartifact-server | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
bizartifact-server | at java.lang.Thread.run(Thread.java:834) [?:?]
bizartifact-server | Caused by: org.eclipse.milo.opcua.stack.core.UaException: expected sequence number 75731 but received 75732
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder$AbstractDecoder.decode(ChunkDecoder.java:207) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder.decode(ChunkDecoder.java:91) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | ... 7 more
bizartifact-server | 23:05:05.269 ERROR read-pool-29 e.m.o.s.c.t.u.UascClientMessageHandler Error decoding symmetric message
bizartifact-server | org.eclipse.milo.opcua.stack.core.channel.MessageDecodeException: UaException: status=Bad_SequenceNumberInvalid, message=expected sequence number 75731 but received 75733
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder.decode(ChunkDecoder.java:99) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder.decodeSymmetric(ChunkDecoder.java:79) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.client.transport.uasc.UascClientMessageHandler.lambda$onSecureMessage$11(UascClientMessageHandler.java:635) ~[stack-client-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.SerializationQueue.lambda$decode$1(SerializationQueue.java:61) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.util.ExecutionQueue$InlineTask.run(ExecutionQueue.java:154) [stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.util.ExecutionQueue$Task.run(ExecutionQueue.java:136) [stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
bizartifact-server | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
bizartifact-server | at java.lang.Thread.run(Thread.java:834) [?:?]
bizartifact-server | Caused by: org.eclipse.milo.opcua.stack.core.UaException: expected sequence number 75731 but received 75733
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder$AbstractDecoder.decode(ChunkDecoder.java:207) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder.decode(ChunkDecoder.java:91) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | ... 8 more
bizartifact-server | 23:05:05.269 ERROR read-pool-24 e.m.o.s.c.t.u.UascClientMessageHandler Error decoding symmetric message
bizartifact-server | org.eclipse.milo.opcua.stack.core.channel.MessageDecodeException: UaException: status=Bad_SequenceNumberInvalid, message=expected sequence number 75731 but received 75734
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder.decode(ChunkDecoder.java:99) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder.decodeSymmetric(ChunkDecoder.java:79) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.client.transport.uasc.UascClientMessageHandler.lambda$onSecureMessage$11(UascClientMessageHandler.java:635) ~[stack-client-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.SerializationQueue.lambda$decode$1(SerializationQueue.java:61) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.util.ExecutionQueue$Task.run(ExecutionQueue.java:119) [stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
bizartifact-server | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
bizartifact-server | at java.lang.Thread.run(Thread.java:834) [?:?]
bizartifact-server | Caused by: org.eclipse.milo.opcua.stack.core.UaException: expected sequence number 75731 but received 75734
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder$AbstractDecoder.decode(ChunkDecoder.java:207) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder.decode(ChunkDecoder.java:91) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | ... 7 more
bizartifact-server | 23:05:05.270 ERROR read-pool-24 e.m.o.s.c.t.u.UascClientMessageHandler Error decoding symmetric message
bizartifact-server | org.eclipse.milo.opcua.stack.core.channel.MessageDecodeException: UaException: status=Bad_SequenceNumberInvalid, message=expected sequence number 75731 but received 75735
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder.decode(ChunkDecoder.java:99) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder.decodeSymmetric(ChunkDecoder.java:79) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.client.transport.uasc.UascClientMessageHandler.lambda$onSecureMessage$11(UascClientMessageHandler.java:635) ~[stack-client-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.SerializationQueue.lambda$decode$1(SerializationQueue.java:61) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.util.ExecutionQueue$InlineTask.run(ExecutionQueue.java:154) [stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.util.ExecutionQueue$Task.run(ExecutionQueue.java:136) [stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
bizartifact-server | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
bizartifact-server | at java.lang.Thread.run(Thread.java:834) [?:?]
bizartifact-server | Caused by: org.eclipse.milo.opcua.stack.core.UaException: expected sequence number 75731 but received 75735
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder$AbstractDecoder.decode(ChunkDecoder.java:207) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | at org.eclipse.milo.opcua.stack.core.channel.ChunkDecoder.decode(ChunkDecoder.java:91) ~[stack-core-0.4.3.jar:0.4.3]
bizartifact-server | ... 8 more
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________milo-dev mailing listmilo-dev@xxxxxxxxxxxTo unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev
|