Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [milo-dev] request information

Hi kevin, thanks for your reply;

maybe your are referencing this example:
https://github.com/kevinherron/machine-example/tree/master

I've tried to use it, and it seems that works, even if two question:
1. when I load the following /Opc.Ua.Machinery.Result.NodeSet2.xml i get the following warning:
18:30:10.509 [main] INFO  o.e.m.o.s.s.n.OpcUaNamespace - Loaded 2004 nodes in 459ms.
18:30:11.228 [main] WARN  c.d.o.m.example.ModeledNamespace - Decoding failed:
ExtensionObject{encoded=XmlElement{fragment=<ResultDataType xmlns="http://opcfoundation.org/UA/Machinery/Result/Types.xsd">
<ResultMetaData>
<TypeId xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd">
<Identifier>ns=1;i=5006</Identifier>
</TypeId>
<Body xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd">
<ResultMetaDataType xmlns="http://opcfoundation.org/UA/Machinery/Result/Types.xsd">
<EncodingMask>0</EncodingMask>
<ResultId/>
</ResultMetaDataType>
</Body>
</ResultMetaData>
<ResultContent/>
</ResultDataType>},
encodingId=NodeId{ns=5, id=5009}}
org.eclipse.milo.opcua.stack.core.UaSerializationException: no codec registered for encodingId=NodeId{ns=5, id=5009}
at org.eclipse.milo.opcua.stack.core.types.OpcUaDefaultXmlEncoding.decode(OpcUaDefaultXmlEncoding.java:97)
at org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject.lambda$decode$0(ExtensionObject.java:105)
at org.eclipse.milo.opcua.stack.core.util.Lazy.maybeCompute(Lazy.java:50)

2. When i call the sendJoiningProcess i need to modify the responce that the server gives to the client, but I cannot figure out how to accomplish this (that is I want to set the answer when  SendJoiningProcess has called, is there possible?


In attached the log about the warning.



Il giorno lun 24 giu 2024 alle ore 16:17 Kevin Herron <kevinherron@xxxxxxxxx> ha scritto:
Loading models is not currently supported. I have toyed around with this privately in the past but there is nothing in a usable enough state for the public.

Perhaps some day after a 1.0 release this will be implemented.

On Thu, Jun 13, 2024 at 1:20 AM Francesco Viscomi via milo-dev <milo-dev@xxxxxxxxxxx> wrote:
Hi all,
I'm new to OPCUA and Eclispe Milo, but I really interested in using it at my job;

I wasn't able to find out a way to load a model inside the server; In other words I have a namespace defined as  SampleTypes.xml, how I can load it inside my eclipse milo server?

I see that in prosys sdk there is:
server.getAddressSpace().loadModel(new File("SampleTypes.xml").toURI());

So I'm looking to find the equivalent in Eclipse Milo.

And also, is there a way to generate the java class corresponding to the typed defined in SampleTypes.xml file?

hoping someone can give me some information.
thanks a lot

--
Ing. Viscomi Francesco
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev


--
Ing. Viscomi Francesco
18:30:09,081 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
18:30:09,082 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
18:30:09,082 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/C:/Users/a00569321/ws_opcUA/machine-example/target/classes/logback.xml]
18:30:09,141 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
18:30:09,166 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
18:30:09,169 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
18:30:09,241 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - This appender no longer admits a layout as a sub-component, set an encoder instead.
18:30:09,241 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
18:30:09,241 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
18:30:09,242 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
18:30:09,242 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
18:30:09,242 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
18:30:09,242 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@4f0f2942 - Registering current configuration as safe fallback point

