[jacorb-developer] jacorb/omniorb marshalling

Noé Casas Manzanares ncasas at gmv.com
Wed Apr 25 19:42:39 CEST 2012


I am trying to encode some CORBA structure into a byte array in Java with JacORB and decode it from C++ using omniORB. I have not succeeded.

On the Java side I have tried using the "helper" class (generated in the compilation of the IDL) to serialize my CORBA structure to a CDRoutputStream and also by means of CodecFactory (http://article.gmane.org/gmane.comp.corba.jacorb.devel/5193/). Both ways work properly if I deserialize the resulting bytes with JacORB, but in both cases I get a segmentation fault when trying to unmarshall from omniORB using cdrEncapsulationStream.

Do these approaches (the ones that I have used to serialize with JacORB) generate data that is readable from other ORBs? or am I doing something wrong?

Thanks.



______________________
This message including any attachments may contain confidential 
information, according to our Information Security Management System,
 and intended solely for a specific individual to whom they are addressed.
 Any unauthorised copy, disclosure or distribution of this message
 is strictly forbidden. If you have received this transmission in error,
 please notify the sender immediately and delete it.

______________________
Este mensaje, y en su caso, cualquier fichero anexo al mismo,
 puede contener informacion clasificada por su emisor como confidencial
 en el marco de su Sistema de Gestion de Seguridad de la 
Informacion siendo para uso exclusivo del destinatario, quedando 
prohibida su divulgacion copia o distribucion a terceros sin la 
autorizacion expresa del remitente. Si Vd. ha recibido este mensaje 
 erroneamente, se ruega lo notifique al remitente y proceda a su borrado. 
Gracias por su colaboracion.

______________________



More information about the jacorb-developer mailing list