Announcement Announcement Module
Collapse
No announcement yet.
Getting java.lang.NumberFormatException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Getting java.lang.NumberFormatException

    Hi,
    I am new to spring roo.

    When i am declaring a field like

    field number --fieldName phone --class com.combo.MyClass --type java.lang.Integer --notNull --min 10

    its giving the following error.

    Failed to convert property value of type java.lang.String to required type java.lang.Integer for property phone1; nested exception is org.springframework.core.convert.ConversionFailedE xception: Unable to convert value 76576565699 from type java.lang.String to type java.lang.Integer; nested exception is java.lang.NumberFormatException: For input string: "76576565699"

    Can u please help....

  • #2
    hey ---you have taken datatype integer and putting more than the int(12) values -------i think so
    Last edited by nitigya03; Jul 28th, 2010, 03:06 AM.

    Comment


    • #3
      Thank u very much

      Comment

      Working...
      X