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>
分享到:
相关推荐
在给定的“c代码-summing2.c (while)”中,我们可以看到这是一个关于C语言编程的示例,其中可能涉及到了使用`while`循环来计算一系列数字的总和。`while`循环是C语言中的一种控制流程结构,用于在满足特定条件时重复...
Different variants of GNNs employ various strategies for these operations, such as summing, averaging, or more complex aggregation functions like attention mechanisms. #### Architectures and ...
这个压缩包“accumulo-column-summing-源码.rar”显然包含了Accumulo中关于列求和功能的源代码。Accumulo的核心特性之一是它的行和列的细粒度安全控制以及对数据的排序,这使得它在大数据分析领域具有很高的性能和...
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)
- **Objective:** Count the number of occurrences of each word in a text file. - **Key Concepts:** - Tokenizing text into words. - Counting occurrences using dictionaries. 21. **Longest Word per ...
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...
### 4-20mA至0-20mA转换器及电流叠加电流转换技术 在过程控制行业中,电流环路已成为信号传输的标准方法。电流环路具有抗噪性好、不受线路阻抗误差影响的特点。Burr-Brown提供了一系列完整的单片4mA至20mA电流环路...
6. "is made up of" - 意为“由...组成”,句子描述了社会由各种各样的人构成。 二、句型转换 1. "various; why" - "各种各样的;为什么”,将原句改写成存在多种原因促使人们写诗。 2. "Though/Although young; ...
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 ...
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:...
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.
- **Implement the Gradient Descent**: 梯度下降是一种优化算法,用于找到函数的最小值,通常在机器学习和深度学习中非常有用。 - **Area Between Two Curves**: 计算两条曲线之间的区域面积是积分计算的一个应用...
summing up - To sum up; summarizing; to summarize - To conclude; in conclusion; As a result - In general; Generally speaking - All in all; on the whole; on this basis - Given all these aspects; ...