Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues

Bug 977

Summary: NPE on OAAddress 0.0.0.0
Product: JacORB Reporter: Juergen Weber <juergen>
Component: ORBAssignee: Mailinglist to track bugs <jacorb-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: jacorb
Priority: P5    
Version: 3.4 beta   
Hardware: PC   
OS: Linux   

Description Juergen Weber 2014-02-05 10:38:13 UTC
If JacORB 3.4 final is inited with
Property("OAAddress", "iiop://0.0.0.0:2014")
there is an NPE.

To reproduce: 
use the property with the hello demo:

props.setProperty("OAAddress", "iiop://0.0.0.0:2014");


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)
Comment 1 Nick Cross 2014-02-08 03:16:03 UTC
A NullPointer can also be provoked by enabling SSL and passing  -ORBListenEndpoints iiop://:45678

This should by corrected as well.
Comment 2 Nick Cross 2014-04-22 18:13:50 UTC
Fixed by https://github.com/JacORB/JacORB/pull/106