public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Philippe.Drauge@fr.thalesgroup.com
To: gcc-gnats@gcc.gnu.org
Subject: java/4947: In certain circumstances, a CORBA based application built with GCJ 3.0.1 doesn't work as expected.
Date: Tue, 20 Nov 2001 22:56:00 -0000	[thread overview]
Message-ID: <20011126092411.6539.qmail@sourceware.cygnus.com> (raw)


>Number:         4947
>Category:       java
>Synopsis:       In certain circumstances, a CORBA based application built with GCJ 3.0.1 doesn't work as expected.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 26 01:26:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Philippe Drauge
>Release:        GCJ 3.0.1
>Organization:
>Environment:
PC/Linux (RedHat 6.2)
>Description:
I built a CORBA based application using Orbacus for Java and I performed native compilation with GCJ 3.0.1 to improve performances.
In some circumstances my application doesn't work as expected. Ultimately, I built a very simple application to check and reproduce the problem: That simple application consists of a server and a client; The client invokes synchronously (two ways invocation via CORBA) two methodes of the server. The first one is supposed to raise an exception defined in the IDL interface of the server, the second on contains an out parameter.
I performed a set of test, in bytecode mode and native mode (compilation and link with GCJ) including the following configurations:
-Both client and server in bytecode mode,
-Both client and server in native mode,
-The client in bytecode mode and the server in native mode,
-The client in native mode and the server in bytecode mode.

It turned out that problems occured when the client is in native mode:
-When the client invokes the methode of the server that raises an exception, the exception doesn't reach the client application.
-When the client invokes the methode of the server that contains an out parameter, the invocation doesn't return.

In both cases the client hangs waiting for the return from the server.

In bytecode mode everything workes as expected (... but very slowly !!!).

To build the applications in native mode, I have "unjared" the OB.jar file (Orbacus class files), have compiled with GCJ all the class files of the jar file and the class files of my applications, and I linked all the resulting o files with the appropriate library to get the executables.

The OB.jar can be retrieved from the Orbacus web site (www.orbacus.com). The version I used is the 4.0.5.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2001-11-26  9:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-20 22:56 Philippe.Drauge [this message]
2002-02-26 18:55 rodrigc
2002-10-22 16:04 neroden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011126092411.6539.qmail@sourceware.cygnus.com \
    --to=philippe.drauge@fr.thalesgroup.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).