Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Problems with Java SDK 32 bit
May 20, 2014
13:06, EEST
Avatar
matteo.leggieri
Member
Members
Forum Posts: 11
Member Since:
May 20, 2014
sp_UserOfflineSmall Offline

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.

May 20, 2014
14:59, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

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.

June 6, 2014
15:26, EEST
Avatar
matteo.leggieri
Member
Members
Forum Posts: 11
Member Since:
May 20, 2014
sp_UserOfflineSmall Offline

Hi Bjarne,
thanks for reply.

I see it now because I did not receive an email notification about your reply.
Is it normal or there is some setting in my profile?

June 9, 2014
11:24, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Unfortunately, the current forum does not send any email notifications. You can use the RSS feed (Topic RSS above, All RSS below) to watch for the forum, though.

June 10, 2014
9:59, EEST
Avatar
matteo.leggieri
Member
Members
Forum Posts: 11
Member Since:
May 20, 2014
sp_UserOfflineSmall Offline

Ok for email notification. Now I’m monitoring forum without using RSS. If I will need in future I will use it.

For my exception problem, in fact Java 7 (32 bit) solved it.

Thanks.

Forum Timezone: Europe/Helsinki

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, ellis87832073466

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1