<html>
    <head>
      <base href="http://www.jacorb.org/bugzilla/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Multiple calls on same proxy are not thread safe"
   href="http://www.jacorb.org/bugzilla/show_bug.cgi?id=1010">1010</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Multiple calls on same proxy are not thread safe
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>JacORB
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.5
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>critical
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>ORB
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>jacorb-bugs@lists.spline.inf.fu-berlin.de
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>alon_hessing@amat.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In Delegate class getReplyGroup method is not thread safe:
    private ReplyGroup getReplyGroup (ClientConnection connectionToUse)
This part of code can cause that if 2 threads are works in parallel one can
works with ReplyGroup that didn't pass the postInit method:
            ReplyGroup g = new ReplyGroup (this, profile);
            group = groups.putIfAbsent (profile, g);
            if (group == null)
            {
                group = g;
                group.postInit();
            }

Why the postInit method is not part of the constructor? This would have solve
the problem?

See below stack trace of the exception I got because of this problem:
(got NullPointerException)

at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:475)
                at org.jacorb.orb.Delegate.invoke(Delegate.java:1232)
                at org.jacorb.orb.Delegate.invoke_internal(Delegate.java:1244)
                at org.jacorb.orb.Delegate._invoke_internal(Delegate.java:1415)
                at org.jacorb.orb.ReplyGroup.addHolder(ReplyGroup.java:92)

Thanks.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>