Results 1 to 3 of 3

Thread: Getting java.lang.NumberFormatException

  1. #1
    Join Date
    Jun 2010
    Posts
    11

    Default 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. #2
    Join Date
    Sep 2009
    Posts
    13

    Default

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

  3. #3
    Join Date
    Jun 2010
    Posts
    11

    Default

    Thank u very much

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •