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
  • 1.  The JDBC type -155 is unknown.

    Posted Fri April 14, 2017 03:27 PM

    Adapter service is throwing below error when DateTimeOffset fields like StartDateTime and EndDateTime when they are not passed

    Error message:

    Could not run ‘test2’

    com.wm.pkg.art.error.DetailedServiceException: [ART.117.4002] Adapter Runtime (Adapter Service): Unable to invoke adapter service Test.jdbc.adapter.localTransaction:test2.

    [ADA.1.316] Cannot execute the SQL statement "INSERT INTO table

    (0) The JDBC type -155 is unknown."

    The JDBC type -155 is unknown.

    Can some help us to fix this issue?


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 2.  RE: The JDBC type -155 is unknown.

    Posted Tue April 18, 2017 06:21 AM

    Hi,

    Are you converting your date objects into java.sql.timestamp before inserting (or using another type conversion)?

    Best Regards,


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 3.  RE: The JDBC type -155 is unknown.

    Posted Tue April 18, 2017 07:02 AM

    Hi Sastry,

    please provide the version of your adapter as well as the fixes applied to it.

    Which one is your database vendor?

    Regards,
    Holger


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 4.  RE: The JDBC type -155 is unknown.

    Posted Tue April 18, 2017 08:49 AM

    Yes we are converting into java.sql.Timestamp before inserting but here the issue is if null is passed to that dateTimeOffset field the error(JDBC type -155 is unknown) is thrown if value(java.sql.Timestamp) is passed the error is not throwing.

    Regarding WmJDBCAdapter vesion we are using 9.0.0.0 with Fix “JDBC_9.0_Fix10”

    Database Verndor : SQL server 2014.

    Regards,
    Sastry


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: The JDBC type -155 is unknown.

    Posted Wed April 19, 2017 09:15 AM

    Hi,

    The latest is JDBC_9.0_Fix12.

    You should try to apply it.

    Also check that you have a recent JDBC driver from Microsoft.

    Best Regards,


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 6.  RE: The JDBC type -155 is unknown.

    Posted Tue April 25, 2017 11:05 AM

    All,

    Now the issue got fixed after upgrading the 3.0 sql jar file.

    Thanks a lot for your guidance.

    Regards,
    Sastry


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB