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
Prosys Sample Console Client with Kepware EX Server
July 22, 2014
16:07, EEST
Avatar
OndrejBlazek
Member
Members
Forum Posts: 19
Member Since:
July 22, 2014
sp_UserOfflineSmall Offline

I just downloaded the evaluation version of the Prosys SDK.

Initially I ran the provided Sample Console Server and used the Sample Console Client to read values/attributes from it. This seemed to have worked well.

However, then I wanted to try and read values off of a third party OPC UA Server. In this case I had the Kepware Server Ex installed, so I tried that. I used the Kepware Configuration tool to add an endpoint and then tried using the Sample Console Client to connect to it.

Using Security None, I was not able to connect to the server at all. I got a “Requested endpoint not supported by the server” error.
Initially using Security SIgn or Sign & Encrypt did not work either until I added the client in the Trusted Clients in the Kepware UA configuration.
After that using Security Sign or Sign & Encrypt got me to a Accept Certificate prompt but in both cases entering Accept (or Yes) resulted in a client crash.

I get the following console output:


* The Certificate is self-signed.

07/22/2014 11:56:42.935 INFO Certificate ‘1E0B2A…………………………….33188’ added to trusted certificates.
ServerState changed from Unknown to Running
Exception in thread “main” java.lang.NullPointerException
at org.opcfoundation.ua.utils.ObjectUtils.appendObjectAsString(Unknown Source)
at org.opcfoundation.ua.utils.ObjectUtils._printFieldsDeep(Unknown Source)
at org.opcfoundation.ua.utils.ObjectUtils.printFieldsDeep(Unknown Source)
at org.opcfoundation.ua.core.ServerStatusDataType.toString(Unknown Source)
at java.lang.String.valueOf(String.java:2854)
at java.lang.StringBuilder.append(StringBuilder.java:128)
at com.prosysopc.ua.samples.client.SampleConsoleClient.connect(SampleConsoleClient.java:603)
at com.prosysopc.ua.samples.client.SampleConsoleClient.mainMenu(SampleConsoleClient.java:1270)
at com.prosysopc.ua.samples.client.SampleConsoleClient.main(SampleConsoleClient.java:148)

Confused I use the following settings in the SampleConsoleClient…

E
opc.tcp://localhost:49320
s
A

The server is running and does have data available. Am I doing something wrong or is this a bug in the SampleConsoleClient. Kepware is a major player in the OPC industry and thus I would think that their server would be OPC compliant.

July 23, 2014
5:57, EEST
Avatar
Otso Palonen
Espoo, Finland
Member
Members
Forum Posts: 32
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Hi Ondrej and welcome to the forums! I moved this post to the appropiate forum, since it concerns our OPC UA Java SDK.

Can you send us an email at uajava-support@prosysopc.com so we can provide you with a version that may fix this issue?

July 23, 2014
12:25, EEST
Avatar
OndrejBlazek
Member
Members
Forum Posts: 19
Member Since:
July 22, 2014
sp_UserOfflineSmall Offline

I have used the JAVA SDK Client Tutorial to make a very minimalistic client (just for testing and learning purpose). The client connects to the server using sign security and then uses node navigation to browse the root nodes and a number of sub-nodes until it gets to a bottom most node from which it reads a value.

The code seems to work well with the minimalistic client and thus seems to indicate that the issue is with the Sample Client code.

I have sent an e-mail, as requested, to obtain the fix. However, I would suggest that you either update the download code or at least post a link to the updated code here because, I am guessing, many people may want to try the client with a Kepware server. Laugh

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
23 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: 6451

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