16:05, EEST
June 21, 2017
Hi Team,
I was trying to connect a Kepware UA server with the sample client provided with library but its failing with below error stack. Any idea what to be looked into to resolve this issue.
We have used Security None and the kepware server is also confirmed with Security None. Please advice
Exception in thread “main” com.prosysopc.ua.SessionActivationException: Failed to initialize User Identity Token: Bad_IdentityTokenRejected (code=0x80210000, description=”Anonymous UserTokenType is not supported”) ServiceResult=Bad_IdentityTokenRejected (0x80210000) “The user identity token is valid but the server has rejected it.”
at com.prosysopc.ua.client.UaClient.r(Unknown Source)
at com.prosysopc.ua.client.UaClient.connect(Unknown Source)
at com.prosysopc.ua.samples.client.SimpleClient.main(SimpleClient.java:43)
Caused by: org.opcfoundation.ua.common.ServiceResultException: Bad_IdentityTokenRejected (code=0x80210000, description=”Anonymous UserTokenType is not supported”)
at org.opcfoundation.ua.utils.EndpointUtil.createAnonymousIdentityToken(Unknown Source)
… 3 more
10:50, EEST
April 17, 2013
Hi,
The error message means that the Kepware server does not accept UserTokenType Anonymous. In other words, you need to use username/password authentication or alternatively user certificate and private key.
Please see Java SDK Client tutorial chapter “5.3 User Identity” for instructions on how to set client to use certain username and password. The tutorial document is available in the “doc” folder of the SDK package.
It’s good to notice that the supported user authentication modes are defined by the server. This means that you need to study the Kepware server documentation in order to know the supported UserTokenType. Probably you need to configure a certain user account on the server side and then set the corresponding username and password in the client application.
Most Users Ever Online: 1919
Currently Online:
24 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: 730
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25ZofModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1