How to connect the OPC UA sever with prosys client?
Using prosys example opc ua client (Prosys-OPC-UA-Java-SDK-Client-Server-Evaluation-1.3.0-3321)to connect to ignition OPC UA Sever,but failed . Whatis the problem,thank you very much.
here is the message:
No server URI defined. (Run with /? to see command line usage)
Would you like to use the default server URI
'opc.tcp://localhost:4096/Ignition_OPC_UA_Server’?
(Y=Yes, N=No, E=Enter a different URI manually)
y
Connecting to opc.tcp://localhost:4096/Ignition_OPC_UA_Server
-
Prosys OPC UA Java SDK v1.3.0.3321
-
© Prosys PMS Ltd. http://www.prosysopc.com
-
Running in EVALUATION mode
-
Connections will close after 120 minutes
07/23/2012 16:44:22.421 INFO Reading application certificate from E:\Prosys-OPC-UA-Java-SDK-Client-Server-Evaluation-1.3.0-3321\Prosys-OPC-UA-Java-SDK-Client-Server-Evaluation-1.3.0-3321\PKI\CA\private\SampleConsoleClient.der
07/23/2012 16:44:23.093 INFO Reading private key from keystore E:\Prosys-OPC-UA-Java-SDK-Client-Server-Evaluation-1.3.0-3321\Prosys-OPC-UA-Java-SDK-Client-Server-Evaluation-1.3.0-3321\PKI\CA\private\SampleConsoleClient.pem
Using SecurityMode [opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15,SignAndEncrypt]
07/23/2012 16:44:33.906 WARN Using an alternate endpoint URL 'opc.tcp://localhost:4096/Ignition_OPC_UA_Server’
*** The Server Certificate :
Subject : CN=Ignition OPC-UA Server, OU=Inductive Automation, O=Inductive Automation, L=Sacramento, ST=California, C=US
Issued by : CN=Ignition OPC-UA Server, OU=Inductive Automation, O=Inductive Automation, L=Sacramento, ST=California, C=US
Valid from: Wed Jul 18 14:46:15 CST 2012
to: Sat Jul 16 14:46:15 CST 2022
- The Certificate is self-signed.
07/23/2012 16:44:50.937 INFO Certificate ‘F7092541C5C0BFF5EF29B2540AC8710D6E7620B1’ added to trusted certificates.
Exception in thread “TcpConnection/Read” java.lang.IllegalArgumentException: object argument must not be null
at org.opcfoundation.ua.builtintypes.ExtensionObject.(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getExtensionObject(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getScalarObject(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getVariant(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getDataValue(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getDataValueArray(Unknown Source)
at org.opcfoundation.ua.core.EncodeableSerializer$120.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.utils.AbstractSerializer.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.utils.SerializerComposition.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.io.TcpConnection$ReadThread.run(Unknown Source)
ServerStatus: null
*** Connected to: opc.tcp://localhost:4096/Ignition_OPC_UA_Server
ServerState changedddddd from Unknown to CommunicationFault
07/23/2012 16:45:23.390 ERROR Unable to retrieve node from AddressSpace: com.prosysopc.ua.ServiceException: Bad_SecureChannelClosed (code=0x80860000, description=“The secure channel has been closed.”) ServiceResult=Bad_SecureChannelClosed (0x80860000) “The secure channel has been closed.”
07/23/2012 16:45:24.203 INFO reconnect: Reconnected to server (session reactivated)
Exception in thread “TcpConnection/Read” java.lang.IllegalArgumentException: object argument must not be null
at org.opcfoundation.ua.builtintypes.ExtensionObject.(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getExtensionObject(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getScalarObject(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getVariant(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getDataValue(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getDataValueArray(Unknown Source)
at org.opcfoundation.ua.core.EncodeableSerializer$120.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.utils.AbstractSerializer.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.utils.SerializerComposition.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.io.TcpConnection$ReadThread.run(Unknown Source)
07/23/2012 16:45:34.328 ERROR Unable to retrieve node from AddressSpace: com.prosysopc.ua.ServiceException: Bad_SecureChannelClosed (code=0x80860000, description=“The secure channel has been closed.”) ServiceResult=Bad_SecureChannelClosed (0x80860000) “The secure channel has been closed.”
07/23/2012 16:45:34.671 INFO reconnect: Reconnected to server (session reactivated)
Exception in thread “TcpConnection/Read” java.lang.IllegalArgumentException: object argument must not be null
at org.opcfoundation.ua.builtintypes.ExtensionObject.(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getExtensionObject(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getScalarObject(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getVariant(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getDataValue(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getDataValueArray(Unknown Source)
at org.opcfoundation.ua.core.EncodeableSerializer$120.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.utils.AbstractSerializer.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.utils.SerializerComposition.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.io.TcpConnection$ReadThread.run(Unknown Source)
07/23/2012 16:45:44.781 ERROR Unable to retrieve node from AddressSpace: com.prosysopc.ua.ServiceException: Bad_SecureChannelClosed (code=0x80860000, description=“The secure channel has been closed.”) ServiceResult=Bad_SecureChannelClosed (0x80860000) “The secure channel has been closed.”
07/23/2012 16:45:45.109 INFO reconnect: Reconnected to server (session reactivated)
Exception in thread “TcpConnection/Read” java.lang.IllegalArgumentException: object argument must not be null
at org.opcfoundation.ua.builtintypes.ExtensionObject.(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getExtensionObject(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getScalarObject(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getVariant(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getDataValue(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getDataValueArray(Unknown Source)
at org.opcfoundation.ua.core.EncodeableSerializer$120.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.utils.AbstractSerializer.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.utils.SerializerComposition.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.io.TcpConnection$ReadThread.run(Unknown Source)
com.prosysopc.ua.ServiceException: Bad_SecureChannelClosed (code=0x80860000, description=“The secure channel has been closed.”) ServiceResult=Bad_SecureChannelClosed (0x80860000) “The secure channel has been closed.”
Caused by: org.opcfoundation.ua.common.ServiceResultException: Bad_SecureChannelClosed (code=0x80860000, description=“The secure channel has been closed.”)
*** Current Node: (ID: i=84)
- Enter x to close client
- Enter 0 to start discovery -
- Enter 1 to connect to server -
- Enter 2 to disconnect from server -
- Enter 3 to browse the server address space -
- Enter 4 to read values -
- Enter 5 to write values -
- Enter 6 to register nodes -
- Enter 7 to unregister nodes -
- Enter 8 to create a subscription -
- Enter 9 to call a method -
07/23/2012 16:45:56.078 INFO reconnect: Reconnected to server (session reactivated)
Exception in thread “TcpConnection/Read” java.lang.IllegalArgumentException: object argument must not be null
at org.opcfoundation.ua.builtintypes.ExtensionObject.(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getExtensionObject(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getScalarObject(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getVariant(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getDataValue(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getDataValueArray(Unknown Source)
at org.opcfoundation.ua.core.EncodeableSerializer$120.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.utils.AbstractSerializer.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.utils.SerializerComposition.getEncodeable(Unknown Source)
at org.opcfoundation.ua.encoding.binary.BinaryDecoder.getMessage(Unknown Source)
at org.opcfoundation.ua.transport.tcp.io.TcpConnection$ReadThread.run(Unknown Source)