Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BadTypeMismatch error while creating an OPC UA server #6496

Open
AFekiSL opened this issue May 23, 2024 · 0 comments
Open

BadTypeMismatch error while creating an OPC UA server #6496

AFekiSL opened this issue May 23, 2024 · 0 comments

Comments

@AFekiSL
Copy link

AFekiSL commented May 23, 2024

Important information:

  • used version: open62541 v1.4.0
  • Server development
  • Operating system: ubuntu-22.04.4 LTS

I build open62541 v1.4.0 using the following options:

  • UA_ENABLE_AMALGAMATION=ON
  • UA_NAMESPACE_ZERO=FULL
    I used ccmake for the configuration of the build options.

open62541.h and open62541.c are generated and I am using them in the creation of a LADS OPC UA server.

To compile the Information Model (IM) in the following repo [https://github.com/opcua-lads/workshop], I used the nodeset_compiler provided by open62541.

LuminescenceReader.h and LuminescenceReader.c are generated to create the server.

When running the executable, I'm facing the following problems creating the server
Here is the log:

[2024-05-23 14:51:37.763 (UTC+0200)] info/eventloop	Starting the EventLoop
[2024-05-23 14:51:37.763 (UTC+0200)] warn/server	AccessControl: Unconfigured AccessControl. Users have all permissions.
[2024-05-23 14:51:37.763 (UTC+0200)] info/server	AccessControl: Anonymous login is enabled
[2024-05-23 14:51:37.763 (UTC+0200)] warn/server	x509 Certificate Authentication configured, but no encrypting SecurityPolicy. This can leak credentials on the network.
[2024-05-23 14:51:37.832 (UTC+0200)] warn/server	Writing the value of Node ns=6;i=6151 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.832 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.832 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6151): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.832 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6151): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.832 (UTC+0200)] warn/server	Writing the value of Node ns=6;i=6157 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.832 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.832 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6157): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.832 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6157): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.833 (UTC+0200)] warn/server	Writing the value of Node ns=6;i=6163 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.833 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.833 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6163): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.833 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6163): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.833 (UTC+0200)] warn/server	Writing the value of Node ns=6;i=6173 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.833 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.833 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6173): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.833 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6173): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.834 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6377): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.834 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6377): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.835 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6309): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.835 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6309): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.835 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6310): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.835 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6310): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.835 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=56473): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.835 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=56473): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.835 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=5088): Adding child nodes failed with error code BadTypeMismatch
[2024-05-23 14:51:37.835 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=56452): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.835 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=56452): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.835 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=56447): Adding child nodes failed with error code BadTypeMismatch
[2024-05-23 14:51:37.835 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=5039): Adding child nodes failed with error code BadTypeMismatch
[2024-05-23 14:51:37.836 (UTC+0200)] warn/server	Writing the value of Node ns=6;i=6076 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.836 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.836 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6076): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.836 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6076): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.836 (UTC+0200)] warn/server	Writing the value of Node ns=6;i=66382 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.836 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.836 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=66382): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.836 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=66382): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.836 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=5011): Adding child nodes failed with error code BadTypeMismatch
[2024-05-23 14:51:37.836 (UTC+0200)] warn/server	Writing the value of Node ns=2;i=6208 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.836 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.836 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=2;i=6208): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.836 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=2;i=6208): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.837 (UTC+0200)] warn/server	Writing the value of Node ns=5;i=6086 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.837 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.837 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6086): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.837 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6086): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.837 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=56150): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.838 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=56150): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.838 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=56145): Adding child nodes failed with error code BadTypeMismatch
[2024-05-23 14:51:37.838 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=5106): Adding child nodes failed with error code BadTypeMismatch
[2024-05-23 14:51:37.839 (UTC+0200)] warn/server	Writing the value of Node ns=6;i=6113 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.839 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.839 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6113): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.839 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6113): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.840 (UTC+0200)] warn/server	Writing the value of Node ns=5;i=6480 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.840 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.840 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6480): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.840 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6480): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.841 (UTC+0200)] warn/server	Writing the value of Node ns=6;i=6022 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.841 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.841 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6022): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.841 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6022): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.841 (UTC+0200)] warn/server	Writing the value of Node ns=6;i=6024 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.841 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.841 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6024): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.841 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6024): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.842 (UTC+0200)] warn/server	Writing the value of Node ns=6;i=6034 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.842 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.842 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6034): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.842 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6034): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.842 (UTC+0200)] warn/server	Writing the value of Node ns=6;i=6050 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.842 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.842 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6050): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.842 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6050): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.843 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6376): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.843 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=6376): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.843 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=56246): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.843 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=56246): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.843 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=6;i=5029): Adding child nodes failed with error code BadTypeMismatch
[2024-05-23 14:51:37.848 (UTC+0200)] warn/server	Writing the value of Node ns=2;i=15052 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.848 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.848 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=2;i=15052): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.848 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=2;i=15052): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.850 (UTC+0200)] warn/server	Writing the value of Node ns=5;i=6106 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.850 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.850 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6106): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.850 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6106): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.850 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6107): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.850 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6107): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.850 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6108): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.850 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6108): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.850 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6111): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.850 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6111): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.850 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6120): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.850 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6120): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.853 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=3;i=6037): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.853 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=3;i=6037): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.853 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=3;i=6038): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.853 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=3;i=6038): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.853 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=3;i=6039): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.853 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=3;i=6039): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.853 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=3;i=6040): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.853 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=3;i=6040): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.853 (UTC+0200)] warn/server	Writing the value of Node ns=3;i=6041 failed with the following reason: DataType of the value is incompatible
[2024-05-23 14:51:37.853 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| WriteRequest returned status code BadTypeMismatch
[2024-05-23 14:51:37.853 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=3;i=6041): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.853 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=3;i=6041): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.853 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=3;i=6015): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.853 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=3;i=6015): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.854 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6315): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.854 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6315): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.854 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=56310): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.854 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=56310): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.855 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=5062): Adding child nodes failed with error code BadTypeMismatch
[2024-05-23 14:51:37.855 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6308): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.855 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6308): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.855 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6485): Could not create a default value with StatusCode BadTypeMismatch
[2024-05-23 14:51:37.855 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| AddNode (ns=5;i=6485): Type-checking failed with error code BadTypeMismatch
[2024-05-23 14:51:37.858 (UTC+0200)] error/server	Could not add the example nodeset. Check previous output for any error.
[2024-05-23 14:51:37.858 (UTC+0200)] info/server	PubSub cleanup was called.
[2024-05-23 14:51:37.858 (UTC+0200)] info/session	TCP 0	| SC 0	| Session "Administrator"	| Subscription 0 | Subscription deleted
[2024-05-23 14:51:37.858 (UTC+0200)] info/eventloop	Stopping the EventLoop
[2024-05-23 14:51:37.858 (UTC+0200)] info/network	ETH	| Shutting down the ConnectionManager
[2024-05-23 14:51:37.858 (UTC+0200)] info/network	UDP	| Shutting down the ConnectionManager
[2024-05-23 14:51:37.858 (UTC+0200)] info/network	TCP	| Shutting down the ConnectionManager
[2024-05-23 14:51:37.957 (UTC+0200)] info/eventloop	The EventLoop has stopped

Debugging the first error: ns=6;i=6151

PS: There is an offset of 1 in the namespaces between the information model and the log. So ns=6 in the log corresponds to ns=5 in the IM.

The problem occurs when the function function_LuminescenceReader_1717_finish is executed. This function corresponds to the creation of the node ns=6;i=6151.
Idk if it really helps or not, but debugging this functions shows that the problem is coming from:
UA_Server_addNode_finish --> addNode_finish --> typeCheckVariableNode --> setDefaultValue --> writeAttribute --> Operation_Write --> UA_Server_editNode --> copyAttributeIntoNode --> writeNodeValueAttribute (UA_ATTRIBUTEID_VALUE) --> compatibleValue --> compatibleValueDataType ..

According to the IM, the node has "ns=5;i=3000" as type which definition is in the same LuminescenceReader.xml file.

I'm at your disposal for any further information.
Your support is appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant