Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues
Bug 977 - NPE on OAAddress 0.0.0.0
Summary: NPE on OAAddress 0.0.0.0
Status: RESOLVED FIXED
Alias: None
Product: JacORB
Classification: Unclassified
Component: ORB (show other bugs)
Version: 3.4 beta
Hardware: PC Linux
: P5 normal
Assignee: Mailinglist to track bugs
URL:
Depends on:
Blocks:
 
Reported: 2014-02-05 10:38 UTC by Juergen Weber
Modified: 2014-04-22 18:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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