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 243895 - Exception when cloning a Bean with unknown elements
Summary: Exception when cloning a Bean with unknown elements
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Schema2Beans (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: schema2beans-issues@ide
Depends on:
Reported: 2014-04-17 17:52 UTC by scanti
Modified: 2014-04-17 17:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description scanti 2014-04-17 17:52:33 UTC
I have an XML file generated with the newest version of my XML-Schema.

I tried to open it with the beans generated from an older XML-Schema. It worked flawlessly, but when I called .clone() on the root node I got this exception:  

java.lang.IllegalArgumentException: Unknown attribute ExcludeWellsWhenOFIncreases for property Automatic
	at org.netbeans.modules.schema2beans.BeanProp.getAttrProp(
	at org.netbeans.modules.schema2beans.BeanProp.getAttrProp(
	at org.netbeans.modules.schema2beans.BeanProp.setAttributeValue(
	at org.netbeans.modules.schema2beans.BeanProp.setElement(
	at org.netbeans.modules.schema2beans.BeanProp.setValue(
	at org.netbeans.modules.schema2beans.BaseBean.setValue(
	at org.netbeans.modules.schema2beans.BaseBean.setValue(
	at org.netbeans.modules.schema2beans.BaseBean.clone(