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
NullpointerException
November 28, 2016
12:33, EET
Avatar
kkukat
Member
Members
Forum Posts: 4
Member Since:
November 11, 2016
sp_UserOfflineSmall Offline

Hello,

I’m getting a NullPointerException from the framework when trying to connect to an opc ua server from open62541 or a python version from FreeOpcUa. My intention is to test our environment for a lot of simulated points and types. If i connect (Also with a simple client from samples) i have this in my logs:

INFO [2016-11-28 10:18:05,166] org.opcfoundation.ua.transport.tcp.io.TcpConnection: kkukat-Precision-M4800/127.0.1.1:16664 Connecting
INFO [2016-11-28 10:18:05,167] org.opcfoundation.ua.transport.tcp.io.TcpConnection: kkukat-Precision-M4800/127.0.1.1:16664 Connected
DEBUG [2016-11-28 10:18:05,167] com.prosysopc.ua.client.UaClient: createSessionChannel
DEBUG [2016-11-28 10:18:05,168] com.prosysopc.ua.client.UaClient: createSessionChannel: session.getEndpoint().getServerCertificate()=null
ERROR [2016-11-28 10:18:05,168] com.lib.opcua.OpcUaManager: null
! java.lang.NullPointerException: null
! at com.prosysopc.ua.client.UaClient.n(Unknown Source) ~[sdk-Binary-2.2.4-674.jar:2.2.4.674]
! at com.prosysopc.ua.client.UaClient.connect(Unknown Source) ~[sdk-Binary-2.2.4-674.jar:2.2.4.674]
….

I used security None with UserIdentity null. The UaExpert can connect without any problems

Karsten

November 30, 2016
17:36, EET
Avatar
Heikki Tahvanainen
Member
Members
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hello Karsten,

This is actually a known bug in the SDK version 2.2.4. The client fails to connect if the serverCertificate of the selected server endpoint is null.

You should update to the version 2.2.6, which contains a fix for this. It’s unfortunate that the version 2.2.4 included such an issue. Fixing this was a priority and this is also one reason why the 2.2.6 release was made now relatively soon after the 2.2.4.

Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 99
Currently Browsing this Page:
1 Guest(s)
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