12:33, EET
November 11, 2016
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
17:36, EET
April 17, 2013
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.
Most Users Ever Online: 1919
Currently Online:
17 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: 730
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, DeakinModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1