3 Replies Latest reply on Aug 23, 2010 3:14 AM by lvdberg

    seam-gen: NumberFormatException

    definitiverant

      Hello,


      I'm using seam-gen to generate an application from an existing Postgres database (http://docs.jboss.org/seam/latest/en-US/html/gettingstarted.html). I can create and run the application and log in OK using admin. However, I am getting the following error when I try and edit any of the data contained within the tables existing in the d/b via the application:


      java.lang.NumberFormatException: For input string: 131,096
           at java.lang.NumberFormatException.forInputString(Unknown Source)
           at java.lang.Integer.parseInt(Unknown Source)
           at java.lang.Integer.valueOf(Unknown Source)
           at org.jboss.el.lang.ELSupport.coerceToNumber(ELSupport.java:281)
           at org.jboss.el.lang.ELSupport.coerceToNumber(ELSupport.java:259)
           at org.jboss.el.lang.ELSupport.coerceToType(ELSupport.java:331)
           at org.jboss.el.ExpressionFactoryImpl.coerceToType(ExpressionFactoryImpl.java:46)
           at org.jboss.seam.el.SeamExpressionFactory.coerceToType(SeamExpressionFactory.java:70)
      ...


      I am using Seam 2.2.0.GA, Eclipse Galileo and JBoss 5.1.


      Thanks for any assistance.