Could you attach fields definition (XML and/or java controller)? Such behavior is usually caused by datatype parsing, for instance, if you input text to the number field.
It seems that you didn’t assign an entity to your datasource. In case of using datasource with fields, the datasource should contain an entity to edit.
Take a look at this sample and its DatasourceTextFieldFrame.java file.