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

Bug 1025

Summary: NPE in IIOPAddress when trying to resolve unknown computer name
Product: JacORB Reporter: Jens Vagts <jens>
Component: ORBAssignee: Mailinglist to track bugs <jacorb-bugs>
Status: RESOLVED FIXED    
Severity: major CC: jacorb
Priority: P5    
Version: 3.6.1   
Hardware: PC   
OS: Windows NT   

Description Jens Vagts 2016-01-29 05:55:17 UTC
When clients register for callbacks or event notifications and deliver a unknown computer name (or the domain server or network is misconfigured)in the class org.jacorb.orb.iiop.IIOPAddress a NullPointerException get's thrown due to a missing logger instance in the catch block of received UnknownHostException:

[2016-01-29 10:33:00.106] WARN  PushTaskExecutor#0-0         org.jacorb.notification.servant.StructuredProxyPushSupplierImpl   handle failed pushoperation java.lang.NullPointerException: null
                at org.jacorb.orb.iiop.IIOPAddress.init_host(IIOPAddress.java:191)
                at org.jacorb.orb.iiop.IIOPAddress.getHostName(IIOPAddress.java:286)
                at org.jacorb.orb.iiop.IIOPAddress.toString(IIOPAddress.java:441)
                at org.jacorb.orb.iiop.IIOPAddress.hashCode(IIOPAddress.java:435)
                at org.jacorb.orb.iiop.IIOPProfile.hashCode(IIOPProfile.java:627)
                at java.util.HashMap.hash(HashMap.java:362)
                at java.util.HashMap.getEntry(HashMap.java:462)
                at java.util.HashMap.get(HashMap.java:417)
                at org.jacorb.orb.giop.ClientConnectionManager.getConnection(ClientConnectionManager.java:96)
                at org.jacorb.orb.Delegate.bind(Delegate.java:542)
                at org.jacorb.orb.Delegate.getObjectKey(Delegate.java:1046)
                at org.jacorb.orb.ORB.findPOA(ORB.java:613)
                at org.jacorb.orb.Delegate.resolvePOA(Delegate.java:1117)
                at org.jacorb.orb.Delegate.is_really_local(Delegate.java:2032)
                at org.jacorb.orb.Delegate.is_local(Delegate.java:2021)
                at org.omg.CORBA.portable.ObjectImpl._is_local(ObjectImpl.java:130)
                at org.omg.CosNotifyComm._StructuredPushConsumerStub.push_structured_event(_StructuredPushConsumerStub.java:110)
                at org.jacorb.notification.servant.StructuredProxyPushSupplierImpl.deliverMessageInternal(StructuredProxyPushSupplierImpl.java:122)
                at org.jacorb.notification.servant.StructuredProxyPushSupplierImpl.deliverMessageWithRetry(StructuredProxyPushSupplierImpl.java:106)
                at org.jacorb.notification.servant.StructuredProxyPushSupplierImpl.pushEvent(StructuredProxyPushSupplierImpl.java:92)
                at org.jacorb.notification.servant.AbstractProxyPushSupplier.tryPushEvent(AbstractProxyPushSupplier.java:144)
                at org.jacorb.notification.servant.AbstractProxyPushSupplier.access$000(AbstractProxyPushSupplier.java:63)
                at org.jacorb.notification.servant.AbstractProxyPushSupplier$1.doPush(AbstractProxyPushSupplier.java:93)
                at org.jacorb.notification.engine.DefaultPushTaskExecutor$Worker.run(DefaultPushTaskExecutor.java:59)


The used jacorb version is the recent 3.7 but this error was observed in older versions as well.
(BTW: in bugzilla is no version 3.7 present)
Comment 1 Nick Cross 2016-02-04 03:42:25 UTC
Fixed by 63cf9297242880248ac7e4a02ada4d5fa6a91ee0