Community
Participate
Working Groups
We are testing our functionality on Helios, and a NPE showed up in EMF2DOMAdapterImpl. I have managed to create a junit test for it. Note that there are 2 test classes one is trying to modify the emf model directly and it passes. The other one creates Ejb Project and a method permission artifact. Adds and removes a security role from it. During removal the attached NPE is thrown. I will attach the junit as well.
Created attachment 171643 [details] junit test
Created attachment 171644 [details] NPE stacktrace.
Assigning to Chuck for initial investigation. Looks like the SecurityRole wouldn't have an Adapter, so adapter.getNode() would cause an NPE.
Raising priority. This bug causes a set of our adopter unit test to fail.
It turns out the test is not quite correct. It creates security roles but doesn't attach them to the ejb assembly descriptor. After correcting this by adding the following line right after roles creation: methodPerm.getAssemblyDescriptor().getSecurityRoles().add(roles[i]); then the test passed.
Roberto you can close the bug report.
Resolving this defect based on comment 5 and comment 6. Thank you.