20:50, EEST
May 2, 2017
Hey There I’m trying to write values to a node and I Allways get this warning. What is my Problem?
*** Current Node: eTyp: [Variable] (ID: ns=4;s=|var|Raspberry Pi.app.PENDEL.signalgenoStoergroesse.eTyp)
——————————————————-
– Enter x to close client
——————————————————-
– Enter 0 to start discovery –
– Enter 1 to connect to server –
– Enter 2 to disconnect from server –
– Enter 3 to browse the server address space –
– Enter 4 to read values –
– Enter 5 to write values –
– Enter 6 to register nodes –
– Enter 7 to unregister nodes –
– Enter 8 to create a subscription –
– Enter 9 to call a method –
– Enter 10 to read history –
——————————————————-
5
Select the node attribute.
1 – NodeId
2 – NodeClass
3 – BrowseName
4 – DisplayName
5 – Description
6 – WriteMask
7 – UserWriteMask
8 – IsAbstract
9 – Symmetric
10 – InverseName
11 – ContainsNoLoops
12 – EventNotifier
13 – Value
14 – DataType
15 – ValueRank
16 – ArrayDimensions
17 – AccessLevel
18 – UserAccessLevel
19 – MinimumSamplingInterval
20 – Historizing
21 – Executable
13
attribute: Value
05/02/2017 19:14:06.422 WARN Cannot set the type corresponding to the typeDefinition (ns=3;i=62) of node 4:eTyp (ns=4;s=|var|Raspberry Pi.app.PENDEL.signalgenoStoergroesse.eTyp)
com.prosysopc.ua.client.AddressSpaceException: Cannot determine NodeClass for NodeId: ns=3;i=62 because the value is not good: DataValue(value=(null), statusCode=Bad_NodeIdUnknown (0x80340000) “The node id refers to a node that does not exist in the server address space.”, sourceTimestamp=null, sourcePicoseconds=0, serverTimestamp=05/02/17 17:14:07.4280000 GMT, serverPicoseconds=0)
at com.prosysopc.ua.client.AddressSpace.getNode(Unknown Source)
at com.prosysopc.ua.client.AddressSpace.getType(Unknown Source)
at com.prosysopc.ua.client.AddressSpace.getNode(Unknown Source)
at com.prosysopc.ua.samples.client.SampleConsoleClient.write(SampleConsoleClient.java:2101)
at com.prosysopc.ua.samples.client.SampleConsoleClient.mainMenu(SampleConsoleClient.java:1316)
at com.prosysopc.ua.samples.client.SampleConsoleClient.main(SampleConsoleClient.java:156)
Writing to node ns=4;s=|var|Raspberry Pi.app.PENDEL.signalgenoStoergroesse.eTyp – eTyp
DataType: eSignalform
Enter the value to write: 1
com.prosysopc.ua.StatusException: Bad_TypeMismatch (0x80740000) “The value supplied for the attribute is not of the same type as the attribute’s value.” StatusCode=Bad_TypeMismatch (0x80740000) “The value supplied for the attribute is not of the same type as the attribute’s value.”
*** Connected to: opc.tcp://192.168.0.31:4840
05/02/2017 19:14:11.141 WARN Cannot set the type corresponding to the typeDefinition (ns=3;i=62) of node 4:eTyp (ns=4;s=|var|Raspberry Pi.app.PENDEL.signalgenoStoergroesse.eTyp)
com.prosysopc.ua.client.AddressSpaceException: Cannot determine NodeClass for NodeId: ns=3;i=62 because the value is not good: DataValue(value=(null), statusCode=Bad_NodeIdUnknown (0x80340000) “The node id refers to a node that does not exist in the server address space.”, sourceTimestamp=null, sourcePicoseconds=0, serverTimestamp=05/02/17 17:14:12.1460000 GMT, serverPicoseconds=0)
at com.prosysopc.ua.client.AddressSpace.getNode(Unknown Source)
at com.prosysopc.ua.client.AddressSpace.getType(Unknown Source)
at com.prosysopc.ua.client.AddressSpace.getNode(Unknown Source)
at com.prosysopc.ua.samples.client.SampleConsoleClient.printCurrentNode(SampleConsoleClient.java:1452)
at com.prosysopc.ua.samples.client.SampleConsoleClient.printMenu(SampleConsoleClient.java:1483)
at com.prosysopc.ua.samples.client.SampleConsoleClient.mainMenu(SampleConsoleClient.java:1290)
at com.prosysopc.ua.samples.client.SampleConsoleClient.main(SampleConsoleClient.java:156)
05/02/2017 19:14:11.157 WARN Unable to retrieve node from AddressSpace:
com.prosysopc.ua.client.AddressSpaceException: Cannot determine NodeClass for NodeId: ns=3;i=62 because the value is not good: DataValue(value=(null), statusCode=Bad_NodeIdUnknown (0x80340000) “The node id refers to a node that does not exist in the server address space.”, sourceTimestamp=null, sourcePicoseconds=0, serverTimestamp=05/02/17 17:14:12.1660000 GMT, serverPicoseconds=0)
at com.prosysopc.ua.client.AddressSpace.getNode(Unknown Source)
at com.prosysopc.ua.client.nodes.UaClientReference.c(Unknown Source)
at com.prosysopc.ua.client.nodes.UaClientReference.a(Unknown Source)
at com.prosysopc.ua.client.nodes.UaClientReference.getTargetNode(Unknown Source)
at com.prosysopc.ua.client.nodes.UaInstanceImpl.getTypeDefinition(Unknown Source)
at com.prosysopc.ua.samples.client.SampleConsoleClient.getCurrentNodeAsString(SampleConsoleClient.java:1064)
at com.prosysopc.ua.samples.client.SampleConsoleClient.printCurrentNode(SampleConsoleClient.java:1456)
at com.prosysopc.ua.samples.client.SampleConsoleClient.printMenu(SampleConsoleClient.java:1483)
at com.prosysopc.ua.samples.client.SampleConsoleClient.mainMenu(SampleConsoleClient.java:1290)
at com.prosysopc.ua.samples.client.SampleConsoleClient.main(SampleConsoleClient.java:156)
*** Current Node: eTyp: [Variable] (ID: ns=4;s=|var|Raspberry Pi.app.PENDEL.signalgenoStoergroesse.eTyp)
Thanks a lot
14:56, EEST
December 21, 2011
There are two issues:
1. “Cannot set the type corresponding to the typeDefinition (ns=3;i=62) of node 4:eTyp (ns=4;s=|var|Raspberry Pi.app.PENDEL.signalgenoStoergroesse.eTyp)”
Your node ‘4:eTyp’ has a HasTypeDefinition reference to a node that does not exist in the server.
2. “Writing to node ns=4;s=|var|Raspberry Pi.app.PENDEL.signalgenoStoergroesse.eTyp – eTyp
DataType: eSignalform
Enter the value to write: 1
com.prosysopc.ua.StatusException: Bad_TypeMismatch (0x80740000) “The value supplied for the attribute is not of the same type as the attribute’s value.” StatusCode=Bad_TypeMismatch (0x80740000) “The value supplied for the attribute is not of the same type as the attribute’s value.””
The DataType of that node is referring to ‘eSignalform’. The SampleClient cannot convert the value that you try to write to the custom structure value (at least not in the current SDK version 2.3.0).
You will need to convert the value in your code, if you know the structure type.
Or it might work, if you set the JavaClass property of the DataType node in the client:
UaDataType eSignalForm = (UaDataType) client.getAddressSpace().getType(nodeIdOfeSignalform);
eSignalForm.setJavaClass({eSignalform}.class)
where {eSignalform} would be the Java class of your custom structure type, which is generated by the code generator and which you use on the server side.
Most Users Ever Online: 1919
Currently Online:
59 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: 737
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1524
Posts: 6450
Newest Members:
fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerleyModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1