Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot send MicroSoft Word specific characters to CORBA Server

 
s Joshi
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic