

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
1 Guest(s)
