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
Send StatusCode - "Bad Waiting For Initial Data" on startup of my OPCUA Server using Java SDK.
July 24, 2025
19:28, EEST
Avatar
mithun
Member
Members
Forum Posts: 10
Member Since:
September 11, 2024
sp_UserOfflineSmall Offline

Hi,

I would like to send an empty null value on startup of my OPCUA Server and the prescribed status code ‘BadWaitingForInitialData’ associated with it. But the current Java SDK does not have this status code available in the com.prosysopc.ua.stack.builtintypes.StatusCode package.

Any help with how to send this status code or if there is a roadmap to support all status codes in the Java SDK?

Thanks!

July 25, 2025
10:25, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1068
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

The statuscodes are listed in the com.prosysopc.ua.stack.core.StatusCodes, as UnsignedInteger, and they are to be used with com.prosysopc.ua.stack.builtintypes.StatusCode.valueOf(UnsignedInteger), e.g.

StatusCode.valueOf(StatusCodes.Bad_WaitingForInitialData)
Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 56
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 100
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 773
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1558
Posts: 6567
Newest Members:
aracelyhaley4, raphaelschonell, Ashmag, kathyreimann56, brittanylemos, dorthycundiff76, PromotionToold, CHHinrichs, rodricklienhop, jose_Wanderlei
Moderators: Jouni Aro: 1039, Pyry: 1, Petri: 1, Bjarne Boström: 1054, Jimmy Ni: 26, Matti Siponen: 359, Lusetti: 0
Administrators: admin: 1