Avatar

Please consider registering
guest

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, EET
Avatar
bijesh.r@tcs.com
Member
Members
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, EET
Avatar
Heikki Tahvanainen
Moderator
Members

Moderators
Forum Posts: 270
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 78

Currently Online:
10 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

pramanj: 86

hbrackel: 74

ibrahim: 65

kapsl: 57

gjevremovic: 49

TimK: 41

fred: 36

Fransua33: 35

Rainer Versteeg: 32

peterrob45: 25

Member Stats:

Guest Posters: 0

Members: 652

Moderators: 10

Admins: 1

Forum Stats:

Groups: 3

Forums: 14

Topics: 685

Posts: 2953

Newest Members:

Ravish Roshan, Max Braun, Predixer, LorraineXu, FF, Jonas, HA198273465, RaeHoffman, susandaigle23, m.scaglioni

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

Administrators: admin: 0