Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
How to import nodeset xml file in sampleconsoleserver ?
November 7, 2021
15:11, EET
Avatar
dipankar.dey@softwareag.com
Member
Members
Forum Posts: 18
Member Since:
December 6, 2018
sp_UserOfflineSmall Offline

We need to know how to import a customized nodeset.xml file in prosys sampleconsoleserver. Is there any documentation or tutorial for this ?

November 8, 2021
8:33, EET
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

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.

November 8, 2021
10:17, EET
Avatar
dipankar.dey@softwareag.com
Member
Members
Forum Posts: 18
Member Since:
December 6, 2018
sp_UserOfflineSmall Offline

Thanks a lot for the information. I will give it a try and share the results.

November 8, 2021
12:34, EET
Avatar
dipankar.dey@softwareag.com
Member
Members
Forum Posts: 18
Member Since:
December 6, 2018
sp_UserOfflineSmall Offline

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)

November 8, 2021
13:09, EET
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

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?

November 11, 2021
6:00, EET
Avatar
dipankar.dey@softwareag.com
Member
Members
Forum Posts: 18
Member Since:
December 6, 2018
sp_UserOfflineSmall Offline

Hi Matti Siponen,

We are currently checking with the customer if we can share the NodeSet.xml file here. Once done we will send the NodeSet.xml file to the mentioned mail address.

Thanks,
Dipankar

November 11, 2021
11:27, EET
Avatar
dipankar.dey@softwareag.com
Member
Members
Forum Posts: 18
Member Since:
December 6, 2018
sp_UserOfflineSmall Offline

Hi Matti Siponen,

We have shared the NodeSet.xml file to uajava-support@prosysopc.com with the subject line “NodeSet.xml – SoftwareAG”.

Thanks,
Dipankar

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
26 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: 735

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1523

Posts: 6449

Newest Members:

rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1