Announcement Announcement Module
Collapse
No announcement yet.
GWT: Error when creating a record with INT columns Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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 com.helios.institute

    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: com.google.gwt.dev.shell.HostedModeException: Something other than an int was returned from JSNI method '@com.google.gwt.valuestore.shared.impl.RecordJsoI mpl::getInt(Ljava/lang/String; )': JS value of type undefined, expected int at com.google.gwt.dev.shell.JsValueGlue.getIntRange(J sValueGlue.java:266)

    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 https://jira.springsource.org/browse/ROO please, and then add the resulting Jira link back to the end of this forum post to help others find it?

    Thanks
    Ben

    Comment


    • #3
      Logged as a bug - ROO-874

      Comment


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

        Comment

        Working...
        X