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
Console Client Sending Empty Endpoint URL
October 16, 2014
0:16, EEST
Avatar
Kevin Herron
Member
Members
Forum Posts: 8
Member Since:
March 7, 2014
sp_UserOfflineSmall Offline

When I connect the console client to a specific endpoint URL it connects but in the TCP Hello message it sends an empty endpointUrl parameter, causing the connection to be rejected by the server.

Why isn’t the endpoint URL being included?

Kevins-MacBook-Pro:samples kevin$ ./SampleConsoleClient.sh opc.tcp://10.20.7.111:12685/ctt-test-server
Connecting to opc.tcp://10.20.7.111:12685/ctt-test-server
* Prosys OPC UA Java SDK v2.0.2-275
* (c) Prosys PMS Ltd.

* Running in EVALUATION mode
* Connections will close after 120 minutes

10/15/2014 17:14:40.925 INFO Reading application certificate from /Users/kevin/Downloads/Prosys-OPC-UA-Java-SDK-Client-Server-Evaluation-2.0.2-275/samples/PKI/CA/private/SampleConsoleClient.der
10/15/2014 17:14:40.948 INFO Reading private key from keystore /Users/kevin/Downloads/Prosys-OPC-UA-Java-SDK-Client-Server-Evaluation-2.0.2-275/samples/PKI/CA/private/SampleConsoleClient.pem
10/15/2014 17:14:41.263 INFO HTTPS certificate loaded from PKI/CA/private/SampleConsoleClient_https.der
10/15/2014 17:14:41.265 INFO HTTPS private key loaded from PKI/CA/private/SampleConsoleClient_https.pem
Using SecurityPolicy http://opcfoundation.org/UA/Se…..olicy#None
com.prosysopc.ua.client.ConnectException: Failed to retrieve endpoints. The server is not available: opc.tcp://10.20.7.111:12685/ctt-test-server ServiceResult=Bad_TcpEndpointUrlInvalid (0x80830000) “The Server does not recognize the QueryString specified.”
Caused by: org.opcfoundation.ua.common.ServiceResultException: Bad_TcpEndpointUrlInvalid (code=0x80830000, description=”unrecognized endpoint: “)

October 16, 2014
10:37, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Please, contact our support so that we can see what could be done to this.

October 22, 2014
23:16, EEST
Avatar
Kevin Herron
Member
Members
Forum Posts: 8
Member Since:
March 7, 2014
sp_UserOfflineSmall Offline

Am I not contacting support here? Laugh

This is a 3rd party server and the Prosys sample console client. It’s pretty cut and dry: the sample console client isn’t sending an endpoint url in the Hello message.

October 23, 2014
7:18, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yes, sorry, I was a bit unclear. I mean that it would be easier to handle this via email. We will contact you.

December 10, 2015
0:45, EET
Avatar
zhencai
Member
Members
Forum Posts: 8
Member Since:
August 11, 2015
sp_UserOfflineSmall Offline

How was this exception solved? I encountered the exactly same error when I used prosys opcua client library to connect to a third party server. I tried to set the endpoint url by setting the EndpointDescription. It did not help.
EndpointDescription endpointDesc = new EndpointDescription();
endpointDesc.setEndpointUrl(getServerUri());
this.opcUaClient.setEndpoint(endpointDesc);

BTW, I used “Prosys OPC UA Client” program to connect to the server, I got error “Cannot discover applications from opc.tcp://…”.

December 10, 2015
15:52, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

This was an interoperability problem with the server. If the client cannot connect then the server is not available in the defined connection address (or is not working properly).

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
17 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: 1524

Posts: 6450

Newest Members:

jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1