Bad_EncodingError
Posted: 11 Aug 2015, 14:10
Hello,
I receive an exceptin if I try to connect to a IBH Link UA Server.
My simple code is just
I tried it with diffrent versions of the OPC UA SDK up to 2.1.0-436 (Evaluation), JRE7 and JRE8.
But it is possible to connect to the IBH OPC server using your tool UaExpert (I use very old version 1.01.329.0.175)
Any idea
I receive an exceptin if I try to connect to a IBH Link UA Server.
Code: Select all
Exception in thread "main" com.prosysopc.ua.client.ConnectException: Failed to retrieve endpoints. The server is not available: opc.tcp://10.4.144.131:48010 ServiceResult=Bad_EncodingError (0x80060000) "Encoding halted because of invalid data in the objects being serialized."
at com.prosysopc.ua.client.UaClient.discoverEndpoints(Unknown Source)
at com.prosysopc.ua.client.UaClient.k(Unknown Source)
at com.prosysopc.ua.client.UaClient.p(Unknown Source)
at com.prosysopc.ua.client.UaClient.connect(Unknown Source)
at com.schott.indit.test.OpcUaClient.main(OpcUaClient.java:21)
Caused by: org.opcfoundation.ua.common.ServiceResultException: Bad_EncodingError (0x80060000) "Encoding halted because of invalid data in the objects being serialized."
at org.opcfoundation.ua.transport.tcp.io.TcpConnection$ReadThread.run(Unknown Source)
Code: Select all
UaClient client = Misc.createUaClient("opc.tcp://10.4.144.131:48010", null, null, 10000);
client.connect();
client.disconnect();
I tried it with diffrent versions of the OPC UA SDK up to 2.1.0-436 (Evaluation), JRE7 and JRE8.
But it is possible to connect to the IBH OPC server using your tool UaExpert (I use very old version 1.01.329.0.175)
Any idea