This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If "synchronize implementation" is invoked from an IDL file, the CORBA module tries to obtain the target ClassElement using ClassElement.forName("someIdentifier"). The relevant DataObject exists, resides in a filesystem with COMPILE capability, contains a compilable java source with the class being queried for. Despite all of the above, forName() returns null that is really not expected by the CORBA module and NPE occurs.
It looks like a race condition from trace logs and testing. It may be because of invalid usage of OpenAPIs by the CORBA module or by a race condition inside Java module.
The bug was caused by a race condition resulting from improper API usage. The CORBA module first created an empty file, then it has written some contents into it. The Java parser reacted faster, so it had grabbed the empty file before the CORBA module filled it with some class definitions. Then, at the time when CORBA module asked ClassElement.forName(), the implementation operated on obsolete information returning null. Please refer to the stacktraces attached for the exact control/data flow.
Created attachment 136 [details] Log with diagnostic messages that shows data and control flow for this bug.
[1135] Verified
Resolved for 3.4.x or earlier, no new info since then -> closing.