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: 1010
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: 1010
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: 518

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

TimK: 41

Member Stats:

Guest Posters: 0

Members: 683

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

digitechroshni, LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma

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