Decode extension object in Android application #1319
Replies: 4 comments 10 replies
-
It sounds like reading the DataType dictionary failed. Maybe there was an error message? |
Beta Was this translation helpful? Give feedback.
-
I also faced this problem. If I understood correctly, BsdParser uses the awt package, but it is not in the sdk. There is no way to add it. Is there any way to do without BsdParser when developing mobile applications for android? Rejecting re-init on previously-failed class java.lang.Class<com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl>: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/Image; at org.eclipse.milo.opcua.binaryschema.parser.DictionaryDescription org.eclipse.milo.opcua.binaryschema.parser.BsdParser.parse(java.io.InputStream) (BsdParser.java:40) |
Beta Was this translation helpful? Give feedback.
-
From what I can gather via Googlin', JAXB is not supported on Android, and JAXB is required for reading the DataType Dictionary, so you won't be able to use 0.6.x on Android if you need to read custom types. In the |
Beta Was this translation helpful? Give feedback.
-
Hello!
I am writing an application using the Milo library for Android.
I need to get an array of structures from the PLC.
I have written two programs: the first program is a simple Java program, the second is a similar java program for Android.
The first program works successfully, the second throws an exception at the decoding stage of the Extension Object.
Object object = extensionObject.decode(opcUaClient.getDynamicSerializationContext());
Exception:
org.eclipse.milo.opcua.stack.core.UaSerializationException: no codec registered for encodingId=NodeId{ns=4, id=|enc|SPK107 (M01).Application.SHIPMENT_AUTO}
Please tell me the direction of finding a solution to this problem.
Perhaps the Android application needs some additional permissions. Tell me, when decoding, what resources does the milo library use?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions