Announcement Announcement Module
No announcement yet.
GWT: Error when creating a record with INT columns Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • GWT: Error when creating a record with INT columns

    I created a sample using 1.1.0 M1. My .roo file is something like this:

    project --topLevelPackage

    persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY

    entity --class ~.domain.Student

    field string --fieldName firstName --notNull --sizeMin 3 --sizeMax 30
    field string --fieldName lastName --notNull --sizeMin 3 --sizeMax 30
    field number --fieldName studentAge --notNull --type java.lang.Integer --sizeMax 3
    field string --fieldName fatherName --notNull
    field string --fieldName telephone --notNull
    field string --fieldName homePage --sizeMax 30
    field string --fieldName email --sizeMax 30 --sizeMin 6
    field date --fieldName birthDay --type java.util.Date --notNull

    gwt setup

    controller all --package ~.web

    When i test the application using mvn gwt:run it throws an error Caused by: Something other than an int was returned from JSNI method ' mpl::getInt(Ljava/lang/String; )': JS value of type undefined, expected int at

    If i remove the studentAge field from the script and create the project, it runs just fine. Could there be an issue with integer datatypes in entities and GWT?

  • #2
    Looks like a bug to me. Would you mind logging it at please, and then add the resulting Jira link back to the end of this forum post to help others find it?



    • #3
      Logged as a bug - ROO-874


      • #4
        Thanks Ramesh. We'll get to it shortly.