18:30:09.244 [main] INFO  c.d.o.machine.example.ExampleServer - security temp dir: C:\Users\A00569~1\AppData\Local\Temp\security
18:30:09.246 [main] INFO  c.d.o.machine.example.ExampleServer - pki dir: C:\Users\A00569~1\AppData\Local\Temp\security\pki
18:30:09.250 [main] INFO  c.d.o.machine.example.KeyStoreLoader - Loading KeyStore at C:\Users\A00569~1\AppData\Local\Temp\security\example-server.pfx
18:30:09.510 [main] INFO  o.e.m.opcua.sdk.server.OpcUaServer - Java version: 17.0.11
18:30:09.511 [main] INFO  o.e.m.opcua.sdk.server.OpcUaServer - Eclipse Milo OPC UA Stack version: 0.6.13
18:30:09.511 [main] INFO  o.e.m.opcua.sdk.server.OpcUaServer - Eclipse Milo OPC UA Server SDK version: 0.6.13
18:30:10.509 [main] INFO  o.e.m.o.s.s.n.OpcUaNamespace - Loaded 2004 nodes in 459ms.
18:30:11.228 [main] WARN  c.d.o.m.example.ModeledNamespace - Decoding failed: 
	ExtensionObject{encoded=XmlElement{fragment=<ResultDataType xmlns="http://opcfoundation.org/UA/Machinery/Result/Types.xsd";>
	<ResultMetaData>
		<TypeId xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd";>
			<Identifier>ns=1;i=5006</Identifier>
		</TypeId>
		<Body xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd";>
			<ResultMetaDataType xmlns="http://opcfoundation.org/UA/Machinery/Result/Types.xsd";>
				<EncodingMask>0</EncodingMask>
				<ResultId/>
			</ResultMetaDataType>
		</Body>
	</ResultMetaData>
	<ResultContent/>
</ResultDataType>}, 
		encodingId=NodeId{ns=5, id=5009}}
org.eclipse.milo.opcua.stack.core.UaSerializationException: no codec registered for encodingId=NodeId{ns=5, id=5009}
	at org.eclipse.milo.opcua.stack.core.types.OpcUaDefaultXmlEncoding.decode(OpcUaDefaultXmlEncoding.java:97)
	at org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject.lambda$decode$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:98)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.reindexValue(ModeledAddressSpace.java:377)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.reindex(ModeledAddressSpace.java:323)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.buildVariableTypeNode(ModeledAddressSpace.java:563)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$3(ModeledAddressSpace.java:90)
	at java.base/java.util.HashMap$Values.forEach(HashMap.java:1065)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$1(ModeledAddressSpace.java:81)
	at org.eclipse.milo.opcua.sdk.server.LifecycleManager$1.startup(LifecycleManager.java:95)
	at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
	at org.eclipse.milo.opcua.sdk.server.LifecycleManager.onStartup(LifecycleManager.java:49)
	at org.eclipse.milo.opcua.sdk.server.AbstractLifecycle.startup(AbstractLifecycle.java:32)
	at org.eclipse.milo.opcua.sdk.server.api.ManagedAddressSpaceFragmentWithLifecycle.startup(ManagedAddressSpaceFragmentWithLifecycle.java:113)
	at com.digitalpetri.opcua.machine.example.ModeledNamespace.createFromNodeSet(ModeledNamespace.java:57)
	at com.digitalpetri.opcua.machine.example.ExampleServer.<init>(ExampleServer.java:168)
	at com.digitalpetri.opcua.machine.example.ExampleServer.main(ExampleServer.java:48)
18:30:11.229 [main] WARN  c.d.o.m.example.ModeledNamespace - Decoding failed: ExtensionObject{encoded=XmlElement{fragment=<ProcessingTimesDataType xmlns="http://opcfoundation.org/UA/Machinery/Result/Types.xsd";><EncodingMask>0</EncodingMask><StartTime>1900-01-01T00:00:00Z</StartTime><EndTime>1900-01-01T00:00:00Z</EndTime>
                    </ProcessingTimesDataType>}, encodingId=NodeId{ns=5, id=5004}}
org.eclipse.milo.opcua.stack.core.UaSerializationException: no codec registered for encodingId=NodeId{ns=5, id=5004}
	at org.eclipse.milo.opcua.stack.core.types.OpcUaDefaultXmlEncoding.decode(OpcUaDefaultXmlEncoding.java:97)
	at org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject.lambda$decode$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:98)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.reindexValue(ModeledAddressSpace.java:377)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.reindex(ModeledAddressSpace.java:323)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$16(ModeledAddressSpace.java:523)
	at java.base/java.util.Optional.map(Optional.java:260)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.buildVariableNode(ModeledAddressSpace.java:512)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$4(ModeledAddressSpace.java:127)
	at java.base/java.util.HashMap$Values.forEach(HashMap.java:1065)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$1(ModeledAddressSpace.java:100)
	at org.eclipse.milo.opcua.sdk.server.LifecycleManager$1.startup(LifecycleManager.java:95)
	at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
	at org.eclipse.milo.opcua.sdk.server.LifecycleManager.onStartup(LifecycleManager.java:49)
	at org.eclipse.milo.opcua.sdk.server.AbstractLifecycle.startup(AbstractLifecycle.java:32)
	at org.eclipse.milo.opcua.sdk.server.api.ManagedAddressSpaceFragmentWithLifecycle.startup(ManagedAddressSpaceFragmentWithLifecycle.java:113)
	at com.digitalpetri.opcua.machine.example.ModeledNamespace.createFromNodeSet(ModeledNamespace.java:57)
	at com.digitalpetri.opcua.machine.example.ExampleServer.<init>(ExampleServer.java:168)
	at com.digitalpetri.opcua.machine.example.ExampleServer.main(ExampleServer.java:48)
