Skip to main content

VBJ 6.5: org.omg.CORBA.BAD_PARAM exception when passing a string contaning a null

  • February 16, 2013
  • 0 replies
  • 0 views

Problem:

VBJ 6.5: org.omg.CORBA.BAD_PARAM exception when passing a string contaning a null

Resolution:

  • Product Name: BES VisiBroker Edition
  • Product Version: 6.5
  • Product Component: ORB
  • Platform/OS Version: All

Description:

Getting org.omg.CORBA.BAD_PARAM exception when passing a string contaning a null character from server to client.


Answer/Solution:

The exception "org.omg.CORBA.BAD_PARAM" is thrown when marshalling on the server side. This is due to the fact that codeset support has been made CORBA compatible. Since the native code set supported for char is ISO 8859-1 and Conversion code set supported for char is UTF-8, it does not allow null characters in Strings.

The release notes for VBE 6.0 gives the lists of the code set supported by VisiBroker for Java. Here is the link to the VBE 6.0 release notes.

http://info.borland.com/devsupport/bes/relnotes/6_0/VBE60_Release_Notes.html#CodeSet

Also, please refer to the following article that gives more information on codesets.

http://support.borland.com/entry!default.jspa?categoryID=124&externalID=16943&fromSearchPage=true

Earlier versions including VBJ 4.5 were not CORBA compatible with respect to codeset support. Hence this exception was not seen for that version.



Author:Meghana Rao

Old KB# 26397

#VisiBroker
#Security