[jacorb-bugs] [Bug 994] New: NullPointerException during ORB initialization
bugzilla-daemon at jacorb.org
bugzilla-daemon at jacorb.org
Wed Oct 1 14:59:53 CEST 2014
http://www.jacorb.org/bugzilla/show_bug.cgi?id=994
Bug ID: 994
Summary: NullPointerException during ORB initialization
Product: JacORB
Version: 3.5
Hardware: PC
OS: Windows NT
Status: NEW
Severity: major
Priority: P5
Component: ORB
Assignee: jacorb-bugs at lists.spline.inf.fu-berlin.de
Reporter: franky.bugzilla at gmail.com
I'm running multiple ORB instances (each with different properties) within a
single JVM. The differnt ORB instances are initialized in parallel on multiple
threads. All goes well until today where I got a NullPointerException during
orb initialization:
java.lang.NullPointerException
at
org.omg.CONV_FRAME.CodeSetComponentHelper.write(CodeSetComponentHelper.java:68)
at
org.omg.CONV_FRAME.CodeSetComponentInfoHelper.write(CodeSetComponentInfoHelper.java:68)
at
org.jacorb.orb.standardInterceptors.CodeSetInfoInterceptor.<init>(CodeSetInfoInterceptor.java:57)
at
org.jacorb.orb.standardInterceptors.IORInterceptorInitializer.post_init(IORInterceptorInitializer.java:61)
at org.jacorb.orb.ORB.interceptorPostInit(ORB.java:2147)
at org.jacorb.orb.ORB.internalInit(ORB.java:2005)
at org.jacorb.orb.ORB.set_parameters(ORB.java:1953)
at org.omg.CORBA.ORB.init(ORB.java:251)
After some digging in the code, I've found out that the problem lies in
org.jacorb.orb.giop.CodeSet's method "getLocalCodeSetComponentInfo" which is
not correctly implemented for concurrent access: In this method a first thread
can have created "localCodeSetComponentInfo" but not filled in the field
"ForCharData" yet and a second thread can then return this half initialized
"localCodeSetComponentInfo" object as the first check on
"localCodeSetComponentInfo" being null is not within the synchronized block.
--
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/20141001/df034c3a/attachment.html>
More information about the jacorb-bugs
mailing list