Topic RSS15:11, EET
December 6, 2018
Offline8:33, EET
Moderators
February 11, 2020
OfflineHello,
If you put the NodeSet file into the same folder as SampleConsoleServer.java, you can use the following code to load the information model
try {
server.getAddressSpace().loadModel(SampleConsoleServer.class.getResource("NodeSet.xml").toURI());
} catch (Exception e) {
throw new RuntimeException(e);
}
where “NodeSet.xml” is the filename of your NodeSet file.
You should put this code to loadInformationModels() method of SampleConsoleServer which already contains some examples on how to load NodeSet files to SampleConsoleServer.
10:17, EET
December 6, 2018
Offline12:34, EET
December 6, 2018
OfflineI’m getting the following error multiple times after adding the code in loadInformationModels().
11/08/2021 16:01:42.992 WARN [main] com.prosysopc.ua.ModelParserBase – createModel: Failed to create node: InputArguments with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=13932
com.prosysopc.ua.StatusException: A different node with the same nodeId (i=13932) already exists in the nodeManager. Existing node: NodeId=i=13932, NodeClass=Variable, BrowseName=InputArguments; Type={NodeId=i=68, NodeClass=VariableType, BrowseName=PropertyType, IsAbstract=false, DataType=i=24, ValueRank=-2, ArrayDimensions=null, Value=(null)} DataType=NodeId=i=296, NodeClass=DataType, BrowseName=Argument, IsAbstract=false, ValueRank=1ArrayDImensions=[0], MinimumSamplingInterval=0.000000, AccessLevel=1, UserAccessLevel=3, Historizing=false, Value=DataValue(value=[Argument [Name=”FileHandle”, DataType=”i=7″, ValueRank=”-1″, ArrayDimensions=”[]”, Description=””], Argument [Name=”Data”, DataType=”i=15″, ValueRank=”-1″, ArrayDimensions=”[]”, Description=””]], statusCode=GOOD (0x00000000) “The operation succeeded.”, sourceTimestamp=null, sourcePicoseconds=0, serverTimestamp=null, serverPicoseconds=0) StatusCode=Bad_UnexpectedError (0x80010000) “An unexpected error occurred.” Diagnostics=Diagnostic Info:
A different node with the same nodeId (i=13932) already exists in the nodeManager. Existing node: NodeId=i=13932, NodeClass=Variable, BrowseName=InputArguments; Type={NodeId=i=68, NodeClass=VariableType, BrowseName=PropertyType, IsAbstract=false, DataType=i=24, ValueRank=-2, ArrayDimensions=null, Value=(null)} DataType=NodeId=i=296, NodeClass=DataType, BrowseName=Argument, IsAbstract=false, ValueRank=1ArrayDImensions=[0], MinimumSamplingInterval=0.000000, AccessLevel=1, UserAccessLevel=3, Historizing=false, Value=DataValue(value=[Argument [Name=”FileHandle”, DataType=”i=7″, ValueRank=”-1″, ArrayDimensions=”[]”, Description=””], Argument [Name=”Data”, DataType=”i=15″, ValueRank=”-1″, ArrayDimensions=”[]”, Description=””]], statusCode=GOOD (0x00000000) “The operation succeeded.”, sourceTimestamp=null, sourcePicoseconds=0, serverTimestamp=null, serverPicoseconds=0)
13:09, EET
Moderators
February 11, 2020
OfflineHello,
The error “A different node with the same nodeId (i=13932) already exists in the nodeManager.” suggests that your NodeSet file contains a Node that already exists in the Server’s AddressSpace. Which NodeSet file are you attempting to import? If it’s not available to public, can you send it to uajava-support@prosysopc.com so that we can take a look at it?
6:00, EET
December 6, 2018
Offline11:27, EET
December 6, 2018
OfflineHi Matti Siponen,
We have shared the NodeSet.xml file to uajava-support@prosysopc.com with the subject line “NodeSet.xml – SoftwareAG”.
Thanks,
Dipankar
1 Guest(s)

Log In
Register