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
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
Moderator
Members

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

Currently Online:
12 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: 682

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