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:
19 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: 734
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1523
Posts: 6444
Newest Members:
travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16, edgardo3518, JessevGool, briannestevenson, aracelymassinaModerators: Jouni Aro: 1025, Pyry: 1, Petri: 0, Bjarne Boström: 1024, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1