Sounds like you have some uninitialized variables. Try
making a constructor for your bean then inialize the
variables there. In addition to that, you might want
your accessor functions (getters) to do something like
this.
public void setSomeValue(String str){
if(str == null) someValue = "";
else someValue = str;
}