[Bug 1010] New: Multiple calls on same proxy are not thread safe

[email protected] Thu, 28 May 2015 06:42:58 +0000
Newsgroups gmane.comp.corba.jacorb.bugs
Message-ID <[email protected]/bugzilla/>
http://www.jacorb.org/bugzilla/show_bug.cgi?id=1010

            Bug ID: 1010
           Summary: Multiple calls on same proxy are not thread safe
           Product: JacORB
           Version: 3.5
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: critical
          Priority: P5
         Component: ORB
          Assignee: [email protected]
          Reporter: [email protected]

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
jacorb-bugs mailing list
[email protected]
https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-bugs