webMethods

webMethods

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.  JDBC Adapter SP Oracle With Array Input

    Posted Thu August 19, 2021 08:36 AM

    hi,

    I have StoreProcedure in oracle with array input.

    when i try to execute i have error like this

    com.wm.pkg.art.error.DetailedServiceException: [ART.117.4002] Adapter Runtime (Adapter Service): Unable to invoke adapter service test.aol:test1 with connection ad1.aol.core.conn:dbAolConn.
    ClassCast Exception for field: P_ARRAY. Error: java.lang.ClassCastException: com.wm.adk.cci.record.WmRecord cannot be cast to [Ljava.lang.Object;

    this my simple service to execute SP

    how to create input for my case? i hope someone can help

    Regards,
    momon


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: JDBC Adapter SP Oracle With Array Input

    Posted Thu August 19, 2021 09:38 AM

    Hi Dekaa,

    can you check which other types (beside of java.lang.Object) are available for the input field type in the lower half of the adapter service?

    Please check if you have latest Fixes for JDBC Adapter applied, there are sometimes issues solved there in relation to SPs.

    You might want to have a look at the JDBC Adapter Users Guide if there is a hint about arrays.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: JDBC Adapter SP Oracle With Array Input

    Posted Fri August 20, 2021 04:32 AM

    hi holger,

    thanks for your response

    this input field type for adaptter service
    java.lang.Object
    IDATA_ARRAY
    java.sql.Array
    image

    this jdbc fix JDBC_10.3_Fix11
    image

    where can i get the JDBC Adapter Users Guide?

    regards,
    Momon


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: JDBC Adapter SP Oracle With Array Input

    Posted Fri August 20, 2021 05:00 AM

    Here you go -

    • JDBC Adapters (10.3) user guide is here (link)
    • More documents such as readme, for JDBC Adapter are here (link)
    • In general, all documentation is publicly available here (link)

    KM


    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: JDBC Adapter SP Oracle With Array Input

    Posted Fri August 20, 2021 06:56 AM

    Hi Dekaa,

    in this case I would try either IDATA_ARRAY or java.sql.Array.

    If none of these are working for your use case you should consider opening a support ticket via Empower eService to get this checked.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: JDBC Adapter SP Oracle With Array Input

    Posted Fri August 20, 2021 02:37 PM

    Yes either of the above InputFieldType- array’s selection (mainly sql.Array) should suffice to the calling SP for successful execution.

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB