- Posts: 13
- Thank you received: 0
Online Forums
Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.
Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.
Do not use the Contact page for technical issues.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Connections, Reconnections, Certificates
- OPC-UA client session is disconnecting, why?
OPC-UA client session is disconnecting, why?
- openventure
- Topic Author
- Offline
- Premium Member
From the last version installed 5.35 build 1126.1 we have an error on the windows system event, do you know what it's mean?
Internal error (only first occurrence is logged): An exception of type 'System.NullReferenceException' from source 'OpcLabs.EasyOpcUAInternal' has occurred in OPC-UA SDK callback 'Subscription.PublishStatusChanged'. The exception descend follows. (1) {System.NullReferenceException} OpcLabs.EasyOpcUAInternal(ConsumeSdkPublishStatusChangedQueue) -> Object reference not set to an instance of an object.
p.s. yesterday we have installed a new release, the build 1173 as you have suggested some days ago.
My greetings,
paolo.
Please Log in or Create an account to join the conversation.
If that is the only problem remaining, you should ignore it, and it will be safe to do so.
Best regards
Please Log in or Create an account to join the conversation.
- openventure
- Topic Author
- Offline
- Premium Member
- Posts: 13
- Thank you received: 0
OPCLabs-UAEngine message:INTERNAL ERROR. The OPC-UA engine might be in an unstable state.
That happens from 3 to 8 time by day.
thanks in advance,
p
Please Log in or Create an account to join the conversation.
I strongly recommend using it, because there is a possible relation to your issue, and it won't make any sense to try analyzing a problem with software that is not up-to-date.
If the server is local, yes we can rule out network comm problems. But a server-side problem can still be present.
Best regards
Please Log in or Create an account to join the conversation.
- openventure
- Topic Author
- Offline
- Premium Member
- Posts: 13
- Thank you received: 0
I don't mind you forgot me, but I hope you don't leave me alone again:)
I would tend to exclude communication problem because server (kepware) and client are on the same machine.
Excuse me, I don't understand which is the problem that the new version, should solve?
Please Log in or Create an account to join the conversation.
first of all, I apologize for not replying to your post from April 24. We reply to all posts, but somehow this one got lost.
There are two issues in here: First is, why the problem does appear. This may, or may not be a correct behavior on the client side - it can (and likely, is) a genuine communication problem (or server-side problem( that the client cannot influence. And the second issue is, why the client doe not recover by itself.
As to the second problem, we have just recently fixed a bug that could be causing it - it was very similar. It is unlikely that you are using the build with the fix: It is 5.35.1173.1 (or higher), and it has been released around April 21. I strongly suggest that you download the latest build, rebuild your project with it, and retest.
As to why the communication problem appears in the first place: It is about a keep-alive mechanism, which requires the server to respond periodically, even if there is no data. It would be necessary to analyze on the protocol level (using e.g. Wireshark) to figure out precisely whether the server indeed has stopped publishing, or whether it is the client misunderstanding something.
The "Internal error": We will have a look at it, it should not be showing up. but as you said, it appears to be benign and is probably just a "false positive" kind of message.
Best regards
Please Log in or Create an account to join the conversation.
- openventure
- Topic Author
- Offline
- Premium Member
- Posts: 13
- Thank you received: 0
These are, the lines of messages, after these, nothing works anymore, we must kill the service (because it doesn't stop normally in this case) and start it.
OPCLabs-UAEngine message:The OPC-UA client session with connect sequence number 1 is disconnecting from endpoint URL "opc.tcp://10.74.137.71:49320".
OPCLabs-UAEngine message:The OPC-UA client session with connect sequence number 1 has disconnected from endpoint URL "opc.tcp://10.74.137.71:49320".
OPCLabs-UAEngine message:The OPC-UA client session on endpoint URL "opc.tcp://10.74.137.71:49320" failed at tick 794052483 and will retry in 10000 milliseconds.
The good news is that, during the day, we have some errors from OPC engine, even if they not cause stop of functionalities.
OPCLabs-UAEngine message:INTERNAL ERROR. The OPC-UA engine might be in an unstable state.
An exception of type 'System.NullReferenceException' from source 'OpcLabs.EasyOpcUAInternal' has occurred in OPC-UA SDK callback 'Subscription.PublishStatusChanged'. The exception descend follows.
(1) {System.NullReferenceException} OpcLabs.EasyOpcUAInternal(ConsumeSdkPublishStatusChangedQueue) -> Object reference not set to an instance of an object.
What these errors mean for you?
Please Log in or Create an account to join the conversation.
- openventure
- Topic Author
- Offline
- Premium Member
- Posts: 13
- Thank you received: 0
We choose to keep library 5.35 in the applicazioni and seems ok.
But after awhile I gave a message: 4/24/2016 1:41:54 PM: OPC Event 0: OPCLabs-UAEngine message:The OPC-UA subscription ID 11 publishing has stopped on the client session with connect sequence number 1 to endpoint URL "opc.tcp://10.74.137.71:49320" for approximate current duration of 10716.0715 milliseconds. The current keep-alive count is 10 and the current publishing interval is 500 milliseconds. Further such errors on this session will not be logged.
4/24/2016 1:49:19 PM: OPC Event 0: OPCLabs-UAEngine message:The publish status changed queue for OPC-UA subscription ID 11 on the client session with connect sequence number 1 to endpoint URL "opc.tcp://10.74.137.71:49320" has overflown its limit of 100 entries. Further such warning on this session will not be logged.
The code that cause the message is:
myLogger.Log(string.Format("OPC Event {0}: {1} message:{2}",eArgs.Category, eArgs.Source, eArgs.Message));
After that message the service lost every subscriprions and I have to restart it, to restore functionality.
What can I do to have more info on error?
By the way, when the message above happened, only the lifebit function is in run and neither other request are made on the opc server. Pratically nobody works on the plant.
Thank in advances,
My greetings,
P
Please Log in or Create an account to join the conversation.
The edition of the server (Standard, ...) does not matter. You should be able to use QuickOPC version 5.35 as long as you have the "R2" operating system with SP1.
If you do not have that or cannot have that, it might still be possible to use QuickOPC 5.35, although it is not officially supported. The setup program will most likely refuse to install on such a system, but if you build your project elsewhere, the compiled application is likely to run well.
The last QuickOPC version to officially support Windows Server 2008 without R2+SP1 was 5.31. That is not going to get you far. I will send you a download link to it by email.
Best regards
Please Log in or Create an account to join the conversation.
- openventure
- Topic Author
- Offline
- Premium Member
- Posts: 13
- Thank you received: 0
Please, help me, I don't have the chance to change the operative system, and I can't find this anywhere on your website.
thanks in advance,
Best greetings,
p
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Connections, Reconnections, Certificates
- OPC-UA client session is disconnecting, why?