IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]

  • 1.  java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]

    Posted Thu October 30, 2014 07:49 AM

    Hi All,

    For below java snippet :-

    startTimestamp = Timestamp.valueOf(yyyy-mm-dd HH:MM:SS);

    in Wm7.1, Java 1.6.0 above works fine. But on wM9.5, Java1.7.0 same throws exception as :-
    java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]

    Only error I could guess is the wrong Month format(mm). But it works on wM7.1. Please suggest regarding the exception on wm9.5.

    Regards
    Gaurav


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]

    Posted Thu October 30, 2014 08:51 AM

    May be latest jvm expect datatime as oracle time stamp.

    Please check API


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services