18:30:11.230 [main] WARN  c.d.o.m.example.ModeledNamespace - Decoding failed: ExtensionObject{encoded=XmlElement{fragment=<ResultDataType xmlns="http://opcfoundation.org/UA/Machinery/Result/Types.xsd";><ResultMetaData><TypeId xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd";><Identifier>ns=1;i=5006</Identifier>
                            </TypeId><Body xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd";><ResultMetaDataType xmlns="http://opcfoundation.org/UA/Machinery/Result/Types.xsd";><EncodingMask>0</EncodingMask><ResultId/>
                                </ResultMetaDataType>
                            </Body>
                        </ResultMetaData><ResultContent/>
                    </ResultDataType>}, encodingId=NodeId{ns=5, id=5009}}
org.eclipse.milo.opcua.stack.core.UaSerializationException: no codec registered for encodingId=NodeId{ns=5, id=5009}
	at org.eclipse.milo.opcua.stack.core.types.OpcUaDefaultXmlEncoding.decode(OpcUaDefaultXmlEncoding.java:97)
	at org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject.lambda$decode$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:98)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.reindexValue(ModeledAddressSpace.java:377)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.reindex(ModeledAddressSpace.java:323)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$17(ModeledAddressSpace.java:542)
	at java.base/java.util.Optional.orElseGet(Optional.java:364)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.buildVariableNode(ModeledAddressSpace.java:533)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$4(ModeledAddressSpace.java:127)
	at java.base/java.util.HashMap$Values.forEach(HashMap.java:1065)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$1(ModeledAddressSpace.java:100)
	at org.eclipse.milo.opcua.sdk.server.LifecycleManager$1.startup(LifecycleManager.java:95)
	at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
	at org.eclipse.milo.opcua.sdk.server.LifecycleManager.onStartup(LifecycleManager.java:49)
	at org.eclipse.milo.opcua.sdk.server.AbstractLifecycle.startup(AbstractLifecycle.java:32)
	at org.eclipse.milo.opcua.sdk.server.api.ManagedAddressSpaceFragmentWithLifecycle.startup(ManagedAddressSpaceFragmentWithLifecycle.java:113)
	at com.digitalpetri.opcua.machine.example.ModeledNamespace.createFromNodeSet(ModeledNamespace.java:57)
	at com.digitalpetri.opcua.machine.example.ExampleServer.<init>(ExampleServer.java:168)
	at com.digitalpetri.opcua.machine.example.ExampleServer.main(ExampleServer.java:48)
18:30:11.233 [main] WARN  c.d.o.m.example.ModeledNamespace - Decoding failed: ExtensionObject{encoded=XmlElement{fragment=<ResultDataType xmlns="http://opcfoundation.org/UA/Machinery/Result/Types.xsd";><ResultMetaData><TypeId xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd";><Identifier>ns=1;i=5006</Identifier>
                            </TypeId><Body xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd";><ResultMetaDataType xmlns="http://opcfoundation.org/UA/Machinery/Result/Types.xsd";><EncodingMask>0</EncodingMask><ResultId/>
                                </ResultMetaDataType>
                            </Body>
                        </ResultMetaData><ResultContent/>
                    </ResultDataType>}, encodingId=NodeId{ns=5, id=5009}}
