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
getNode(i=47) ~ ReferenceType "HasComponent" leads to thread "TcpConnection/Read" getExpandedNodeId() runs into IllegalArgumentException: Value underflow
October 7, 2020
19:22, EEST
Avatar
in-fke
Member
Members
Forum Posts: 35
Member Since:
June 8, 2016
sp_UserOfflineSmall Offline

We are using:

OPC UA Client:
Prosys-OPC-UA-Java-SDK-Client-Binary-2.3.0-764.jar
Opc.Ua.Stack-1.02.337.12.jar

OPC UA Server:
prosys-opc-ua-simulation-server-windows-x64-5.0.2-242.exe

We are calling getNode() (well, or getType()) on i=47 (which happens to be ReferenceType “HasComponent”) and then we get this:

Exception in thread “TcpConnection/Read” java.lang.IllegalArgumentException: Value underflow
at org.opcfoundation.ua.builtintypes.UnsignedInteger.(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getExpandedNodeId(Unknown Source)
at org.opcfoundation.ua.core.EncodeableSerializer$81.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$82.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$84.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.getMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.io.TcpConnection$ReadThread.run(Unknown Source)

And in the following, the actual calling thread runs into this:

com.prosysopc.ua.ServiceException: Bad_Timeout (code=0x800A0000, description=”The operation timed out.”)
at com.prosysopc.ua.client.UaClient.doRead(Unknown Source) ~[prosys-opc-ua-client-2.3.0-764.jar:2.3.0.764]
at com.prosysopc.ua.client.UaClient.read(Unknown Source) ~[prosys-opc-ua-client-2.3.0-764.jar:2.3.0.764]
at com.prosysopc.ua.client.UaClient.readAttributes(Unknown Source) ~[prosys-opc-ua-client-2.3.0-764.jar:2.3.0.764]
at com.prosysopc.ua.client.UaClient.readAttributes(Unknown Source) ~[prosys-opc-ua-client-2.3.0-764.jar:2.3.0.764]
at com.prosysopc.ua.client.AddressSpace.getNode(Unknown Source) ~[prosys-opc-ua-client-2.3.0-764.jar:2.3.0.764]
at com.prosysopc.ua.client.AddressSpace.getType(Unknown Source) ~[prosys-opc-ua-client-2.3.0-764.jar:2.3.0.764]

Any explanation on this? Known Bug in Client? (see Version above), Update opc-ua-stack? From where?

THANK YOU!

October 8, 2020
13:05, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

This is a known issue that has been fixed in version 3.1.6 of the Prosys OPC UA SDK for Java. See https://github.com/OPCFoundation/UA-Java-Legacy/issues/155 for more information on the underlying issue and https://downloads.prosysopc.com/opcua/Prosys_OPC_UA_Java_SDK_3_Release_Notes.html#version-3-1-6 for the release notes for version 3.1.6.

Please update to either version 3.1.6 or a newer version of the SDK. We would recommend you to update to version 4.x of the SDK, if that is possible for you.

October 9, 2020
12:54, EEST
Avatar
in-fke
Member
Members
Forum Posts: 35
Member Since:
June 8, 2016
sp_UserOfflineSmall Offline

Thank you for the quick reply. I will get in touch with you directly.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
18 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: 735

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1523

Posts: 6449

Newest Members:

rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16

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

Administrators: admin: 1