1. [ERROR 2009-01-08 22:19:06,993] Bean: com.***.******.jsf.menu.ProfileBackBean, property: currentProfileKey
javax.faces.el.PropertyNotFoundException: Bean: com.***.******.jsf.menu.ProfileBackBean, property: currentProfileKey
at org.apache.myfaces.el.PropertyResolverImpl.setProperty(PropertyResolverImpl.java:353)
at org.apache.myfaces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:148)
at org.apache.shale.faces.ShalePropertyResolver.setValue(ShalePropertyResolver.java:178)
at org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:269)
at javax.faces.component.UIInput.updateModel(UIInput.java:226)
at javax.faces.component.UIInput.processUpdates(UIInput.java:165)
at javax.faces.component.UIForm.processUpdates(UIForm.java:85)
at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:428)
at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:153)
at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$101(AjaxViewRoot.java:53)
开始以为在backbean的某个setter方法,是不必须的,虽然我有这个字段,也需要从外部得到这个字段,但是不会直接设置这个字段。所以就去掉了该setter方法,导致以上错误。在debug跟踪阶段,得到了以下异常:BufferUnderflowException The buffer is already empty。估计是myfaces在保存backbean是调用setter方法。该backbean的scope是session。
2. Exception: [ERROR 2009-01-08 20:33:40,068] failed to configure class com.***.******.jsf.menu.ListMenuRender
javax.faces.FacesException: java.lang.InstantiationException: com.***.******.jsf.menu.ListMenuRender
到现在还出这种问题,实在惭愧。
这个问题在于,我继承一个abstract类,但是没有显示写无参的构造方法,而此时默认生成的构造方法又没有调用父类 构造方法,导致父类没有正确初始化。加上以下内容就OK了。
public ListMenuRender(){
super();
}
还有一处很类似,为了写一个jsf的tag,component类继承UIOutput,在重写public void encodeBegin(FacesContext context) throws IOException方法时,也没有调用super.encodeBegin()导致render类的encodeBegin方法没有执行。
切记:在存在父类情况下,构造方法和重写父类方法不要忘记调用父类构造方法和被重写方法。
3.[ERROR 2009-01-08 21:44:52,129] Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
at java.lang.String.endsWith(String.java:1296)
at org.apache.shale.clay.faces.ClayViewHandler.indexOfClayTemplateSuffix(ClayViewHandler.java:254)
at org.apache.shale.clay.faces.ClayViewHandler.restoreView(ClayViewHandler.java:275)
at org.apache.shale.view.faces.ViewViewHandler.restoreView(ViewViewHandler.java:164)
at org.apache.shale.tiles.TilesViewHandler.restoreView(TilesViewHandler.java:230)
at org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.restoreView(JspTilesViewHandlerImpl.java:320)
是因为在配置时候没有加上“/”。
<navigation-rule>
<from-view-id>
/MenuList.jsp
</from-view-id>
<navigation-case>
<from-outcome>refresh</from-outcome>
<to-view-id>/MenuList.faces</to-view-id>
</navigation-case>
</navigation-rule>
分享到:
相关推荐
accumulo-column-summing-源码.rar
c代码-summing2.c (while)
4-20mA TO 0-20mA CONVERTER AND CURRENT SUMMING CURRENT-TO-CURREN
From the reviews: ... presented in the text … Summing Up: Highly recommended Upper division undergraduate through professional collections " J Y Cheung Choice Vol 47 2 October 2009 ...
From the reviews of the second edition: ... Summing Up: Recommended. Computer science collections, upper-division undergraduates and above.” (C. Vickery, Choice, Vol. 50 (6), February, 2013)
Summing Up 33 Other Linkages 33 Manager’s Checklist for Chapter 237 3. Understanding Performance—Good and Bad 38 What Do We Mean by “Performance”? 39 The Stuff of Performance—Good and Poor 42 ...
Neutron stimulated emission computed tomography (NSECT) is a new approach for biological spectroscopy and imaging. Since the<BR>gamma-ray photons emitted from stimulated element have energies from 100...
Summing up: Recommended. Lower-division undergraduate through professional collections. CHOICE This book is a follow-on to the authors' 1976 text, Graphs with Applications. What began as a revision...
Summing Durations of Songs Recipe 3.5. Calculating the Number of Weekdays Between Two Dates Recipe 3.6. Looking up Holidays Automatically Recipe 3.7. Fuzzy Parsing of Dates Recipe 3.8. ...
Combine two geo-referenced arrays in one plot by differencing, summing or averaging. Plot lon-lat data on a global or regional map using any of over 100 map projections or make a zonal average line ...
… Summing Up: Highly recommended. Upper-division undergraduate through professional collections." (C. Bauer, Choice, Vol. 46 (7), March, 2009) "For most undergraduate students in mathematics or ...
2020_2021学年高中英语Unit2PoemsSectionⅡ_LearningaboutLanguageUsingLanguageSummingUp&LearningTip习题含解析新人教版选修6
Chapter 12: Summing Up – A Complete Example Module 2: Python 3 Object-Oriented Programming Chapter 1: Object-oriented Design Chapter 2: Objects in Python Chapter 3: When Objects Are Alike Chapter 4:...
be employed, allowing the designer to implement high gain or complex switched feedback topologies. The AD630 can be thought of as a precision op amp with two independent differential input stages and ...
write, and isochronous device performance Captures device driver packets such as IRP’s Filter what type of phases are captured Run on an unlimited number of machines at the same ...
累加列求和 Accumulo 迭代器将在一组列族上执行服务器端求和。 这是对 SummingCombiner 的改进,以代码复杂性为代价,因为它减少了发送回客户端的数据量,还减少了最终客户端求和的大小。 虽然这在单机设置中通常...
DGCNN features a propagation-based graph convolution layer to extract vertex features, as well as a novel SortPooling layer which sorts vertex representations instead of summing them up.
Summing Bird—用Scalding 和 Storm进行Streaming MapReduce