15:11, EET
December 6, 2018
8:33, EET
Moderators
February 11, 2020
Hello,
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
12:34, EET
December 6, 2018
I’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
Hello,
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
11:27, EET
December 6, 2018
Hi Matti Siponen,
We have shared the NodeSet.xml file to uajava-support@prosysopc.com with the subject line “NodeSet.xml – SoftwareAG”.
Thanks,
Dipankar
Most Users Ever Online: 1919
Currently Online:
15 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 728
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1