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.
This bug was originally marked as duplicate of bug 152630, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 7.3 Beta (Build 201210011125) VM: OpenJDK 64-Bit Server VM, 23.2-b09, OpenJDK Runtime Environment, 1.7.0_07-b30 OS: Linux User Comments: GUEST: I pasted a String into the persistence.xml form field: Persistence Unit Name: Stacktrace: java.lang.IndexOutOfBoundsException at org.netbeans.modules.schema2beans.BeanProp.checkParams(BeanProp.java:912) at org.netbeans.modules.schema2beans.BeanProp.setAttributeValue(BeanProp.java:1270) at org.netbeans.modules.schema2beans.BaseBean.setAttributeValue(BaseBean.java:671) at org.netbeans.modules.j2ee.persistence.dd.persistence.model_1_0.PersistenceUnit.setName(PersistenceUnit.java:104) at org.netbeans.modules.j2ee.persistence.unit.PersistenceUnitPanel.setValue(PersistenceUnitPanel.java:426) at org.netbeans.modules.xml.multiview.ui.SectionInnerPanel$TextListener.update(SectionInnerPanel.java:344)
Created attachment 126111 [details] stacktrace
*** Bug 220946 has been marked as a duplicate of this bug. ***
Sergey, can you please investigate as the owner of Persistence? I am not sure if there are specific steps to reproduce. Thanks.
I should try to handle incorrect values
Created attachment 129392 [details] stacktrace In design view for persistence.xml select second half of pu name press ctrl-x press ctrl-z press ctrl-v got exception there may be two issues, first - after ctrl-z source is reverted but design remains second - exception in s2b
131 duplicates -> P2
(In reply to Sergey Petrov from comment #5) > Created attachment 129392 [details] > stacktrace > > In design view for persistence.xml > select second half of pu name > press ctrl-x > press ctrl-z > press ctrl-v > got exception > > there may be two issues, first - after ctrl-z source is reverted but design > remains > second - exception in s2b I can't reproduce the issue this way so far.
Ok in build from 2014-07-30 I was able to reproduce it this way: In design view for persistence.xml select second half of pu name press ctrl-x press ctrl-s press ctrl-z press ctrl-s press ctrl-v press ctrl-s got exception I'll try the dev build again.
Reproducible this way even in dev build.
This might be a fix - web-main e0ff4afdc58c. I need to double check as the multiview code is very complex.
I've tried different test cases and it seems to be working ok.