

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:
52 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: 799
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1538
Posts: 6493
Newest Members:
ladonnacdv, DarwinVew, betseymitford95, Howardtit, rubinramsbotham, SandraVen, lisa40301214436, AndrewLed, georgianaweis51, sophiadavisModerators: Jouni Aro: 1027, Pyry: 1, Petri: 0, Bjarne Boström: 1037, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0
Administrators: admin: 1