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.
IllegalArgumentException when attempting to edit a cache mapping policy in the sun configuration editor. New Web App Open sun-web.xml in config editor. Go to Cache tab, Cache Mapping sub-tab. Add a cache mapping entry. Select policy radio button and click <Edit Policy> Exception... ava.lang.IllegalArgumentException: The specified value () does not match one of the enumerated values: context.attribute request.header request.parameter request.cookie request.attribute session.attribute at org.netbeans.modules.schema2beans.BeanProp.setAttributeValue(BeanProp.java:1259) at org.netbeans.modules.schema2beans.BaseBean.setAttributeValue(BaseBean.java:626) at org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_5_0.CacheMapping.setTimeoutScope(CacheMapping.java:306) ...
Created attachment 30138 [details] stack trace
This is a regression that was caused when we upgraded the sunddapi module to use the new ENTITY support in schema2beans. The code is attempting to set a blank value in an entity field that does not allow blank values (previously this requirement was not enforced at the bean level and the output XML was correct for this specific case). We have to tighten up the code so that it uses only the exact values the entity allows.
Fixed.
*** Issue 75912 has been marked as a duplicate of this issue. ***