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
Decoding error on passing an array of custom data
January 11, 2017
11:38, EET
Avatar
agrillo
Member
Members
Forum Posts: 22
Member Since:
June 28, 2016
sp_UserOfflineSmall Offline

Hello,
I have an OPC UA node (server side) with a java class that monitors (1-second interval) an array variable of custom data (i called it “monitorData”). On the client side I created a subscription to monitorData, so, when it changes on the server, I receive the updated data on the client GUI.
When I run both OPC UA client and server locally on a Windows PC, all works perfectly, but if I run the OPC UA server on an ARM 32bit board with a Debian Linux, I obtain the following error message:

org.opcfoundation.ua.encoding.DecodingException: Bad_DecodingError (code=0x80070000, description=”Unexpected NodeId Encoding Byte -1″)
12/15/2016 10:54:10.754 INFO handleNotificationData: Failed to decode notification org.opcfoundation.ua.builtintypes.ExtensionObject@ab42ff60:
org.opcfoundation.ua.encoding.DecodingException: Bad_DecodingError (code=0x80070000, description=”Unexpected NodeId Encoding Byte -1″)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getNodeId(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getExtensionObject(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getExtensionObjectArray(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getArrayObject(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getVariant(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getDataValue(Unknown Source)
at org.opcfoundation.ua.core.EncodeableSerializer$184.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.utils.AbstractSerializer.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.utils.SerializerComposition.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getEncodeableArray(Unknown Source)
at org.opcfoundation.ua.core.EncodeableSerializer$183.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.utils.AbstractSerializer.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.utils.SerializerComposition.getEncodeable(Unknown Source)
at org.opcfoundation.ua.builtintypes.ExtensionObject.decode(Unknown Source)
at org.opcfoundation.ua.builtintypes.ExtensionObject.decode(Unknown Source)
at org.opcfoundation.ua.builtintypes.ExtensionObject.decode(Unknown Source)
at com.prosysopc.ua.client.Subscription.a(Unknown Source)
at com.prosysopc.ua.client.Subscription.handleNotificationDatas(Unknown Source)
at com.prosysopc.ua.client.UaClient$a.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Where’s the problem?
Thanks in advance.

Cheers
Alessandro

January 11, 2017
17:31, EET
Avatar
Heikki Tahvanainen
Member
Members
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hi,

The error message states that the client could not decode a value that was received from the server. More specifically, the first byte of an encoded NodeId was not recognized.

Most likely the reason is that the server application does not encode the value correctly. It’s hard to say what’s going wrong in the server application based on this information.

Is the server also made with Prosys OPC UA Java SDK? And do you use the completely same server on both platforms?

January 12, 2017
10:06, EET
Avatar
agrillo
Member
Members
Forum Posts: 22
Member Since:
June 28, 2016
sp_UserOfflineSmall Offline

Hi Heikki,
yes, both client and server were made with Prosys OPC UA Java SDK and I use the completely same server on both platforms.
In the meanwhile I was thinking: could it depend on the default chararacter set encoding used by the serializer? I noticed that it differs between the two platforms.

January 12, 2017
10:58, EET
Avatar
Heikki Tahvanainen
Member
Members
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hi,

There’s something going wrong and it seems to be related to the ARM platform in question, but the character encoding has probably nothing to do with this.

We haven’t heard about a similar error previously. In our own tests we have used some ARM platforms such as Raspberry Pi and they have previously worked nicely.

Please provide some additional information about the ARM platform and JRE that you use.

January 13, 2017
13:28, EET
Avatar
agrillo
Member
Members
Forum Posts: 22
Member Since:
June 28, 2016
sp_UserOfflineSmall Offline

Hi,
the platform I’m using is a Xilinx Zynq 7000 with a dual-core ARM Cortex A9, where is installed Java SE Development Kit 8u60 Linux ARM 32 Hard Float ABI.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
12 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, howardkennerley

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

Administrators: admin: 1