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 202727 - [71cat] IllegalArgumentException: Cannot insert an element which is already part of a graph. The element should be cloned first.
Summary: [71cat] IllegalArgumentException: Cannot insert an element which is already p...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-27 11:05 UTC by sunbiz
Modified: 2011-09-30 14:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181430


Attachments
stacktrace (3.50 KB, text/plain)
2011-09-27 11:05 UTC, sunbiz
Details
stacktrace (3.50 KB, text/plain)
2011-09-29 16:02 UTC, Sergey Petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2011-09-27 11:05:39 UTC
Build: NetBeans IDE 7.1 Beta (Build 201109222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.2-b06, Java(TM) SE Runtime Environment, 1.6.0_27-b07
OS: Windows 7

User Comments:
sunbiz: editing an element with blank name and saving it through the persistence.xml designer




Stacktrace: 
java.lang.IllegalArgumentException: Cannot insert an element which is already part of a graph. The element should be cloned first.
   at org.netbeans.modules.schema2beans.BeanProp.setElement(BeanProp.java:962)
   at org.netbeans.modules.schema2beans.BeanProp.setValue(BeanProp.java:812)
   at org.netbeans.modules.schema2beans.BaseBean.setValue(BaseBean.java:469)
   at org.netbeans.modules.schema2beans.BaseBean.setValue(BaseBean.java:465)
   at org.netbeans.modules.j2ee.persistence.dd.persistence.model_1_0.Properties.setProperty2(Properties.java:68)
   at org.netbeans.modules.j2ee.persistence.unit.PropertiesTableModel.editRow(PropertiesTableModel.java:132)
Comment 1 sunbiz 2011-09-27 11:05:43 UTC
Created attachment 111232 [details]
stacktrace
Comment 2 Sergey Petrov 2011-09-29 16:02:42 UTC
Created attachment 111321 [details]
stacktrace

edit property(roperty value) with design view property editor
Comment 3 Sergey Petrov 2011-09-29 17:01:36 UTC
http://hg.netbeans.org/web-main/rev/e1d5560638b9 fix
Comment 4 Quality Engineering 2011-09-30 14:39:50 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/e1d5560638b9
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #202727 - remove extra property set