

18:15, EEST

January 19, 2017

Hallo,
I ‘m trying to laod a xml model to the opcua server. With the sdk version 2.3.0.764 (opcua stack 1.02.337.12) the model can be loaded successfully without any problem.
Now I want to load it using the prosyc sdk 2.3.2-781 and opcua stack 1.02.337.18. I get the following Exception:
org.bouncycastle.util.encoders.DecoderException: unable to decode base64 string: invalid characters encountered in base64 data
at org.bouncycastle.util.encoders.Base64.decode(Unknown Source)
at org.opcfoundation.ua.transport.security.BcCryptoProvider.base64Decode(Unknown Source)
at org.opcfoundation.ua.utils.CryptoUtil.base64Decode(Unknown Source)
at org.opcfoundation.ua.encoding.xml.XmlDecoder.getByteString(Unknown Source)
at org.opcfoundation.ua.encoding.xml.XmlDecoder.getVariantContents(Unknown Source)
at org.opcfoundation.ua.encoding.xml.XmlDecoder.getVariant(Unknown Source)
at com.prosysopc.ua.ModelParserBase.endElement(Unknown Source)
at com.prosysopc.ua.ModelParserBase$a.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2973)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.prosysopc.ua.ModelParserBase.parseFile(Unknown Source)
at com.prosysopc.ua.ModelParserBase.parseFile(Unknown Source)
at com.prosysopc.ua.server.NodeManagerTable.loadModel(Unknown Source)
at com.prosysopc.ua.server.NodeManagerTable.loadModel(Unknown Source)
at com.kuka.basys.demo.objectdetector.ObjectDetectorServerMain.main(ObjectDetectorServerMain.java:32)
Caused by: java.io.IOException: invalid characters encountered in base64 data
at org.bouncycastle.util.encoders.Base64Encoder.decode(Unknown Source)
… 23 more
Thank you
1 Guest(s)
