Please consider registering

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
Error while connecting Kepware UA wrapper
September 22, 2017
16:05, EEST
Forum Posts: 11
Member Since:
June 21, 2017
sp_UserOfflineSmall Offline

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

September 25, 2017
10:50, EEST
Heikki Tahvanainen

Forum Posts: 368
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline


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.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 78

Currently Online:
13 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 87

pramanj: 86

ibrahim: 66

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 36

Rainer Versteeg: 32

peterrob45: 25

Member Stats:

Guest Posters: 0

Members: 748

Moderators: 10

Admins: 1

Forum Stats:

Groups: 3

Forums: 14

Topics: 785

Posts: 3331

Newest Members:

ybhmas5017, marilyni80, Markus Friese, shaniwinchcombe, Colin Bennett, nandish, David.K, Frank Schäckermann, jb, georgiannakahle

Moderators: Jouni Aro: 819, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 289, Heikki Tahvanainen: 368, Jukka Asikainen: 1

Administrators: admin: 0