Results 1 to 2 of 2

Thread: java.text.ParseException:Unparseable Date. Using Hibernate

  1. #1
    Join Date
    Dec 2004
    Posts
    1

    Default java.text.ParseException:Unparseable Date. Using Hibernate

    Hi,

    I am using Spring with Hibernate, JBoss App Server and SqlServer7.0 database.
    I have got an error Hibernate mapping data, when I submit form.
    getting " org.jboss.util.NestedRuntimeException: Unparseable date: "2004-10-03 00:00:00.0"; - nested throwable: (java.text.ParseException: Unparseable date: "2004-10-03 00:00:00.0")"

    The datatype in SqlServer DB for Date is "datetime" and the
    Date I declared in Bean is java.util.Date.

    If I format date using spring tag <fmt.......to MM/dd/yyyy>
    its changing to 10/03/2004 and when I submit its getting same exception.

    Any help is highly appreciated.


    Thanks,
    SS

  2. #2
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    sam,

    could you show a more complete stack trace. This may help to figure out at what layer you are getting the exception. Also, did you configure any data editor?
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

Similar Threads

  1. Replies: 5
    Last Post: Dec 27th, 2005, 07:00 AM
  2. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  3. Spring + Hibernate ORA-00936: missing expression
    By Hugh_la_Main in forum Data
    Replies: 1
    Last Post: Jun 28th, 2005, 08:48 AM
  4. Replies: 3
    Last Post: Nov 19th, 2004, 07:16 PM
  5. Replies: 7
    Last Post: Aug 21st, 2004, 03:42 AM

Posting Permissions

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