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.
Rename dbschema does not work. rename the current dbschema to a new name. When trying to expand the dbschema node, the node marks as Error. restart netbeans, the error is still there.
Rename the current dbschema to a new name. recapture the dbschema with the old name. The old dbschema has error. the newly created dbschema is ok. When open sun-cmp-mappings.xml, the mapping is not working. the mappings table has red x.
So far, I cannot reproduce it... So timing issue?
I can reproduce it. I think it depends on whether you have looked at that schema in a context where it did work (like the mapping) in that IDE session, or whether the node expansion is the first time you try to access its content.
TM 5.0 -> TBD
I can't reproduce it. Can someone post reproducible steps from a clean userdir? Could the problem be that the .dbschema file is renamed, but the name of the schema (as returned by SchemaElementImpl.getName()) is not modified accordingly?
I couldn't reproduce the exact problem (Jielin, can you also try?), but this is a related problem with steps: 1) new EJB module project manage servers to add GF J2EE 1.4 2) new persistence->db schema name: newSchema pick src/conf derby connection all tables finish 3) quit & restart IDE (not sure if this step is required) 4) expand conf files in project view, select newSchema.dbschema right-click, rename to newSchema1 5) expand the newSchema1 node until you see tables, then collapse the node so you only see the dbschema node 6) repeat step 2, but only choose one table 7) now try to open both dbschema nodes and you'll see the same set of tables -- clearly wrong You're correct in thinking that it has something to do with the cached value of the schema name.
Rochelle, this is a very old bug. Is it still an issue, or can we close it? Thanks, David
Waiting to hear back from Rochelle
I believe it is still a problem.
An unreproducible race condition with low impact (no duplicates since 4.1). Not worth spending time on it. Sorry.