Returning arrays using JDBC 2.0 and JDK 1.2.2

I am able to return a varray from an PL/SQL stored procedure to a Java program using the Oracle JDBC 8.1.6 driver classes (oracle.jdbc.driver.* and oracle.sql.ARRAY). I want to avoid using the Oracle specific classes to do this and instead just use the standard JDBC 2.0 classes and JDK 1.2.2. Will I still be able to access the varray returned by the PL/SQL SP or am I forced to use the Oracle classes?
Why I ask this is because the Java code needs to be usable from a Netscape Application Server 4.0/iPlanet Application Server 6.0 servlet or java class. NAS 4.0 uses the JDBC 2.0 classes but I cannot use the Oracle JDBC 8.1.6 classes since NAS 4.0 requires the Oracle 8.0.5 client. iAS 6.0 provides a JDBC 2.0 type 2 driver and uses the Oracle 8.1.5 client but does not support arrays, i.e. CallableStatement.getArray(), ResultSet.getArray(), etc. are not supported.

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Craig Knelsen ([email protected]):
I am able to return a varray from an PL/SQL stored procedure to a Java program using the Oracle JDBC 8.1.6 driver classes (oracle.jdbc.driver.* and oracle.sql.ARRAY). I want to avoid using the Oracle specific classes to do this and instead just use the standard JDBC 2.0 classes and JDK 1.2.2. Will I still be able to access the varray returned by the PL/SQL SP or am I forced to use the Oracle classes?
Why I ask this is because the Java code needs to be usable from a Netscape Application Server 4.0/iPlanet Application Server 6.0 servlet or java class. NAS 4.0 uses the JDBC 2.0 classes but I cannot use the Oracle JDBC 8.1.6 classes since NAS 4.0 requires the Oracle 8.0.5 client. iAS 6.0 provides a JDBC 2.0 type 2 driver and uses the Oracle 8.1.5 client but does not support arrays, i.e. CallableStatement.getArray(), ResultSet.getArray(), etc. are not supported.<HR></BLOCKQUOTE>
can u plzz help me as to how u returned the
null

