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
SampleConsoleClient - NullPointerException
July 6, 2015
13:01, EEST
Avatar
reinhold.kern
Member
Members
Forum Posts: 7
Member Since:
July 6, 2015
sp_UserOfflineSmall Offline

I try to connect to a OPC UA server with the SampleConsoleClient but without success:
(SampleConsoleClient.bat -u expert -p expert)

07/06/2015 15:25:25.666 DEBUG createSessionChannel
07/06/2015 15:25:25.666 DEBUG activateSessionChannel: endpoint=opc.tcp:// … (reinhold.kern: removed valid url…)
07/06/2015 15:25:25.666 DEBUG disconnectSubscriptions: null
Exception in thread "main" java.lang.NullPointerException
at org.opcfoundation.ua.utils.EndpointUtil.createUserNameIdentityToken(Unknown Source)
at com.prosysopc.ua.client.UaClient.c(Unknown Source)
at com.prosysopc.ua.client.UaClient.connect(Unknown Source)
at com.prosysopc.ua.samples.client.SampleConsoleClient.connect(SampleConsoleClient.java:608
at com.prosysopc.ua.samples.client.SampleConsoleClient.mainMenu(SampleConsoleClient.java:13
at com.prosysopc.ua.samples.client.SampleConsoleClient.main(SampleConsoleClient.java:153)

I am using “Prosys-OPC-UA-Java-SDK-Client-Binary-2.1.2-478”, JDK 8 x86

Security settings: SecurityPolicy: none
Authentication settings: Username/Password

With UaExpert a connection can be established without any problems.

July 6, 2015
14:58, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Which server are you connecting to?

July 6, 2015
15:06, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Hmm, looks like I spotted the possible bug already. I will provide you a beta version for testing by email – we are approaching the release of 2.2.0 as well, but it will be good to verify that this fits in before that.

July 6, 2015
16:25, EEST
Avatar
reinhold.kern
Member
Members
Forum Posts: 7
Member Since:
July 6, 2015
sp_UserOfflineSmall Offline

Thanks for the fast reply!

We are try to connect to a injection molding machine:
ApplicationUri=uri://Arburg/App/Selogica/direct
ProductUri=uri://Arburg/Products/Selogica/direct
ApplicationName=(en) ARBURG Selociga direct

I could send you a more detailed log if you want.

After receiving and testing the beta release I will give you some feedback.

July 7, 2015
14:49, EEST
Avatar
reinhold.kern
Member
Members
Forum Posts: 7
Member Since:
July 6, 2015
sp_UserOfflineSmall Offline

Thanks. The issue is now resolved in the beta version..

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
51 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