[prev in list] [next in list] [prev in thread] [next in thread]
List: jacorb-developer
Subject: Re: [jacorb-developer] Missing name service and null pointer: beta14
From: Gerald Brose <brose () inf ! fu-berlin ! de>
Date: 2000-01-13 15:58:34
Message-ID: 387DF62A.58C40DDB () inf ! fu-berlin ! de
[Download RAW message or body]
Hello.
This is a known bug in src/jacorb/orb/ORB.java (although it seems I
have not provided a fix). To fix it, please edit the source code of
ORB.java and change l.180 (or l. 181, method _getConnection())
which says
if( retries == 0 )
to
if( retries < 0 )
After recompiling, you should get a org.omg.CORBA.COMM_FAILURE
exception instead of a NullPointer - which is correct here.
Judging from you stack trace below, your application does need
the name server as it actively tries to bind to it, no hidden
ORB activity here ;-).
Regards, Gerald Brose.
Marcel Ruff wrote:
>
> Hi,
>
> i'm using JacORB1_0-beta14 with all the patches from
> http://www.inf.fu-berlin.de/~brose/jacorb - Known Problems
> on Linux glibc 2.1.2 with JDK 1.2.2 (RC3)
>
> When i try to start my server, it automatically polls for the name
> service.
> As i don't need the name service, i don't start ns.
>
> This leads to a null pointer and stops my server:
>
> [ Retrying connection to 192.168.1.1:1587 ]
> [ Retrying connection to 192.168.1.1:1587 ]
> [ Retrying connection to 192.168.1.1:1587 ]
> java.lang.NullPointerException
> at jacorb.orb.Delegate.request(Delegate.java:456)
> at
> org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:71)
> at
> org.omg.CosNaming._NamingContextStub.bind(_NamingContextStub.java:140)
> at org.xmlBlaster.Main.<init>(Main.java:87)
> at org.xmlBlaster.Main.main(Main.java:160)
> Jan 13, 2000 1:16:44 PM PANIC: [Main] java.lang.NullPointerException
>
> Note that this was no problem with beta13.
>
> As i have set jacorb.retries=2, the third polling is incorrect
> and causes the problem (i believe).
>
> Is there any work around possible?
>
> thanks Marcel
>
> --
> Marcel Ruff
> ruff@swand.lake.de
> http://www.lake.de/home/lake/swand/
>
> _______________________________________________
> jacorb-developer maillist - jacorb-developer@lists.spline.inf.fu-berlin.de
> http://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
--
Gerald Brose, Mail: brose@inf.fu-berlin.de
FU Berlin (for PGP key see:) http://www.inf.fu-berlin.de/~brose
Institut f. Informatik Ph-one: (++49-30) 838-75112
Berlin, Germany Ph-ax: (++49-30) 838-75109
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic