Componet Error

I posted this once before, but the problem just went away mysteriously, but now it is back and I do not know why.

Studio Creator will no longer display the design view. It says that there is a PropertyNotFoundException.Why is there a NPE in the design window? I have other properties in the same bean that work!

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}"/>

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?

[3529 byte] By [RonL] at [2007-11-26 10:25:51]
# 1
Ron - We're both Sun employees, so I'll work with you offline to resolve this, then post the results on this thread. - Vaughn
vspurlin at 2007-7-7 2:28:56 > top of Java-index,Development Tools,Java Tools...