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 connecting to OPC UA server
January 24, 2013
9:52, EEST
Avatar
Stony
New Member
Members
Forum Posts: 2
Member Since:
January 24, 2013
sp_UserOfflineSmall Offline

Hello everyone,

I’m using the Java SDK client to connect to a Copa-Data Zenon OPC UA server (located in a different timezone).
With the graphical client (UAexpert) it’s not a problem connecting to the server.

Using the SampleConsoleClient or writing an own basic client (no client certificate required, no security…) always delivers the following exception on calling client.connect():

Exception in thread “main” com.prosysopc.ua.client.ConnectException: Failed to create session channel to server: : opc.tcp://xxx.xxx.xxx.xxx:4841[http://opcfoundation.org/UA/SecurityPolicy#None,None] ServiceResult=Bad_InvalidTimestamp (0x80230000) “The timestamp is outside the range allowed by the server.”
at com.prosysopc.ua.client.UaClient.h(Unknown Source)
at com.prosysopc.ua.client.UaClient.connect(Unknown Source)
at com.prosysopc.ua.samples.test.SimpleClient.main(SimpleClient.java:57)
Caused by: ServiceFault: Bad_InvalidTimestamp (0x80230000) “The timestamp is outside the range allowed by the server.”
Diagnostic Info:
at org.opcfoundation.ua.transport.tcp.io.SecureChannelTcp.serviceRequest(Unknown Source)
at org.opcfoundation.ua.transport.tcp.io.SecureChannelTcp.serviceRequest(Unknown Source)
at org.opcfoundation.ua.application.Client.createSession(Unknown Source)
… 3 more

Any ideas?

January 24, 2013
11:08, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 853
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Are you running the server on a different computer? Check that the clocks of the computers are in sync and do not differ several minutes from each other.

January 24, 2013
11:44, EEST
Avatar
Stony
New Member
Members
Forum Posts: 2
Member Since:
January 24, 2013
sp_UserOfflineSmall Offline

Jouni Aro said

Are you running the server on a different computer? Check that the clocks of the computers are in sync and do not differ several minutes from each other.

The server is running in California, and the clients in Vienna and Munich.

Nevertheless, I just replaced the Prosys evaluation Java client with the Prosys commercial Java client we purchased a few days ago – and it’s working now! Seems to be a problem with the evaluation Java client.

January 24, 2013
12:41, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 853
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

The TimeZone’s should not matter as long as the UTC times do not differ too much.

And I cannot figure out why the evaluation edition would work any different, unless it’s a different version.

Maybe the time difference is just near the limit where the server decides that it’s too much. You could check if the server documentation says something about the max time difference and whether it can be configured.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 267

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 103

pramanj: 86

ibrahim: 70

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 38

Rainer Versteeg: 32

Thomas Reuther: 31

Member Stats:

Guest Posters: 0

Members: 1118

Moderators: 14

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1034

Posts: 4352

Newest Members:

aldayr, Python techie, emanuel45q, Patrick, sammycontrols, hellema, linoy, subranna, ray, richN9177

Moderators: Jouni Aro: 853, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 559, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 21, Markus Johansson: 24, Matti Siponen: 64, Lusetti: 0

Administrators: admin: 1