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: 161
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: 161
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

November 12, 2021
9:58, EET
Avatar
mikesomers
New Member
Members
Forum Posts: 1
Member Since:
November 12, 2021
sp_UserOfflineSmall Offline

By investing in the best software development service Syndicode, organizations can help businesses to save money. These software development services are very cost effective when compared to traditional software solutions. Organizations can also save money when they invest in the best software services available. These software development services are not only convenient but efficient as well.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 267

Currently Online:
15 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 111

pramanj: 86

ibrahim: 74

kapsl: 57

gjevremovic: 49

Xavier: 42

TimK: 41

fred: 41

Fransua33: 39

rocket science: 36

Member Stats:

Guest Posters: 0

Members: 1590

Moderators: 17

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1192

Posts: 5057

Newest Members:

warnerfleming, Raymond23Freex, Charles1UsadY, Robertvem, albertinaduff53, wilbertrignall, Rogerbeedo, letamunn4183992, Lizazooda, Hectorner

Moderators: Jouni Aro: 914, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 695, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 24, Teppo Uimonen: 21, Markus Johansson: 36, Niklas Nurminen: 0, Matti Siponen: 161, Lusetti: 0

Administrators: admin: 1