Quantcast
Channel:
Viewing all articles
Browse latest Browse all 44024

Wiki Page: Exception in Serialization of ENUMs in AppServer 6.6 (VB 7.0)

$
0
0
Problem: Product Name: Borland AppServer 6.6, VisiBroker 7.0 Product Version: 6.6 Product Component: marshaling  Platform/OS version: All Exception in Serialization of ENUM s in AppServer 6.6 (VB 7.0) When serializing enum s with VisiBroker 7.0 (used by AppServer 6.6), the following exception is thrown: Exception in thread "main" org.omg.CORBA.MARSHAL: Error unmarshaling value [Error unmarshaling value [Could not allocate instance of class Bank.AdminToolConstants$INTERNER_TYP]] vmcid: 0x0 minor code: 0 completed: No at com.inprise.vbroker.orb.CDRInputStream$ValueTypeReader.octets(Unknown Source) at com.inprise.vbroker.orb.CDRInputStream$ValueTypeReader.state(Unknown Source) at com.inprise.vbroker.orb.CDRInputStream$ValueTypeReader.value(Unknown Source) at com.inprise.vbroker.orb.CDRInputStream.readValueType(Unknown Source) at com.inprise.vbroker.orb.CDRInputStream.read_value(Unknown Source) at Bank._AccountManagerStub.getSessionData(_AccountManagerStub.java:142) at Client.main(Client.java:15) Resolution: In VB 7.0, the new JDK 1.5 language features are not supported, and that includes enum , which is part of the JDK 1.5 new features. VisiBroker 7.0 only supports JDK 1.5 at runtime. There is an attached test case for this issue. Hence, the recommendation is to either: workaround the problem by avoiding the use of enum s and use pre-JDK 1.5 features (i.e. using public static final String/Primitives constants) in their application code, or upgrade to VB 8.0. TestCase-Serialization_Of_ENUMs.zip Old KB# 30394

Viewing all articles
Browse latest Browse all 44024

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>