Componet Error
Studio Creator will no longer display the design view. It says that there is a PropertyNotFoundException. See Below:
javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'stdDev' from bean of type com.sun.ame.ecspy.reports.CpkReport: java.lang.NullPointerException
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:211)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:159)
at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
at com.sun.rave.web.ui.renderer.ValueHolderDesignTimeRenderer.encodeBegin(ValueHol derDesignTimeRenderer.java:57)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)
But when I change the property to another bean it works. Here is the code in the Bean:
/**
* Holds value of property stdDev.
*/
private Double stdDev;
/**
* Getter for property stdDev.
* @return Value of property stdDev.
*/
public Double getStdDev(){
stdDev =new Double(stats.getStandardDeviation());
return this.stdDev;
}
/**
* Setter for property stdDev.
* @param stdDev New value of property stdDev.
*/
publicvoid setStdDev(Double stdDev){
this.stdDev = stdDev;
}
/**
* Holds value of property pp.
*/
private Double pp;
/**
* Getter for property pp.
* @return Value of property pp.
*/
public Double getPp(){
return this.pp;
}
/**
* Setter for property pp.
* @param pp New value of property pp.
*/
publicvoid setPp(Double pp){
this.pp = pp;
}
Here is the JSP:
<ui:staticText binding="#{CpkPage.stdDevText}" converter="#{CpkPage.numberConverter1}" id="stdDevText"
style="border-width: 1px; border-style: solid; left: 504px; top: 288px; position: absolute; text-align: center; width: 46px" text="#{CpkSessionBean.report.stdDev}"/>
<ui:staticText binding="#{CpkPage.ppText}" converter="#{CpkPage.numberConverter1}" id="ppText"
style="border-width: 1px; border-style: solid; left: 312px; top: 288px; position: absolute; text-align: center; width: 46px" text="#{CpkSessionBean.report.pp}"/>
The really strange thing is that when I run the program it works and is displayed correctly. There must be some thing wrong with just the Creator GUI part.
Again if I change
"#{CpkSessionBean.report.stdDev}" to
"#{CpkSessionBean.report.pp}" for the
ui:staticText binding="#{CpkPage.stdDevText}" in the above JSP.
It shows up in Creator correctly. Any inputs?

