Re: CORBA::ORBit - J2SE CORBA hang up
- From: "KAWAI,Takanori" <GCD00051 nifty ne jp>
- To: <orbit-list gnome org>
- Subject: Re: CORBA::ORBit - J2SE CORBA hang up
- Date: Thu, 29 Nov 2001 13:55:32 +0900
----- Original Message -----
From: "KAWAI,Takanori" <GCD00051@nifty.ne.jp>
To: <orbit-list@gnome.org>
Sent: Wednesday, November 28, 2001 5:25 PM
Subject: CORBA::ORBit - J2SE CORBA hang up
> Hi all.
>
> I try to connect Perl(CORBA::ORBit 0.4.3) client to
> Java (J2SE 1.4.0-beta) server but it hangs up.
> The point seems to be at client.c (CORBA::ORBit) this line:
>
> recv_buffer = giop_recv_reply_buffer_use_2(connection, request_id, TRUE);
It seems that J2SE returns invalid(?) message, because of that
it select sockets again.
So I just modify to avoid this like below:
[Modification]
ORBit-0.5.12/src/IIOP giop-msg-buffer.c
$ diff giop-msg-buffer.csv giop-msg-buffer.c
1085a1086,1102
> if(getenv("JAVACORBA")) {
> GIOP_unsigned_long *lPnt = (GIOP_unsigned_long *)request_ids->data;
>
> unsigned char *cPos = (unsigned char *)retval;
> int iPos = 0;
> for(iPos =0; iPos<sizeof(*retval); ++iPos, ++cPos) {
> if((iPos % 16)==0) printf("\n");
> else if((iPos % 4)==0) printf(" ");
> printf("%02X", *cPos);
> }
> printf("\n----------\nWAIT:%X Java: %X %X\n",
> *lPnt,
> retval->message.u.reply.request_id ,
> retval->message.u.reply.reply_status );
> retval->message.u.reply.request_id = *lPnt;
> retval->message.u.reply.reply_status = 0;
> }
[Result with J2SE]
D8720D08 D4B31908 47494F50 01000001
DD000000 00000000 02000000 B8750D08
FFBF0000 000024F7 00000000 00000000
00000000 00000000 00000000 00000000
00000000 00000000 00000000 48C11908
12C21908 F0782140 02000000 00000000
----------
WAIT:BFFFF724 Java: BFFF F7240000
[Result with Perl]
A8730D08 D4B31908 47494F50 01000101
2F000000 00000000 00000000 00000000
24F7FFBF 00000000 00000000 00000000
00000000 00000000 00000000 00000000
00000000 00000000 00000000 E0C11908
F8C11908 B0720508 02000000 00000000
----------
WAIT:BFFFF724 Java: BFFFF724 0
==============================================
Kawai, Takanori(Hippo2000)
Mail: GCD00051@nifty.ne.jp kwitknr@cpan.org
http://member.nifty.ne.jp/hippo2000
==============================================
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]