org.eclipse.milo.opcua.stack.core.UaSerializationException: no codec registered for encodingId=NodeId{ns=5, id=5009}
	at org.eclipse.milo.opcua.stack.core.types.OpcUaDefaultXmlEncoding.decode(OpcUaDefaultXmlEncoding.java:97)
	at org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject.lambda$decode$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:98)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.reindexValue(ModeledAddressSpace.java:377)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.reindex(ModeledAddressSpace.java:323)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$17(ModeledAddressSpace.java:542)
	at java.base/java.util.Optional.orElseGet(Optional.java:364)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.buildVariableNode(ModeledAddressSpace.java:533)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$4(ModeledAddressSpace.java:127)
	at java.base/java.util.HashMap$Values.forEach(HashMap.java:1065)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$1(ModeledAddressSpace.java:100)
	at org.eclipse.milo.opcua.sdk.server.LifecycleManager$1.startup(LifecycleManager.java:95)
	at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
	at org.eclipse.milo.opcua.sdk.server.LifecycleManager.onStartup(LifecycleManager.java:49)
	at org.eclipse.milo.opcua.sdk.server.AbstractLifecycle.startup(AbstractLifecycle.java:32)
	at org.eclipse.milo.opcua.sdk.server.api.ManagedAddressSpaceFragmentWithLifecycle.startup(ManagedAddressSpaceFragmentWithLifecycle.java:113)
	at com.digitalpetri.opcua.machine.example.ModeledNamespace.createFromNodeSet(ModeledNamespace.java:57)
	at com.digitalpetri.opcua.machine.example.ExampleServer.<init>(ExampleServer.java:168)
	at com.digitalpetri.opcua.machine.example.ExampleServer.main(ExampleServer.java:48)
18:30:11.237 [main] WARN  c.d.o.m.example.ModeledNamespace - Decoding failed: ExtensionObject{encoded=XmlElement{fragment=<ProcessingTimesDataType xmlns="http://opcfoundation.org/UA/Machinery/Result/Types.xsd";><EncodingMask>0</EncodingMask><StartTime>1900-01-01T00:00:00Z</StartTime><EndTime>1900-01-01T00:00:00Z</EndTime>
                    </ProcessingTimesDataType>}, encodingId=NodeId{ns=5, id=5004}}
org.eclipse.milo.opcua.stack.core.UaSerializationException: no codec registered for encodingId=NodeId{ns=5, id=5004}
	at org.eclipse.milo.opcua.stack.core.types.OpcUaDefaultXmlEncoding.decode(OpcUaDefaultXmlEncoding.java:97)
	at org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject.lambda$decode$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:98)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.reindexValue(ModeledAddressSpace.java:377)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.reindex(ModeledAddressSpace.java:323)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$16(ModeledAddressSpace.java:523)
	at java.base/java.util.Optional.map(Optional.java:260)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.buildVariableNode(ModeledAddressSpace.java:512)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$4(ModeledAddressSpace.java:127)
	at java.base/java.util.HashMap$Values.forEach(HashMap.java:1065)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$1(ModeledAddressSpace.java:100)
	at org.eclipse.milo.opcua.sdk.server.LifecycleManager$1.startup(LifecycleManager.java:95)
	at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
	at org.eclipse.milo.opcua.sdk.server.LifecycleManager.onStartup(LifecycleManager.java:49)
	at org.eclipse.milo.opcua.sdk.server.AbstractLifecycle.startup(AbstractLifecycle.java:32)
	at org.eclipse.milo.opcua.sdk.server.api.ManagedAddressSpaceFragmentWithLifecycle.startup(ManagedAddressSpaceFragmentWithLifecycle.java:113)
	at com.digitalpetri.opcua.machine.example.ModeledNamespace.createFromNodeSet(ModeledNamespace.java:57)
	at com.digitalpetri.opcua.machine.example.ExampleServer.<init>(ExampleServer.java:168)
	at com.digitalpetri.opcua.machine.example.ExampleServer.main(ExampleServer.java:48)
18:30:11.575 [main] WARN  c.d.o.m.example.ModeledNamespace - Decoding failed: ExtensionObject{encoded=XmlElement{fragment=<ResultDataType xmlns="http://opcfoundation.org/UA/Machinery/Result/Types.xsd";><ResultMetaData><TypeId xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd";><Identifier>ns=2;i=5006</Identifier>
                            </TypeId><Body xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd";><ResultMetaDataType xmlns="http://opcfoundation.org/UA/Machinery/Result/Types.xsd";><EncodingMask>0</EncodingMask><ResultId/>
                                </ResultMetaDataType>
                            </Body>
                        </ResultMetaData><ResultContent/>
                    </ResultDataType>}, encodingId=NodeId{ns=5, id=5009}}
