[jacorb-bugs] [Bug 1010] New: Multiple calls on same proxy are not thread safe
bugzilla-daemon at jacorb.org
bugzilla-daemon at jacorb.org
Thu May 28 08:42:58 CEST 2015
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: jacorb-bugs at lists.spline.inf.fu-berlin.de
Reporter: alon_hessing at amat.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spline.inf.fu-berlin.de/pipermail/jacorb-bugs/attachments/20150528/eccf092a/attachment.html>
More information about the jacorb-bugs
mailing list