It seems you are using Java 6 or Java 7 that is configured without Java FX support. When running without Java FX Codename One defaults to the feature phone web browser component which is pretty limited and problematic.
Make sure that the VM used to run Codename One is Java SE 7 and that the additional Java FX libraries are included there.