Hi Kolja,
It took me a while to re-generate and overcome the problem and it seems that this issue is related to integration of opcua client connector module and Encryption module.
in console messages, if you see something like “Encrypted value is EMPTY” upon connection fail, then please validate the steps I just described.
Hope this helps,
Erman
I’m having the same issue even after following the advice from Erman.
I tried to connect to a public sample opcua server available here: https://kb.opclabs.com/OPC_UA_Demo_Servers
Using UaExpert to browse the sample server available here here :
opc.tcp://opcua.demo-this.com:62544/Quickstarts/AlarmConditionServer works fine. Using Mendix gives me the error:
Unable to connect because of error: null
com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreException: java.util.concurrent.ExecutionException: java.nio.channels.ClosedChannelException
at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:84)
Caused by:
com.mendix.core.CoreException: java.util.concurrent.ExecutionException: java.nio.channels.ClosedChannelException
at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:84)
Caused by:
java.util.concurrent.ExecutionException: java.nio.channels.ClosedChannelException
at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:84)
Caused by:
java.nio.channels.ClosedChannelException
at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:84)
Caused by:
null
at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:84)
Can somebody reproduce this and give me solution?
Cheers,
Robin
Hi Robin,
I also had some further trouble with the connection. Finally I configured the OPC-UA server to allow unencrypted communication (Message encryption: None). After doing that I was able to read using my Mendix application. Hopefully this helps.
Best regards,
Kolja