-
Notifications
You must be signed in to change notification settings - Fork 24
Description
when i create a server via open62541,i can't load the xml correctly,just use the example you provide,such as“Opc.Ua.Di.NodeSet2.xml”
open62541(v1.3.15)
nodeset-loader(v0.5.0)
int main(int argc, const char *argv[]) {
UA_Server *server = UA_Server_new();
UA_ServerConfig_setDefault(UA_Server_getConfig(server));
if(!NodesetLoader_loadFile(server, "../nodeset/Opc.Ua.Di.NodeSet2.xml", NULL))
{
UA_LOG_INFO(UA_Log_Stdout, UA_LOGCATEGORY_USERLAND, "importing the xml nodeset failed");
}
UA_StatusCode retval = UA_Server_run(server, &running);
//NodesetLoader is allocating memory for custom dataTypes, user has to manually clean up
// cleanupCustomTypes(UA_Server_getConfig(server)->customDataTypes);
UA_Server_delete(server);
return retval == UA_STATUSCODE_GOOD ? EXIT_SUCCESS : EXIT_FAILURE;
}
and the error print:
warn/server AccessControl: Unconfigured AccessControl. Users have all permissions.
info/server AccessControl: Anonymous login is enabled
info/server AccessControl: x509 certificate user authentication is enabled
warn/server Username/Password Authentication configured, but no encrypting SecurityPolicy. This can leak credentials on the network.
warn/userland AcceptAll Certificate Verification. Any remote certificate will be accepted.
debug/userland Start import nodeset: ../nodeset/Opc.Ua.Di.NodeSet2.xml
debug/userland imported ReferenceTypes: 3
debug/userland imported DataTypes: 5
info/session SecureChannel 0 | Session "Administrator" | AddNode (ns=2;i=15143): Parent node not found
info/session SecureChannel 0 | Session "Administrator" | AddNode (ns=2;i=15143): The parent reference for is invalid
info/session SecureChannel 0 | Session "Administrator" | AddNode (ns=2;i=15739): Parent node not found
info/session SecureChannel 0 | Session "Administrator" | AddNode (ns=2;i=15739): The parent reference for is invalid
info/session SecureChannel 0 | Session "Administrator" | AddNode (ns=2;i=15590): Parent node not found
info/session SecureChannel 0 | Session "Administrator" | AddNode (ns=2;i=15590): The parent reference for is invalid
info/session SecureChannel 0 | Session "Administrator" | AddNode (ns=2;i=15441): Parent node not found
info/session SecureChannel 0 | Session "Administrator" | AddNode (ns=2;i=15441): The parent reference for is invalid
info/session SecureChannel 0 | Session "Administrator" | AddNode (ns=2;i=15292): Parent node not found
info/session SecureChannel 0 | Session "Administrator" | AddNode (ns=2;i=15292): The parent reference for is invalid
(ps:i can not upload imagine so just copy the print)
the server still run but can not load the whole xml,you know why?