[jacorb-developer] OAAddress iiop://0.0.0.0:2014 supported?

Jürgen Weber juergen at jwi.de
Wed Feb 5 14:52:43 CET 2014


Massimo,

thanks for the tip, that solves the problem.
Still, the NPE shouldn't be.

I wondered, if I could let the Orb chose the port, but I need the port
number and didn't find a way to get the Orb listen port (activating a dummy
servant and parsing the IOR looks a bit like overkill ;-)

Juergen
Am 05.02.2014 14:07 schrieb "Massimo Pichini" <massimo.pichini at gmail.com>:

> Try using iiop://:2014, that's the way we pass the ORB the TCP port to bind
> to
>
> Massimo
>
>
> 2014-02-05 Jürgen Weber <juergen at jwi.de>:
>
> > Hi,
> >
> > I tried to run the hello demo with an OAAddress iiop://0.0.0.0:2014
> >
> > props.setProperty("OAAddress", "iiop://0.0.0.0:2014");
> >
> > The server NPEs with
> >
> > INFO Initialising ORB with ID:
> > INFO oid: 00 33 4 <00334>C 46 16 15 3 <4616153>D 10 0C 10 06 30 46 38 14
> 14
> > 1 <100630463814141>B 48 4C 1B .3LF..=....0F8...HL.object is activated
> > INFO Using server ID (4703676094) for transient POA
> > Exception in thread "main" java.lang.NullPointerException
> > at org.jacorb.orb.iiop.IIOPAddress.write(IIOPAddress.java:538)
> > at
> > org.jacorb.orb.iiop.IIOPProfile.writeAddressProfile(IIOPProfile.java:456)
> > at org.jacorb.orb.etf.ProfileBase.marshal(ProfileBase.java:145)
> > at org.jacorb.orb.ORB.createIOR(ORB.java:963)
> > at org.jacorb.orb.ORB.getReference(ORB.java:1199)
> > at org.jacorb.poa.POA.getReference(POA.java:1308)
> > at org.jacorb.poa.POA.servant_to_reference(POA.java:2015)
> > at demo.hello.Server.main(Server.java:34)
> >
> > Is 0.0.0.0 not supported?
> >
> > Thanks,
> > Juergen
> > _______________________________________________
> > jacorb-developer maillist  -
> > jacorb-developer at lists.spline.inf.fu-berlin.de
> > https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
> >
>
>
>
> --
> Massimo
> _______________________________________________
> jacorb-developer maillist  -
> jacorb-developer at lists.spline.inf.fu-berlin.de
> https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
>


More information about the jacorb-developer mailing list