Avatar
Please consider registering
guest
sp_LogInOut Log Insp_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 RSSsp_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: 1044
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: 1044
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:
Guest(s) 48
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 100
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 773
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1558
Posts: 6567
Newest Members:
aracelyhaley4, raphaelschonell, Ashmag, kathyreimann56, brittanylemos, dorthycundiff76, PromotionToold, CHHinrichs, rodricklienhop, jose_Wanderlei
Moderators: Jouni Aro: 1039, Pyry: 1, Petri: 1, Bjarne Boström: 1054, Jimmy Ni: 26, Matti Siponen: 359, Lusetti: 0
Administrators: admin: 1