org.eclipse.milo.opcua.stack.core.UaSerializationException: no codec registered for encodingId=NodeId{ns=5, id=5009}
	at org.eclipse.milo.opcua.stack.core.types.OpcUaDefaultXmlEncoding.decode(OpcUaDefaultXmlEncoding.java:97)
	at org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject.lambda$decode$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:98)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.reindexValue(ModeledAddressSpace.java:377)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.reindex(ModeledAddressSpace.java:323)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$17(ModeledAddressSpace.java:542)
	at java.base/java.util.Optional.orElseGet(Optional.java:364)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.buildVariableNode(ModeledAddressSpace.java:533)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$4(ModeledAddressSpace.java:127)
	at java.base/java.util.HashMap$Values.forEach(HashMap.java:1065)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$1(ModeledAddressSpace.java:100)
	at org.eclipse.milo.opcua.sdk.server.LifecycleManager$1.startup(LifecycleManager.java:95)
	at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
	at org.eclipse.milo.opcua.sdk.server.LifecycleManager.onStartup(LifecycleManager.java:49)
	at org.eclipse.milo.opcua.sdk.server.AbstractLifecycle.startup(AbstractLifecycle.java:32)
	at org.eclipse.milo.opcua.sdk.server.api.ManagedAddressSpaceFragmentWithLifecycle.startup(ManagedAddressSpaceFragmentWithLifecycle.java:113)
	at com.digitalpetri.opcua.machine.example.ModeledNamespace.createFromNodeSet(ModeledNamespace.java:57)
	at com.digitalpetri.opcua.machine.example.ExampleServer.<init>(ExampleServer.java:172)
	at com.digitalpetri.opcua.machine.example.ExampleServer.main(ExampleServer.java:48)
18:30:11.576 [main] WARN  c.d.o.m.example.ModeledNamespace - Decoding failed: ExtensionObject{encoded=XmlElement{fragment=<JoiningResultMetaDataType xmlns="http://opcfoundation.org/UA/IJT/Base/Types.xsd";><EncodingMask>0</EncodingMask><ResultId xmlns="http://opcfoundation.org/UA/Machinery/Result/Types.xsd"/>
                    </JoiningResultMetaDataType>}, encodingId=NodeId{ns=6, id=5047}}
org.eclipse.milo.opcua.stack.core.UaSerializationException: no codec registered for encodingId=NodeId{ns=6, id=5047}
	at org.eclipse.milo.opcua.stack.core.types.OpcUaDefaultXmlEncoding.decode(OpcUaDefaultXmlEncoding.java:97)
	at org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject.lambda$decode$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:98)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.reindexValue(ModeledAddressSpace.java:377)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.reindex(ModeledAddressSpace.java:323)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$16(ModeledAddressSpace.java:523)
	at java.base/java.util.Optional.map(Optional.java:260)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.buildVariableNode(ModeledAddressSpace.java:512)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$4(ModeledAddressSpace.java:127)
	at java.base/java.util.HashMap$Values.forEach(HashMap.java:1065)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$1(ModeledAddressSpace.java:100)
	at org.eclipse.milo.opcua.sdk.server.LifecycleManager$1.startup(LifecycleManager.java:95)
	at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
	at org.eclipse.milo.opcua.sdk.server.LifecycleManager.onStartup(LifecycleManager.java:49)
	at org.eclipse.milo.opcua.sdk.server.AbstractLifecycle.startup(AbstractLifecycle.java:32)
	at org.eclipse.milo.opcua.sdk.server.api.ManagedAddressSpaceFragmentWithLifecycle.startup(ManagedAddressSpaceFragmentWithLifecycle.java:113)
	at com.digitalpetri.opcua.machine.example.ModeledNamespace.createFromNodeSet(ModeledNamespace.java:57)
	at com.digitalpetri.opcua.machine.example.ExampleServer.<init>(ExampleServer.java:172)
	at com.digitalpetri.opcua.machine.example.ExampleServer.main(ExampleServer.java:48)
18:30:11.608 [main] WARN  c.d.o.m.example.ModeledNamespace - Decoding failed: ExtensionObject{encoded=XmlElement{fragment=<ResultDataType xmlns="http://opcfoundation.org/UA/Machinery/Result/Types.xsd";><ResultMetaData><TypeId xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd";><Identifier>ns=2;i=5006</Identifier>
                            </TypeId><Body xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd";><ResultMetaDataType xmlns="http://opcfoundation.org/UA/Machinery/Result/Types.xsd";><EncodingMask>0</EncodingMask><ResultId/>
                                </ResultMetaDataType>
                            </Body>
                        </ResultMetaData><ResultContent/>
                    </ResultDataType>}, encodingId=NodeId{ns=5, id=5009}}
