Hi Kevin,
thanks for replay; Indeed I do not know if that works, I hope so; I have other two questions:
1. Can be possible to know where milo 1.0 will be released?
When I call AbortJoinningProcess as in the figure:
I get the following error:
22:58:29.862 [milo-shared-thread-pool-8] WARN o.e.m.e.s.m.AbortJoiningProcess - Error decoding argument value
org.eclipse.milo.opcua.stack.core.UaSerializationException: no codec registered for encodingId=NodeId{ns=6, id=5121}
at org.eclipse.milo.opcua.stack.core.types.OpcUaDefaultBinaryEncoding.decode(OpcUaDefaultBinaryEncoding.java:105)
at org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject.lambda$0(ExtensionObject.java:105)
at org.eclipse.milo.opcua.stack.core.util.Lazy.maybeCompute(Lazy.java:50)
at org.eclipse.milo.opcua.stack.core.util.Lazy.getOrCompute(Lazy.java:36)
at org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject.decode(ExtensionObject.java:105)
at org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject.decode(ExtensionObject.java:96)
at org.eclipse.milo.opcua.sdk.server.api.methods.AbstractMethodInvocationHandler.lambda$1(AbstractMethodInvocationHandler.java:96)
This error depend that the followiong fragment of code:
@SuppressWarnings("unchecked")
OpcUaBinaryDataTypeCodec<Object> codec =
(OpcUaBinaryDataTypeCodec<Object>)
context.getDataTypeManager().getCodec(encodingId);
if (codec == null) {
throw new UaSerializationException(
StatusCodes.Bad_DecodingError,
"no codec registered for encodingId=" + encodingId);
}
codec is null, because
context.getDataTypeManager().getCodec(encodingId)
return null;
Now the question is why it is null?
the map
private final ConcurrentMap<NodeId, DataTypeCodec> codecsByEncodingId = Maps.newConcurrentMap();
has a plenty of item, but not for NodeId NodeId{ns=6, id=5121};
In the xml file, the node exist and is default binary:
<UAObject NodeId="ns=1;i=5121" BrowseName="Default Binary" SymbolicName="DefaultBinary">
<DisplayName>Default Binary</DisplayName>
<References>
<Reference ReferenceType="HasTypeDefinition">i=76</Reference>
<Reference ReferenceType="HasEncoding" IsForward="false">ns=1;i=3029</Reference>
<Reference ReferenceType="HasDescription">ns=1;i=6251</Reference>
</References>
</UAObject>
thanks really much
Francesco
Ing. Viscomi Francesco