<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.jacorb.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://www.jacorb.org/bugzilla/"
          
          maintainer="jacorb@goots.org"
>

    <bug>
          <bug_id>1025</bug_id>
          
          <creation_ts>2016-01-29 05:55:17 +0000</creation_ts>
          <short_desc>NPE in IIOPAddress when trying to resolve unknown computer name</short_desc>
          <delta_ts>2016-02-04 03:42:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>JacORB</product>
          <component>ORB</component>
          <version>3.6.1</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jens Vagts">jens</reporter>
          <assigned_to name="Mailinglist to track bugs">jacorb-bugs</assigned_to>
          <cc>jacorb</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3374</commentid>
    <comment_count>0</comment_count>
    <who name="Jens Vagts">jens</who>
    <bug_when>2016-01-29 05:55:17 +0000</bug_when>
    <thetext>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&apos;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)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3376</commentid>
    <comment_count>1</comment_count>
    <who name="Nick Cross">jacorb</who>
    <bug_when>2016-02-04 03:42:25 +0000</bug_when>
    <thetext>Fixed by 63cf9297242880248ac7e4a02ada4d5fa6a91ee0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>