org.eclipse.milo.opcua.stack.core.UaSerializationException: no codec registered for encodingId=NodeId{ns=5, id=5009}
	at org.eclipse.milo.opcua.stack.core.types.OpcUaDefaultXmlEncoding.decode(OpcUaDefaultXmlEncoding.java:97)
	at org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject.lambda$decode$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:98)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.reindexValue(ModeledAddressSpace.java:377)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.reindex(ModeledAddressSpace.java:323)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$17(ModeledAddressSpace.java:542)
	at java.base/java.util.Optional.orElseGet(Optional.java:364)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.buildVariableNode(ModeledAddressSpace.java:533)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$4(ModeledAddressSpace.java:127)
	at java.base/java.util.HashMap$Values.forEach(HashMap.java:1065)
	at com.digitalpetri.opcua.machine.example.ModeledAddressSpace.lambda$1(ModeledAddressSpace.java:100)
	at org.eclipse.milo.opcua.sdk.server.LifecycleManager$1.startup(LifecycleManager.java:95)
	at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
	at org.eclipse.milo.opcua.sdk.server.LifecycleManager.onStartup(LifecycleManager.java:49)
	at org.eclipse.milo.opcua.sdk.server.AbstractLifecycle.startup(AbstractLifecycle.java:32)
	at org.eclipse.milo.opcua.sdk.server.api.ManagedAddressSpaceFragmentWithLifecycle.startup(ManagedAddressSpaceFragmentWithLifecycle.java:113)
	at com.digitalpetri.opcua.machine.example.ModeledNamespace.createFromNodeSet(ModeledNamespace.java:57)
	at com.digitalpetri.opcua.machine.example.ExampleServer.<init>(ExampleServer.java:172)
	at com.digitalpetri.opcua.machine.example.ExampleServer.main(ExampleServer.java:48)
18:30:11.731 [main] INFO  o.e.m.o.stack.server.UaStackServer - Binding endpoint opc.tcp://OVO-Xoawu2tEl5m:62541/milo to 0.0.0.0:62541 [None/None]
18:30:11.920 [main] INFO  o.e.m.o.stack.server.UaStackServer - Binding endpoint opc.tcp://OVO-Xoawu2tEl5m:62541/milo to 0.0.0.0:62541 [Basic256Sha256/SignAndEncrypt]
18:30:11.921 [main] INFO  o.e.m.o.stack.server.UaStackServer - Binding endpoint opc.tcp://OVO-Xoawu2tEl5m:62541/milo/discovery to 0.0.0.0:62541 [None/None]
18:30:11.921 [main] INFO  o.e.m.o.stack.server.UaStackServer - Binding endpoint opc.tcp://10.39.185.91:62541/milo to 0.0.0.0:62541 [None/None]
18:30:11.921 [main] INFO  o.e.m.o.stack.server.UaStackServer - Binding endpoint opc.tcp://10.39.185.91:62541/milo to 0.0.0.0:62541 [Basic256Sha256/SignAndEncrypt]
18:30:11.921 [main] INFO  o.e.m.o.stack.server.UaStackServer - Binding endpoint opc.tcp://10.39.185.91:62541/milo/discovery to 0.0.0.0:62541 [None/None]
18:30:11.921 [main] INFO  o.e.m.o.stack.server.UaStackServer - Binding endpoint opc.tcp://OVO-Xoawu2tEl5m.atlascopco.group:62541/milo to 0.0.0.0:62541 [None/None]
18:30:11.921 [main] INFO  o.e.m.o.stack.server.UaStackServer - Binding endpoint opc.tcp://OVO-Xoawu2tEl5m.atlascopco.group:62541/milo to 0.0.0.0:62541 [Basic256Sha256/SignAndEncrypt]
18:30:11.921 [main] INFO  o.e.m.o.stack.server.UaStackServer - Binding endpoint opc.tcp://OVO-Xoawu2tEl5m.atlascopco.group:62541/milo/discovery to 0.0.0.0:62541 [None/None]
18:30:11.921 [main] INFO  o.e.m.o.stack.server.UaStackServer - Binding endpoint opc.tcp://127.0.0.1:62541/milo to 0.0.0.0:62541 [None/None]
18:30:11.921 [main] INFO  o.e.m.o.stack.server.UaStackServer - Binding endpoint opc.tcp://127.0.0.1:62541/milo to 0.0.0.0:62541 [Basic256Sha256/SignAndEncrypt]
18:30:11.922 [main] INFO  o.e.m.o.stack.server.UaStackServer - Binding endpoint opc.tcp://127.0.0.1:62541/milo/discovery to 0.0.0.0:62541 [None/None]
18:30:15.231 [milo-nonce-util-secure-random] INFO  o.e.m.o.stack.core.util.NonceUtil - SecureRandom seeded in 0ms.

Back to the top