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.
Create a J2EE 1.4 project w/ CMP's from database. Open sun-ejb-jar.xml in GUI editor and select one of the CMP beans -- note that the mapping table has the expected mappings. Close NetBeans. Restart NetBeans so project is loaded fresh. Open sun-ejb-jar.xml in GUI editor and select one of the CMP beans -- mappings are gone!!!
Not sure yet what caused this regression but it needs to be fixed.
This is being caused by a ConversionException w/ message="JDO71006: Invalid value for fetched-with level 0 on field {0} of bean {1}". So this is related to the rebuild of persistence-tool-support.jar w/ schema2beans from NetBeans 5.5 and is probably caused by my changes to sun-cmp-mappings.mdd to resolve issue 83947. Looks like I need to confirm that schema2beans generation actually changed between NetBeans 5.0 and 5.5. for this file and why.
This regression was caused by an incorrect fix for issue 83947. The original patch for IZ 83947 incorrectly caused the state 'level not present' to be interpreted as level=0, which then caused the aforementioned ConversionException with the result that the mappings for this bean were not loaded. Repeat this pattern for all beans, oops :( Fortunately, very simple to fix. Diffs attached below.
Created attachment 33851 [details] diff of fix for this issue
Diffs look good.
Committed to release55_dev
I used 9/20 release55_dev build, I asked Peter to show me the steps and verified the issue got fixed, then I did another test run by myself and also verified the fix works.
Fix committed to release55 branch.
Please, can a QE member verify the fix in latest relase55 build and mark this issue as verified?
The fix is verified in the latest relase55 build (9/26), it is working fine.