13:06, EEST
May 20, 2014
Hi all,
I’m evaluating OPC UA Java SDK and I encountered a problem using a JDK 32 bit, precisely Java SE Runtime Environment build 1.6.0-b105.
I’m using Netbeans to run SampleConsoleServer and running sample I get an Excepiton with the following stack trace:
java.lang.NullPointerException
at javax.xml.bind.DatatypeConverter.parseBase64Binary(DatatypeConverter.java:296)
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$b.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.prosysopc.ua.ModelParserBase.parseFile(Unknown Source)
at com.prosysopc.ua.server.NodeManagerTable.loadModel(Unknown Source)
at com.prosysopc.ua.server.NodeManagerRoot.a(Unknown Source)
at com.prosysopc.ua.server.NodeManagerRoot.init(Unknown Source)
at com.prosysopc.ua.server.NodeManagerTable.init(Unknown Source)
at com.prosysopc.ua.server.NodeManagementServiceHandler.a(Unknown Source)
at com.prosysopc.ua.server.UaServer.initServiceHandlers(Unknown Source)
at com.prosysopc.ua.server.UaServer.init(Unknown Source)
at com.byautoma.opc.samples.server.SampleConsoleServer.initialize(SampleConsoleServer.java:1196)
at com.byautoma.opc.samples.server.SampleConsoleServer.main(SampleConsoleServer.java:173)
It seems a problem related to method used for a 64 bit system, in fact if I use JDK SE 1.7.0_2-b13 which is a 64 bit version I did not encounter the problem.
Is OPC UA Java SDK only compatible with 64 bit java version? If not, where I’m wrong?
Thanks.
14:59, EEST
April 3, 2012
Hi,
The SDK works with both as it doesn’t use any native code libraries (normal Java bytecode is the same for 32 and 64 bit). As the error comes from outside the SDK (the javax.xml…. is in the Java API), I would assume this is a bug with that JRE/JDK version. The Java version 1.6.0-b105 is something like 6 years old and to my knowledge the first release of Java 6, so probably this has beed fixed in some later update.
15:26, EEST
May 20, 2014
Most Users Ever Online: 1919
Currently Online:
18 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 731
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
inilarythikibia, rickykennion, PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1