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
Can not load information model
February 7, 2023
11:40, EET
Avatar
Heiko Geissler
New Member
Members
Forum Posts: 1
Member Since:
January 19, 2023
sp_UserOfflineSmall Offline

Hello,

I’m using the prosys-opc-ua-sdk-for-java-4.10.2-62-client-server-binary library.

I try to load an own information model which we created with the UaModeler. I get an NullPointerException even in the SampleConsoleServer.

com.prosysopc.ua.server.ModelParser – Could not call afterCreate for item AddNodesItem [ParentNodeId=”null”, ReferenceTypeId=”null”, RequestedNewNodeId=”nsu=http%3A%2F%2Fwww.erhardt-leimer.com%2FELQ_ELTIM%2F;i=5001″, BrowseName=”10:ELQ_ELTIM”, NodeClass=”Object”, NodeAttributes=”ExtensionObject [typeId=null, encodeType=null, object=ObjectAttributes [SpecifiedAttributes=”null”, DisplayName=”() ELQ_ELTIM”, Description=”null”, WriteMask=”0″, UserWriteMask=”0″, EventNotifier=”0″]]”, TypeDefinition=”nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=2004″]
java.lang.NullPointerException: null
at com.prosysopc.ua.types.opcua.server.ServerCapabilitiesTypeNode.afterCreate(SourceFile:81)
at com.prosysopc.ua.server.nodes.AbstractGeneratedObjectNode.callAfterCreateIfExists(SourceFile:112)
at com.prosysopc.ua.types.opcua.server.ServerTypeNodeBase.afterCreate(SourceFile:64)
at com.prosysopc.ua.types.opcua.server.ServerTypeNode.afterCreate(SourceFile:48)
at com.prosysopc.ua.server.ModelParser.afterCreate(SourceFile:99)
at com.prosysopc.ua.ModelParserBase.createModel(SourceFile:408)
at com.prosysopc.ua.server.NodeManagerTable.loadModel(SourceFile:2010)
at com.prosysopc.ua.server.NodeManagerTable.loadModel(SourceFile:1976)
at com.prosysopc.ua.server.UaServer.registerAndLoadModel(SourceFile:1375)
at com.prosysopc.ua.samples.server.SampleConsoleServer.loadInformationModels(SampleConsoleServer.java:804)
at com.prosysopc.ua.samples.server.SampleConsoleServer.createAddressSpace(SampleConsoleServer.java:477)
at com.prosysopc.ua.samples.server.SampleConsoleServer.main(SampleConsoleServer.java:259)

Another test model can be loaded but I found no significant difference.

I can load my information model in the OPC UA Simulation Server .

What could be the problem?

Thanks in advance.

Heiko

February 7, 2023
12:22, EET
Avatar
Matti Siponen
Moderator
Members

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

Hello,

Would it be possible for you to send both of the information models to us for testing? It is usually easier to find why loading information models is failing by checking the information models directly.

You can send the information models to uajava-support@prosysopc.com

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
45 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: 726

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1525

Posts: 6456

Newest Members:

forrestdilke5, ernestoportus31, martin123, rickie5305, shaylamaggard4, rickyjuarez140, jonathonmcintyre, fannielima, kristiewinkle8, rust

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

Administrators: admin: 1