Please consider registering

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
loading model
December 21, 2021
12:42, EET
Forum Posts: 9
Member Since:
December 20, 2021
sp_UserOfflineSmall Offline


the method:

loads by default the information model Opc.Ua.NodeSet2.xml saved inside the jar :
12/21/2021 11: 32: 37.876 INFO [main] com.prosysopc.ua.server.NodeManagerTable – Loading model from jar: file: prosys-opc -ua-java-sdk-client-server-3.1.2-488.jar! /com/prosysopc/ua/types/opcua/server/Opc.Ua.NodeSet2.xml

is it possible to load another version of the information model Opc.Ua.NodeSet2.xml?


December 21, 2021
13:30, EET
Bjarne Boström
Forum Posts: 726
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline


Note the other post, but basically you are running a very old version of the SDK. Latest is 4.6.2. Update first to that. It uses the next-to-newest model 1.04.9.

SDK with the generated code from the model is tied to the version of the base information model it ships with (and to the “services nodeset” generation outputs as well that had the same version). The model is not designed to be user-replaced (it is a lot more complicated than “just the XML”), thus you cannot change it. If you have a problem with it, let us know.

The next SDK release 4.7.0 will ship with base model 1.04.10. That release will happen on January next year. That model includes errata to the one we ship now (1.04.9 with SDK 4.6.2) but OPC Foundation also added new features (2 new Structure types), and basically we have to add support to them before we update since some pubsub related structures were moved to the new types and our codegenerator would create not proper code to those. Also SDK internals that load StructureSpecifications from the models would have loaded incorrectly without knowledge of the new things resulting in a mess.

So it short, it is per se not possible to load newer versions of the base model, since each new version typically adds something the SDK should change or add. That being said, we would very much like eventually to get to the point where it could be changed if that would not happen (i.e. just errata that somehow magically would not affect generation outputs). But in reality that would complicate things, as we do use internally the generated classes of the base model. In 4.0.0 we removed the DI,ADI,PLCOpen to be user-generated (https://downloads.prosysopc.com/opcua/Prosys_OPC_UA_SDK_for_Java_4_Release_Notes.html#version-4-0-0). But the base model is a lot more complicated to remove. Not sure if that is even realistically doable, but we will investigate that (but what is the priority of that work depend on what people ask of us).

So as in “short”, it is just not the model XML file itself, but basically everything that is tied to it.

December 22, 2021
9:45, EET
Forum Posts: 9
Member Since:
December 20, 2021
sp_UserOfflineSmall Offline

Hi Bjarne,

Thanks for the support. I’ll try with the latest release.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 267

Currently Online: pradeep_patel
15 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 113

pramanj: 86

ibrahim: 74

kapsl: 57

rocket science: 52

gjevremovic: 49

Xavier: 42

fred: 41

TimK: 41

Fransua33: 39

Member Stats:

Guest Posters: 0

Members: 1743

Moderators: 17

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1206

Posts: 5137

Newest Members:

LimaomoT, eulaallcot, brain7955241817, barbaravillalobo, widallet, erminovski, etsuko73u61420, donnyblaxland, DonaldHAp, kelvin6887

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

Administrators: admin: 1