This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/7938] java-rmi-problem


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7938



------- Additional Comments From norbertf at gmx dot net  2003-08-01 13:41 -------
Subject: Re:  java-rmi-problem

i tried myself with gcj today (gcc version 3.3.1 20030616 (prerelease)).

i get the following Exception when starting ./testsrv

Exception in thread "main" java.rmi.UnexpectedException: undeclared
checked exception; nested exception is:
        java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
   at gnu.java.rmi.registry.RegistryImpl_Stub.rebind(java.lang.String,
java.rmi.Remote) (/usr/local/lib/gcc_snap/lib/libgcj.so.4.0.0)
   at java.rmi.Naming.rebind(java.lang.String, java.rmi.Remote)
(/usr/local/lib/gcc_snap/lib/libgcj.so.4.0.0)
   at RMITestServer.startRMISrv(RMITestServer) (Unknown Source)
   at RMITestServer.main(java.lang.String[]) (Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
   <<No stacktrace available>>

the strange thing: testclient actually works. It seems, that the
Execption is thrown in rebind(), after the Object is registered
successfully (the exception is thrown in the registry - i could see it,
sniffing the lo-interface with ethereal)

But!!! the method-call com2 (it has a boolean argument) does not work!.

And there is another problem:

if you start the server twice, a  java.net.BindException: Address
already in use. should be thrown when
LocateRegistry.createRegistry(7777) is called.
this does not happen with GCJ.


-------------------------------------------------------
#
# Compilation:
#
#     PATH has to point to the bin-directory of gcj.
#
#     make
#
# How to start the tests:
#
#   GCJ:
#     ./testsrv
#     ./testclient //localhost:7777/rmitestsrv command
#
#   JDK:
#     ...jdkhome.../bin/java RMITestServer
#     ...jdkhome.../bin/java RMIClient //localhost:7777/rmitestsrv com
#
default :
 
        gcj -C *.java
 
        rmic RMITestServer
 
        gcj --main=RMITestServer *.class -o testsrv
        gcj --main=RMIClient *.class -o testclient


-------------------------------------------------------

regards, norbert

On Thu, 2003-07-31 at 18:18, pinskia at physics dot uc dot edu wrote:
> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7938
> 
> 
> pinskia at physics dot uc dot edu changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|WAITING                     |NEW
>      Ever Confirmed|                            |1
>    Last reconfirmed|0000-00-00 00:00:00         |2003-07-31 22:18:48
>                date|                            |
> 
> 
> ------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-31 22:18 -------
> Okay after running rmic which is the same command for gcj. I ran the program again and 
> this time it did not produce an exception but it did not produce the exepected output of 
> "RMITestServer registered..." so it is busted.
> 
> 
> 
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]