This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes cannot send MicroSoft Word specific characters to CORBA Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "cannot send MicroSoft Word specific characters to CORBA Server" Watch "cannot send MicroSoft Word specific characters to CORBA Server" New topic
Author

cannot send MicroSoft Word specific characters to CORBA Server

s Joshi
Greenhorn

Joined: Sep 26, 2005
Posts: 12
hello,

I am sending a String to CORBA Server. This String contains MicroSoft Word Specific chacters like this quotes �this is a test�. The CORBA Server gives me this exception

Corba error : org.omg.CORBA.DATA_CONVERSION vmcid: OMG minor coe: 1 completed: NO

I want to retain this character. Is there any way I can get rid of this CORBA exception?

Thanks.
Lin Shen
Ranch Hand

Joined: Oct 08, 2003
Posts: 57
did you define the file you are going to send in your IDL file as type string?

You need to use wstring or send your file as a sequence of bytes (octet).

recommended to read/write your file as array of bytes in Java (sequence<octet> in CORBA).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: cannot send MicroSoft Word specific characters to CORBA Server
 
Similar Threads
Secured connections to corba server
CORBA, COM, and .NET
Corba exceptions any String length limits?
Making a C++ and Java program "Talk"
invoking C++ code from Java in a Remote AIX machine