Avatar
Please consider registering
guest
sp_LogInOut Log Insp_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 RSSsp_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: 36
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: 353
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/OPCFoundati…..issues/155 for more information on the underlying issue and https://downloads.prosysopc.co…..sion-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: 36
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:
Guest(s) 12
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 733
Moderators: 8
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1545
Posts: 6516
Newest Members:
basilpullman, Richardmip, mood edibles, LouieWreve, daniellabdx, janessan21, sammiebeak359, gena7127517, thorstenbouldin, Brett.Rollason
Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 1, Bjarne Boström: 1045, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1