11:40, EET
January 19, 2023
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
12:22, EET
Moderators
February 11, 2020
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
Most Users Ever Online: 518
Currently Online:
21 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
hbrackel: 135
pramanj: 86
Francesco Zambon: 81
rocket science: 77
Ibrahim: 76
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
TimK: 41
Member Stats:
Guest Posters: 0
Members: 683
Moderators: 16
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1467
Posts: 6261
Newest Members:
Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-PfizerModerators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5
Administrators: admin: 1