- Posts: 6
- Thank you received: 1
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 COM
- Reading, Writing, Subscriptions
- Stack Problem - 0x80080000 in 'Session.Read'
Stack Problem - 0x80080000 in 'Session.Read'
- m.spinsanti@swoa.it
- Topic Author
- Offline
- Senior Member
Perfect: the max-lenght of string come set and error has disappeared
Thank you very much.
Please Log in or Create an account to join the conversation.
The example is in .NET, but the principles explained in the article relate to all environments.
Following I am proposing the steps to take in PHP. I have not verified them, but they should work. If you run into problems, let me know.
1. Determine the name and location of the executable that runs your PHP scripts. Depending on your solution, the name might be e.g. php-win.exe, php-cgi.exe, php.exe, or something else. Aldo, figure out where it is running from (the directory on the disk).
2. Download the attached MyApplication.Config.xml file.
3. Place this file to the directory where your PHP executable is, and rename it to the name (without extension) of your PHP runner, plus ".Config.xml". For example, if you were using php-win.exe, rename the configuration file to php-win.Config.xml.
4. Edit the configuration file as needed. In your case, locate the MaxStringLength element, and increase it to make it cope with the length of strings coming from the server.
5. Add following at the beginning of your PHP program:
$ClientManagement = new COM("OpcLabs.EasyOpc.UA.EasyUAClientManagement");
$ClientManagement->SharedParameters->EngineParameters->ConfigurationSources = 4; //UAConfigurationSources.AppConfig
Attachments:
Please Log in or Create an account to join the conversation.
- m.spinsanti@swoa.it
- Topic Author
- Offline
- Senior Member
- Posts: 6
- Thank you received: 1
Is usable with PHP language? And where the XML configuration file must have places?
Thanks a lot.
Please Log in or Create an account to join the conversation.
Look at this:
- opclabs.doc-that.com/files/onlinedocs/OPCLabs-OpcStudio/Late...plication%20Configuration.html
You need to include the XML file properly with your app. In case it is not clear from the comments in the examples source code: In the C# examples solution installed with QuickOPC, there is UANetSdkConfiguration project which shows it in full.
There is <MaxStringLength> setting in the example's XML file, and you can change it to a value that suits you well.
Best regards
Please Log in or Create an account to join the conversation.
- m.spinsanti@swoa.it
- Topic Author
- Offline
- Senior Member
- Posts: 6
- Thank you received: 1
What i need is a support on how setting up new values. I have tried to read references but are not very simple and clear...
Thanks again.
OpcLabs.EasyOpc.UA.Engine.UAEngineException: UA SDK error (Opc.UA.ServiceResult=0x80080000) in 'Session.Read'. OPC UA service result - {BadEncodingLimitsExceeded}. Unexpected error processing response.
+ The client method called (or event/callback invoked) was 'ReadMultiple[9]'. ---> OpcLabs.EasyOpc.UA.UAServiceException: OPC UA service result - {BadEncodingLimitsExceeded}. Unexpected error processing response.
--> {BadEncodingLimitsExceeded}. MaxStringLength 1048576 < 1097220. Unexpected error processing response.
--- Fine della traccia dello stack dell'eccezione interna ---
Please Log in or Create an account to join the conversation.
The BadEncodingLimitsExceeded can be returned for various reasons, such as:
- MaxMessageSize exceeded
- MaxStringLength exceeded
- MaxByteStringLength exceeded
- Maximum nesting level of InnerDiagnosticInfo exceeded
- MaxArrayLength exceeded
- general value nesting level exceeded
It is likely that the server is returning something large that it was not returning before.
In order to troubleshoot this, can you please:
1. Explain why you think this problem may have to do with insufficient stack.
2. Obtain the full .Message text of the exception (the […] indicates that there is more to it; you are showing what the default formatting gives, which is .ErrorMessageBried).
3. Obtain the exception call stack (.StackTrace).
4. Obtain the .InnerException (if not null), its .Message and its .StackTrace, and do that recursively for more inner exception if they are there.
Best regards
Please Log in or Create an account to join the conversation.
- m.spinsanti@swoa.it
- Topic Author
- Offline
- Senior Member
- Posts: 6
- Thank you received: 1
For about a month the ReadMultiple method of an OPC-UA connection returns the error below:
URI=opc.tcp://192.168.0.80:4840;NODEID=ns=3;s=NC/ProductionMonitor/PRDD2;*** Failure: UA SDK error (Opc.UA.ServiceResult=0x80080000) in 'Session.Read'. OPC UA service result - {BadEncodingLimitsExceeded}. Unexpected error processing response. [...]
The source code in question has been working without any problems for years.
Could you give us a suggestion on how to fix this error?
Is the insufficient stack relative to your library? Can it be configured? How can it be query?
Thanks in advance for your help.
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-UA in COM
- Reading, Writing, Subscriptions
- Stack Problem - 0x80080000 in 'Session.Read'