Topic RSS12:33, EET
November 11, 2016
OfflineHello,
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
OfflineHello 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.
1 Guest(s)

Log In
Register