9:52, EET
January 24, 2013
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?
11:08, EET
December 21, 2011
11:44, EET
January 24, 2013
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.
12:41, EET
December 21, 2011
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.
Most Users Ever Online: 1919
Currently Online:
21 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: 738
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
mickey21654, donnyredmond08, keesha4235, cheribruce, candacekolb4, Garmcrypto7Zof, calebhardison, susannahdingle7, inilarythikibia, rickykennionModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1