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, EET
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, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1010
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, EET
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, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1010
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: 518

Currently Online:
25 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1