Similar Messages

  • BufferedReader.ready() keeps returning false using JSSE 1.0.2/jdk 1.2.2

    I'm running into difficulties reading a response data stream from a server via HTTPS. The SSL sets up fine (I can see both the client side and server side certificate chains, and the two sides can handshake and agree on a cipher (SSL_RSA_WITH_RC4_128_SHA in this case)). I get no errors getting the output or input streams from the socket, and the GET request seems to work (no errors reported by the PrintWriter), but in.ready() returns false, and the while loop exits immediately. But I know there is data available (I can paste the printed url into Netscape and get data back). Since this should not be all that complex once the SSL session is established, I'm probably missing something silly, Can someone tell me what it is please?
    Thanks
    Doug
    // code excerpt
    // just finished printing the cipher suite, cert chains, etc
    try{
    out = new PrintWriter(
    new BufferedWriter(
    new outputStreamWriter(socket.getOutputStream() )));
    } catch(Exception e) {
    System.out.println("Error getting input and output streams from socket ");
    System.out.println(e.getMessage());
    e.printStackTrace();
    throw(e);
    try{   // time to submit the request and get the data
    // build the URL to get
    // tried constructing it here and nailing it up at declaration time - no difference
    // path = "https://" + dlp.host + ":" + Integer.toString(dlp.port) + "/" +
    // dlp.basePath + "?StartDate=" + longDateFmtURL.format(dlp.startDate) +
    // "&EndDate=" + longDateFmtURL.format(dlp.endDate);
    System.out.println("Sending request for URL" );
    System.out.println(path);
    out.println("GET " + path );
    out.println();
    out.flush();
    * Make sure there were no errors
    if (out.checkError()){
    System.out.println("Error sending request to server");
    throw(new IOException("Error sending request to server")
    try{
         in = new BufferedReader(
              new InputStreamReader(
              socket.getInputStream() ));
    } catch(Exception e) {
    System.out.println("Error getting input stream from socket ");
    System.out.println(e.getMessage());
    e.printStackTrace();
    //System.exit(3);
    throw(e);
    if (!in.ready()) {   //  in.ready() keeps returning false
    System.out.println("Error - socket input stream not ready for reading");
    while ((inputLine = in.readLine()) != null) {
    // loop over and process lines if it was ever not null
    }

    Never mind.
    The problem seems to be related to the development/debugging enviroment (Oracle JDeveloper 3.2.3), When I run things outside of that eviroment using the "plain" runtime, it works as expected (back to System.out.println() for debugging). That said, I usually find it to be a nice development/debugging enviroment for Java.

  • Returning arrays using JNI

    Hi all,
    Hi,
    I am in the process of accessing the MS cryptoPI using java-jni-CryptoAPI. SO far i have been able to suceesfully acessing the cryptoapi functions. There are certificate stores istalled in our windows OS called "root", "CA" and "My" .Each of these stores have a lot of certificates installed . Till now i have written a program which opens the "My" cert store. In this case, it has only one certificate whose name is stored in pszNameString. In this case, the cert name is "AMS vivek" .I dont have any problem in passing the string back to java code if there is only one certificate involved. Supposing i retireve 2 certs,whose cert names are "AMS Vivek" and "Wipro Vivek" how do i pass them back to the java application. How do i store the names of the certificate in the native code and how do i pass them back to the java code??PLease help!
    import java.awt.*;
    import java.io.*;
    import java.lang.*;
    import java.applet.*;
    public class Testapp extends Applet {
         String ret=null;
    public void init(){
              System.out.println("in init");
              loaddll();
         public void loaddll(){
                        System.out.println("before loading DLL");
                        System.loadLibrary("Msgimpl");
                        System.out.println("After loading DLL");
         private native String crypto(String store);
    public void paint(Graphics g) {
              g.setColor(Color.blue);
              g.setColor(Color.magenta);
              g.drawString("call before native function", 25, 25);
              ret=crypto("My");
         g.drawString(ret, 25, 50);
              g.drawString("Finally", 25, 75);
    #define WIN32WINNT 0x0400
    #include <windows.h>
    #include <jni.h>
    #include <wincrypt.h>
    #define MY_ENCODING_TYPE (PKCS_7_ASN_ENCODING | X509_ASN_ENCODING)
    #include "Testapp.h"
    BOOL APIENTRY DllMain(HANDLE hModule,
    DWORD dwReason, void** lpReserved) {
    return TRUE;
    JNIEXPORT jstring JNICALL
    Java_Testapp_crypto(JNIEnv * jEnv,jobject obj,jstring jstore) {
         HCRYPTPROV               hProv;
              BOOL                    bResult;
              HCERTSTORE hStoreHandle = NULL;
              PCCERT_CONTEXT          pCertContext = NULL;
              char                    pszNameString[256];
              CRYPT_KEY_PROV_INFO *pCryptKeyProvInfo;
              DWORD                    dwPropId=0;
              DWORD                    cbData;
              const char *msg;
              jstring jstr;
              msg = (*jEnv)->GetStringUTFChars(jEnv, jstore,0);
              //printf("Before context\n");
              if (hStoreHandle = CertOpenSystemStore(NULL,msg))
              printf("The %s store has been opened. \n", msg);
              else
              printf("The store was not opened.\n");
              exit(1);
         while(pCertContext= CertEnumCertificatesInStore(hStoreHandle,pCertContext))
                                       // on the first call to the function,
              // this parameter is NULL
              // on all subsequent calls,
              // this parameter is the last pointer
              // returned by the function
              if(CertGetNameString(pCertContext,CERT_NAME_FRIENDLY_DISPLAY_TYPE,0,NULL,pszNameString,1000))
              printf("\nCertificate for %s \n",pszNameString);
                   else
                   printf("\nGetNameFailed\n");
         }//main while
         return (*jEnv)->NewStringUTF(jEnv, pszNameString);
         //(*jEnv)->ReleaseStringUTFChars(jEnv, jstore,msg);
         if (!CertCloseStore(hStoreHandle,0))
         //printf("Failed CertCloseStore\n");
         exit(1);
              //printf("After context\n");

    Testapp.h is the header file that java creates.It conatins the definition of the native methods to be used.u can create a header file using
    javah -jni Testapp(class file...u must forst compile the .java file)
    * DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class Testapp */
    #ifndef IncludedTestapp
    #define IncludedTestapp
    #ifdef __cplusplus
    extern "C" {
    #endif
    /* Inaccessible static: LOCK */
    /* Inaccessible static: dbg */
    /* Inaccessible static: isInc */
    /* Inaccessible static: incRate */
    #undef Testapp_TOP_ALIGNMENT
    #define Testapp_TOP_ALIGNMENT 0.0f
    #undef Testapp_CENTER_ALIGNMENT
    #define Testapp_CENTER_ALIGNMENT 0.5f
    #undef Testapp_BOTTOM_ALIGNMENT
    #define Testapp_BOTTOM_ALIGNMENT 1.0f
    #undef Testapp_LEFT_ALIGNMENT
    #define Testapp_LEFT_ALIGNMENT 0.0f
    #undef Testapp_RIGHT_ALIGNMENT
    #define Testapp_RIGHT_ALIGNMENT 1.0f
    #undef Testapp_serialVersionUID
    #define Testapp_serialVersionUID -7644114512714619750LL
    /* Inaccessible static: metrics */
    /* Inaccessible static: class_00024java_00024awt_00024Component */
    /* Inaccessible static: class_00024java_00024awt_00024event_00024ComponentListener */
    /* Inaccessible static: class_00024java_00024awt_00024event_00024FocusListener */
    /* Inaccessible static: class_00024java_00024awt_00024event_00024HierarchyListener */
    /* Inaccessible static: class_00024java_00024awt_00024event_00024HierarchyBoundsListener */
    /* Inaccessible static: class_00024java_00024awt_00024event_00024KeyListener */
    /* Inaccessible static: class_00024java_00024awt_00024event_00024MouseListener */
    /* Inaccessible static: class_00024java_00024awt_00024event_00024MouseMotionListener */
    /* Inaccessible static: class_00024java_00024awt_00024event_00024InputMethodListener */
    #undef Testapp_serialVersionUID
    #define Testapp_serialVersionUID 4613797578919906343LL
    /* Inaccessible static: dbg */
    /* Inaccessible static: class_00024java_00024awt_00024Container */
    /* Inaccessible static: class_00024java_00024awt_00024event_00024ContainerListener */
    /* Inaccessible static: nameCounter */
    #undef Testapp_serialVersionUID
    #define Testapp_serialVersionUID -2728009084054400034LL
    #undef Testapp_serialVersionUID
    #define Testapp_serialVersionUID -5836846270535785031LL
    * Class: Testapp
    * Method: listCertificate
    * Signature: (Ljava/lang/String;)[Ljava/lang/String;
    JNIEXPORT jobjectArray JNICALL Java_Testapp_listCertificate
    (JNIEnv *, jobject, jstring);
    * Class: Testapp
    * Method: certificateKey
    * Signature: (Ljava/lang/String;[B)V
    JNIEXPORT void JNICALL Java_Testapp_certificateKey
    (JNIEnv *, jobject, jstring, jbyteArray);
    #ifdef __cplusplus
    #endif
    #endif

  • Problem using JDBC (JNDI) DataSource and data-sources.xml w/ OC4J

    I have a JClient application developed in JDev X. It works fine when using a JDBC URL for the connection (which then writes the connection into the BC4J.xcfg files, one for each application module). However, I would like the app to retrieve the data source from the server's data-sources.xml file. However, when, on the configurations tab of the application module I set the connection type to JDBC DataSource, and give it the JNDI name, it does not work, either with the embedded OC4J or the stand-alone OC4J. Any suggestions???
    In the stand alone OC4J I verified that the data source exists (using java -jar admin.jar ormi://nemethzoltan3 admin welcome -application adatklinika -testDataSource -location jdbc/adatklinikaCoreDS) ... so the data source is defined in the data-sources.xml. Of course the error I get is JBO-30003.
    If I just try to "test" the data source in Jdeveloper (using the context menu of the app module, and setting it to use the adatklinikaCoreDS) I get a JNDI error: unable to lookup data source and at level 3 a "javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial". I checked, the data source is defined under tools->embedded OC4J properties->data sources.
    If I try to run the main form, simply nothing happens.
    Please help!!!

    Ok, figured out why running from jdeveloper wasn't working: the embedded OC4J server wasn't started (start it by running an html page from your project or something...and make sure you don't have a stand-alone oc4j running). AND more importantly it didn't have the library "embedded oc4j client" library included (project properties -> profiles -> development -> libraries)...which is needed for whatever reason.
    Now to try and get it working with the stand-alone OC4J...

  • Memory leak using GWT 1.4 and JDK 1.5

    We are running the following:
    OS : Solaris 5.10
    WebLogic version: 10.0
    JDK : Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
    Java HotSpot(TM) Server VM (build 1.5.0_14-b03, mixed mode)
    GWT : 1.4
    Oracle : 10g
    We have found memory leak with the above configuration.
    After running 1 session we are facing memory leak. The used Java heap is 4% higher than the one used after we conduct
    our memory tests for 1 user.
    Similarly, after running 5 concurrent sessions we are also facing memory leak where Java heap memory is utilised more
    by about 4%.
    I have used JRockit JDK 1.5 for figuring out memory leak. I have not found a memory leak in any of the modules
    developed by us.
    The memory leak issue is we think concerned with the version of JDK, Weblogic, Sun OS.
    Can somebody please suggest whether we can use the version as mentioned above?
    Any help on this front will be appreciated.

    gc log:
    #log information
    JAVA_OPTS="$JAVA_OPTS -verbose:gc "
    JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDetails "
    JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCTimeStamps "
    JAVA_OPTS="$JAVA_OPTS -XX:+DisableExplicitGC "
    JAVA_OPTS="$JAVA_OPTS -Xloggc:/path/to/gclog`date +%Y.%m.%d-%H:%M:%S`.log "Check sun papers for garbage collecting tips.
    >
    Is there any other way we can detect memory leak?
    >
    You have to profile your Application Server like you did with your own code.
    regards
    slowfly

  • JDBC 8.1.6 (2.0) and JDK 1.2 java.sql.SQLException

    I wrote an applet program and access to Oracle database using JDBC 2.0 (Oracle 8i 8.1.6). When testing, I got errors java.sql.SQLException: No suitable driver.
    Who havd any idea to solve this problems.
    It works fine when I use JDBC 1.2 and JDK 1.2 .
    Chuleerat.

    "No suitable driver" usually means that the
    connect string is incorrect.
    The 8.1.6 driver supports JDK1.1 and JDK1.2.
    If you use JDK1.2, the JDBC 2.0 features
    are available to you.
    null

  • Compile Stored Procedure using JDBC ?

    I am using JDBC thin driver and able to create stored procedure without any problem.
    But if the stored procedure is invalid, it
    won't throw SQLException during creation.
    Is there any way that I can compile the
    stored procedure and catch the semantic exception during creation ?
    Please help, thanks.
    null

    The only thing that springs to mind is the user_errors view. If the procedure fails to compile, then there will be rows in this view indicating the error ..... so maybe you could use
    select count(*) from user_errors
    and check from Java that 0 is returned.

  • Where to find the useful jdbc driver

    Dear Pro.:
    now i am trying to convert my ODBC/C/Oracle project into JDBC/java/Oracle one. i used Oracle 8i database version 8.1.7., but i encounter some questions about this process:
    1. Does the Java SDK version has anything to do with the jdbc driver? i know java2 sdk's newest version is 1.4, and the jdbc is 3.0. what is the best solution for matching jdbc driver with sdk?
    2. which jdbc driver is best for Oracle, and where i can get it? i know i can get from DataDirect(15 day try out version) or Oracle. my project evnironment is simple, i run the Oracle 8.1.7 on my personal computer, that is all.
    3. should i learn SQLJ or just jdbc?
    thank you for your consulting ...

    Dear Pro.:
    now i am trying to convert my ODBC/C/Oracle project into JDBC/java/Oracle one. i used Oracle 8i database version 8.1.7., but i encounter some questions about this process:
    1. Does the Java SDK version has anything to do with the jdbc driver? i know java2 sdk's newest version is 1.4, and the jdbc is 3.0. what is the best solution for matching jdbc driver with sdk? there isn't per say an exact match between JDBC drivers spec and JDK versions
    2. which jdbc driver is best for Oracle, and where i can get it? i know i can get from DataDirect(15 day try out version) or Oracle. my project evnironment is simple, i run the Oracle 8.1.7 on my personal computer, that is all. check 8.1.7 drivers, here http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html
    3. should i learn SQLJ or just jdbc?
    thank you for your consulting ... SQLJ provides the simplicity of embeding SQL statements in Java similat to embeding SQL statements in C (a.k.a. Pro*C). In Oracle9i Database release 2, SQLJ is functionally on par wiht JDBC ( dynamic SQL, support for advanced JDBC features) - bottom line use SQLJ is you are looking for simplicity, productivity, stronger type checking.
    Kuassi

  • How to update two tables in a single call using JDBC Sender adapter

    Hello All,
    The scenario is, database entries have to be selected from two tables and at the same time those tables have to be udpated with the flag.
    We are using JDBC sender adapter and in Select Query, we are fetching the data by joinin the two tables.
    Update Statemtent: We can only update one table using this statement.
    Is it possible to update two tables using the Update Statement without using Stored Procedures.
    Let me know.
    Regards,
    Sreenivas.

    Hi Sreenivas,
    > Is it possible to update two tables using the Update Statement without using Stored Procedures.
    Yes its possible through join statement
    Check this links
    Update in JDBC Sender adapter for more than one table
    data from 2 tables for jdbc sender adapter
    Regards
    Ramesh

  • Empty CLOB field value from Oracle database using JDBC Sender

    Hi All,
    I am selecting a CLOB field from Oracle database table using JDBC Sender adapter and getting error "NullPointerException"
    Seen SAP note 1283089 but its not applicable for my support pack PI 7.0 SP 12 and client dont want to upgrdate SP 17 right now.
    I tried rpad(1,0)Column_Name funciton in JDBC select query but it selcting blank value for every record even those having some value for this CLOB field so not useful
    Could anybody suggest possible way? client dont want to change anything at database side.
    Thanks,
    Dharamveer

    What is the Oracle driver version installed? You might need to install 10.x driver if not already using it.

  • Any reported problems using jdbc over a WAN?

    If im trying to connect to a Database that's on a WAN will I experience any issues in using jdbc to connect and execute queries to that database?
    I know problems would come up if my wan network is slow, but has jdbc been able to handle long distance database queries? timeout values?

    but why?
    is it because of security? If a company had a database with your personal info hanging out on the Web for anyone to query without any validation or security, how would you feel about it?
    design pattern issues? It's just good layered design.
    just doesnt make sense?Not in my opinion.
    have u experienced/heard of any problems of
    connecting to a database over a WAN and executing
    queries?You don't say anything about who the client is. If the database is behind a firewall, outside clients shouldn't be able to access the port where the listener is running. Only port 80 should be open on that firewall.
    So you either write a servlet that listens on port 80 for HTTP requests from a browser-based client OR you ask your firewall admin to punch a hole in the firewall and open up the port on which your database is listening for queries and use a Swing client.
    If s/he agrees to do it, quit immediately. It means your company doesn't know anything about security.
    %

  • Returning recordsets with Java S.P. and JDBC

    i'm curious what the easiest way is to return multiple rows from oracle using a jdbc client and Java stored procedure. the examples i've seen just 'pack' all of the values in the one element arrays used as the OUT parameters. can you use custom objects as parameters? thanx

    You can have pl/sql return a Ref Cursor and then get ResultSet from Ref Cursor. For cursor, you do RegisterOutParameter(int, java.sql.Types.Other).

  • Creating and calling stored procedure using jdbc

    When I try to create and call a stored procedure using JDBC a very confusing error message about non-existence of the procedure just created is thrown. Using Informix database (IDS 10). Any pointers to point out what am doing wrong would be great!
    Thanks
    import java.io.FileNotFoundException;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.Scanner;
    public class CreateStoredProc {
    public static void main(String args[]){
    if (0 == args.length)
    return;
    try {
    Class.forName("com.informix.jdbc.IfxDriver");
    Connection conn = DriverManager.getConnection("jdbc:informix-sqli://10.76.244.120:30000/sampledb:INFORMIXSERVER=krisunda;user=root;password=cisco");
    String q = " create procedure runproc() "+
    " define i int; "+
    " let i = 0; "+
    " end procedure; "+
    " execute procedure runproc(); ";
    Statement stmt = conn.createStatement ();
    stmt.execute (q);
    } catch (Exception e) {
    e.printStackTrace();
    The stack trace:
    java.sql.SQLException: Routine (runproc) can not be resolved.
    at com.informix.jdbc.IfxSqli.a(IfxSqli.java:3204)
    at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3518)
    at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2353)
    at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2269)
    at com.informix.jdbc.IfxSqli.executeExecute(IfxSqli.java:2157)
    at com.informix.jdbc.IfxSqli.executeExecute(IfxSqli.java:2132)
    at com.informix.jdbc.IfxResultSet.b(IfxResultSet.java:378)
    at com.informix.jdbc.IfxStatement.a(IfxStatement.java:1299)
    at com.informix.jdbc.IfxStatement.executeImpl(IfxStatement.java:1269)
    at com.informix.jdbc.IfxStatement.c(IfxStatement.java:989)
    at com.informix.jdbc.IfxStatement.execute(IfxStatement.java:875)
    at CreateStoredProc.main(CreateStoredProc.java:37)
    Caused by: java.sql.SQLException
    at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:373)
    at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3523)
    ... 10 more

    DriverManager.getConnection("jdbc:informix-sqli://10.76.244.120:30000/sampledb:INFORMIXSERVER=krisunda;user=root;password=cisco");check with ur sys admin wheather the particular user in the database has >execute privilage(rights) also.i mean execute the SP in the DB level.I guess that a root user will have the enough right.
    String q = " create procedure runproc() "+
    " define i int; "+<" let i = 0; "+
    " end procedure; "+
    " execute procedure runproc(); ";
    Statement stmt = conn.createStatement ();
    stmt.execute (q);Try to use the following code:
    String q = " create procedure runproc() "+
    " define i int; "+
    " let i = 0; "+
    " end procedure; "
    Statement stmt = conn.createStatement ();
    stmt.execute (q);
    q=" execute procedure runproc(); ";
    stmt.execute (q);
    Because maybe the driver failed to precompile your sql once, so that nothing happen.

  • Store, Retrieve and Display picture or video to/from DB2 using JDBC

    I need an idea for implementing the"Store, Retrieve, Display Image/Video" concept in JDBC. My Database is DB2. I could not get proper info from google.
    Thanks and Regards
    Muthukris Bala

    Muthukris wrote:
    I need an idea for implementing the"Store, Retrieve, Display Image/Video" concept in JDBC. My Database is DB2. I could not get proper info from google.
    1. Figure out how to display image/video
    2. Figure out how to encode/decode a image/video into a byte array
    3. Design a database suitable for your application that stores blobs
    4. Figure out how to use JDBC to store/retrieve blobs via byte arrays.
    Steps 1 and 2 have nothing to do with this forum (nor GUI code). There is at least on forum on this site that deals with questions about that.
    Steps 3 is only somewhat related to this forum. A DB2 forum would be best.
    Step 4 is the only part of this that is specific to this forum. And if you have not used any JDBC then you first start with the tutorial or some other suitable method to learn how JDBC works before attempting blobs.

  • Return a multidimensional array using Adaptive WS model

    Hi all,
          I have created a web service that needs no request parameters and returns a 2-dimensional String array as output. I deployed the Web service and tested it using WSNavigator. It works fine.
    Now,I imported the Web service using Web service model. I got an error when importing the model itself.
    Then, I tried using Adaptive Web Service model and tried  to bind the values of the output String array in my webdynpro table. I was able to get only the first element of the 2D String array. Don't know where I am going wrong.
    This is my code:
    MO_Test instance = new MO_Test();          
    Request_GET_USERCUST inst = new Request_GET_USERCUST(instance);
    wdContext.nodeRequest_GET_USERCUST().bind(inst);
    wdContext.currentRequest_GET_USERCUSTElement().modelObject().execute();
    wdComponentAPI.getMessageManager().reportSuccess("Size:"+wdContext.node_GET_USERCUSTResponse().size());
    The size is displayed as 1!!
    Any insights?
    Thanks & regards,
    M.Subathra

    Did u use "webservice model" or "adaptive webservice model".
    Earlier i used with "wenservice model" and it was working fine. Now that with SP17, "WebService model"is depricated and we are forced to use "adaptive webservice model" and it is giving the problem. the detailed error is :
      Exception  : java.lang.NullPointerException: null
    <i>!STACK 0
    java.lang.NullPointerException
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DOperationImpl.initParameters_DocumentStyle(DOperationImpl.java:59)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DOperationImpl.initParameters(DOperationImpl.java:46)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DOperationImpl.<init>(DOperationImpl.java:40)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceImpl.initOperationNameToOperationMapping(DInterfaceImpl.java:150)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceImpl.<init>(DInterfaceImpl.java:55)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.initPortNameToInterfaceMapping(DGenericServiceImpl.java:78)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:50)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:71)</i>

Maybe you are looking for

  • OS level command before message processing

    Hello I am getting the files from the SFTP server through the shell script and expecting to be processed by my File sender adapter. I have configured my File adapter which will poll the directory into which the shell script gets the file and it is sc

  • Thunderbolt to AV receiver and on to HDTV

    I am trying to play movies through my new Yamaha RX A-2010 AV receiver from my Macbook Pro via the thunderbolt connection converted to HDMI. The receiver recognises the sound, but the laptop does not see the HDTV through receiver. As a consequence, n

  • Empty File at Target Directory

    Hi Experts, I am dealing with file to file scenario, where file is being posted to the target directory depending upon the condition, which is mentioned in Java Mapping. The Java Mapping is tested and is successfull. But, the problem is PI is generat

  • Install fail, messed ws 2012r2 up

    Hi, after I finally got succesfully migrated  ws2003 AD to new 2012r2, everything were running perfectly, until I started to install SQL Server Standard 2014 on that server, only rapid flash of the command window appeared, then nothing. Tried again w

  • I'm getting a User Cannot be Authenticated message when trying to order photo cards, books, etc - which I have done successfully many times

    I'm getting a User Cannot be Authenticated message when trying to order photo cards, books, etc - which I have done successfully many times