18:24, EET
December 1, 2019
Hello,
I am trying to load a custom informationmodel which requires the “Opc.Ua.Di.NodeSet2.xml” and “Opc.Ua.Robotics.NodeSet2.xml” but whenever i load the robotics nodeset i get several errors:
“java.lang.ClassCastException: class com.prosysopc.ua.server.nodes.UaExternalNodeImpl cannot be cast to class com.prosysopc.ua.nodes.UaDataType (com.prosysopc.ua.server.nodes.UaExternalNodeImpl and com.prosysopc.ua.nodes.UaDataType are in unnamed module of loader ‘app’)
at com.prosysopc.ua.server.nodes.UaVariableNode.setDataTypeId(SourceFile:321)
at com.prosysopc.ua.server.nodes.UaVariableNode.setAttributes(SourceFile:290)
at com.prosysopc.ua.server.NodeManagerUaNode.addNode(SourceFile:1356)
at com.prosysopc.ua.server.NodeManagerTable.addNode(SourceFile:2393)
at com.prosysopc.ua.server.NodeManagerTable.addNode(SourceFile:2373)
at com.prosysopc.ua.server.ModelParser.doAddNode(SourceFile:117)
at com.prosysopc.ua.ModelParserBase.addNodes(SourceFile:5597)
at com.prosysopc.ua.ModelParserBase.createModel(SourceFile:433)
at com.prosysopc.ua.server.NodeManagerTable.loadModel(SourceFile:2160)
at com.prosysopc.ua.server.NodeManagerTable.loadModel(SourceFile:2126)
at de.ostfalia.ua.server.OstfaliaUaServer.loadInformationModels(OstfaliaUaServer.java:211)
at de.ostfalia.ua.server.OstfaliaUaServer.(OstfaliaUaServer.java:78)
at de.ostfalia.ua.main.StartServer.main(StartServer.java:19)
12/01/2019 16:46:17.679 WARN [main] com.prosysopc.ua.ModelParserBase – createModel: Failed to create node: CartesianCoordinates with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2FRobotics%2F;i=16130
java.lang.ClassCastException: class com.prosysopc.ua.server.nodes.UaExternalNodeImpl cannot be cast to class com.prosysopc.ua.nodes.UaDataType (com.prosysopc.ua.server.nodes.UaExternalNodeImpl and com.prosysopc.ua.nodes.UaDataType are in unnamed module of loader ‘app’)
at com.prosysopc.ua.server.nodes.UaVariableNode.setDataTypeId(SourceFile:321)
at com.prosysopc.ua.server.nodes.UaVariableNode.setAttributes(SourceFile:290)
at com.prosysopc.ua.server.NodeManagerUaNode.addNode(SourceFile:1356)
at com.prosysopc.ua.server.NodeManagerTable.addNode(SourceFile:2393)
at com.prosysopc.ua.server.NodeManagerTable.addNode(SourceFile:2373)
at com.prosysopc.ua.server.ModelParser.doAddNode(SourceFile:117)
at com.prosysopc.ua.ModelParserBase.addNodes(SourceFile:5597)
at com.prosysopc.ua.ModelParserBase.createModel(SourceFile:433)
at com.prosysopc.ua.server.NodeManagerTable.loadModel(SourceFile:2160)
at com.prosysopc.ua.server.NodeManagerTable.loadModel(SourceFile:2126)
at de.ostfalia.ua.server.OstfaliaUaServer.loadInformationModels(OstfaliaUaServer.java:211)
at de.ostfalia.ua.server.OstfaliaUaServer.(OstfaliaUaServer.java:78)
at de.ostfalia.ua.main.StartServer.main(StartServer.java:19)
[…]”
is it possible to use this nodeset with the sdk?
10:03, EET
April 3, 2012
Hi,
Based on the error stacktrace of mention of ‘CartesianCoordinates’ I assume this model (or the Robotics model in practice) needs types from the Amendment 11 (for 1.04) – Spatial types. The standard nodeset file (thus generated code for) that comes with the SDK doesn’t yet include those.
SDK 4.2.0 will include the latest nodeset. However it seems we are getting 1.04.4 Errata soon, so we might wait until it is published.
If you are interested in a beta build (it does include a nodeset file that contains the types from Amendment 11) , send email to uajava-support@prosysopc.com.
Most Users Ever Online: 1919
Currently Online:
19 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: 736
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1524
Posts: 6450
Newest Members:
kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, ThomassnismModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1