.xhtml
파일의 JSF2 (아마도)로 업그레이드 한 후 IllegalArgumentExceptions
을 생성하지만 실제로 이유를 찾을 수 없습니다. 로컬 JBoss (4.2.2)에서 응용 프로그램을 실행해도이 예외는 생성되지 않지만 디버그 데이터와 라이브 데이터의 차이와 관련 될 수 있습니다.JSF2로 업그레이드 한 후 사용자 정의 setter의 IllegalArgument 예외가
다음 스택 추적 내가 프로덕션 서버 로그에서 추출 할 수 있다고 생성됩니다
Caused by: javax.el.ELException: /xy/xy-subtemplate1.xhtml @131,45 value="#{someClass.someProperty}": java.lang.IllegalArgumentException
at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:101)
at javax.faces.component.UIInput.updateModel(UIInput.java:818)
... 36 more
Caused by: java.lang.IllegalArgumentException
at sun.reflect.GeneratedMethodAccessor1134.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.el.BeanELResolver.setValue(BeanELResolver.java:108)
at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:255)
at com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:281)
at org.apache.el.parser.AstValue.setValue(AstValue.java:114)
at org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:93)
... 37 more
someClass
가리스트에 걸쳐 반복되고 있으며 액세스하려면 다음 방법을 가지고 someProperty
:
public int getSomeProperty() {
return this.getSomeRelatedEnum().ordinal();
}
public void setSomeProperty(final int index) {
this.setSomeRelatedEnum(SomeRelatedEnum.fromOrdinal(index));
}
어떻게하면 위에서 언급 한 IllegalArgumentException
으로 연결될 수 있습니까?
반복의 xhtml 또는 jsp의 프래그먼트를 게시 할 수 있으며이 속성이 호출되는 위치는 무엇입니까? – Gamb