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: 29
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: 319
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: 29
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: 518

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

ibrahim: 75

rocket science: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

TimK: 41

Member Stats:

Guest Posters: 0

Members: 708

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1465

Posts: 6252

Newest Members:

christi10l, ahamad1, Flores Frederick, ellenmoss, harriettscherer, shanonhumphreys, KupimotoblokfuB, tamhollander5, paulinafcf, bridgette18l

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 982, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 319, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1