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.

Bug 84656 - REGRESSION: Cmp's are losing their mapping data in the sun-ejb-jar config editor.
Summary: REGRESSION: Cmp's are losing their mapping data in the sun-ejb-jar config edi...
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ pcw
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2006-09-12 00:51 UTC by _ pcw
Modified: 2006-09-27 00:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
diff of fix for this issue (967 bytes, text/plain)
2006-09-12 22:27 UTC, _ pcw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ pcw 2006-09-12 00:51:30 UTC
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!!!
Comment 1 _ pcw 2006-09-12 00:52:17 UTC
Not sure yet what caused this regression but it needs to be fixed.
Comment 2 _ pcw 2006-09-12 02:24:37 UTC
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.
Comment 3 _ pcw 2006-09-12 22:26:10 UTC
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.
Comment 4 _ pcw 2006-09-12 22:27:25 UTC
Created attachment 33851 [details]
diff of fix for this issue
Comment 5 Rochelle Raccah 2006-09-15 23:25:25 UTC
Diffs look good.
Comment 6 _ pcw 2006-09-16 01:39:57 UTC
Committed to release55_dev
Comment 7 judytang 2006-09-20 22:45:14 UTC
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.  
Comment 8 _ pcw 2006-09-21 00:25:24 UTC
Fix committed to release55 branch.
Comment 9 Martin Schovanek 2006-09-26 16:37:25 UTC
Please, can a QE member verify the fix in latest relase55 build and mark this
issue as verified?
Comment 10 judytang 2006-09-27 00:00:19 UTC
The fix is verified in the latest relase55 build (9/26), it is working fine.