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.


#TechXchangePresenter
 View Only
  • 1.  wm jdbc adapter error

    Posted Tue April 11, 2006 08:03 AM

    hello,all
    I have a customized adapter service with a simple insert sql:
    insert in to t(col1) values (substrb(?,1,100))
    the input parameter in adapter service is varchar2
    when i run this adapter servcie, it works fine if the input parameter’s length is less than 2010byte. Else, we would get an error message below:
    com.wm.app.b2b.server.ServiceException: [ART.117.4002] Adapter Runtime (Adapter Service): Unable to invoke adapter service lywTest.db:insLywt.
    [ADA.1.316] Cannot execute the SQL statement “insert into lywt
    (col1)
    values
    (substrb(?,1,100))”. "
    (17070) …
    It is said this error can occur even in a pure java program. Maybe this is the oracle driver’s error.
    But, did anyone meet this problem before? How to solve it
    Our jdbc driver is classes12.zip,
    oracle version:Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production

    Any comments are higtly appricated!
    Nancy


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


  • 2.  RE: wm jdbc adapter error

    Posted Tue April 11, 2006 07:35 PM

    Nancy,

    Before calling this adapter service use a MAP statement to truncate the value you want to insert using the pub.string:substring built-in service.

    HTH,

    Mark


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


  • 3.  RE: wm jdbc adapter error

    Posted Wed April 12, 2006 10:49 AM

    Thanks Mark.
    but we have to modify handreds of packages using this method. So i wanna know if there is any other easy way to solve this problem.
    Thanks
    Nancy


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


  • 4.  RE: wm jdbc adapter error

    Posted Fri April 14, 2006 10:04 AM

    Hello Nancy

    You could try to change the data typ to CLOB , which can hold more than varchar2

    HTH
    Vinod


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


  • 5.  RE: wm jdbc adapter error

    Posted Wed April 15, 2009 03:39 AM

    varchar2 type supports only about 2000 byte.


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