Problem typecasting 2D SGL array

Hi,
I'm experimenting with my code and encountered a problem in typecasting a 2D SGL array:
What's wrong in here? Type of wire source and sink is same "2-D array of single"...
Btw. this is LV8.6.1.
One more comment: putting a FOR loop around the problematic "typecast" solves the problem - but the vi should also work without a FOR loop...
Message Edited by GerdW on 07-22-2009 02:58 PM
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome
Solved!
Go to Solution.

Use "flatten to string" instead. It works just fine. (set "prepend ... size" to FALSE to get the desired functionality).
Typecasting multidimensional arrays is a bit dangerous, because the reverse operation cannot work. Typecasting a string to a 2D array is ambiguous (e.g. a string with 12 elements could be a 1x12, 2x6, 3x4, 4x3, 6x2, or 12x1 2D array). Typecasting a 2D array is thus forbidden, probably because the operation cannot be reversed with another typecast and a 2D array as type.
Message Edited by altenbach on 07-22-2009 09:41 AM
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Problem is detected with Array : 01

    I was backing up my server when it suddenly turned off. When it restarted it showed a critical error message saying "Problem is detected with Array : 01".
    Windows tried starting and kept rebooting so I just turned it off.
    When I launch the RAID utility I clearly see that the drive 02:01 seems ok but the other one is marked as "failed orisconnected" (it is connected ans spinning).
    This is the spec: On the server I have windows 2012R2 installed on two HD 1TB on RAID1.
    I habe an unused NAS, so I decided to create an iSCSI drive as a Target, and run the windows backup utility to do a Full Backup on it.hat may I have done wrong and how could I resolve this issue?
    This clearly is related to the windows backup utility since this server was working fine until then.
    Thanks.

    Hi,
    The issue could be due to that one of the two drive is failed in the RAID 1. You need to replace the failed drive and rebuild the array automatically.
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Problem in creating dynamic array field.

    Hi there,
    Following are the steps we followed to dynamically build the array field.
    1) Single column array field created with a single widget in the design time.
    2) Few more columns were added using 'Addcolumn' method.
    3) Data in the array object mapped to the array field is populated.
    4) All the dynamic field state was set to FS_UPDATE.
    5) Used Updatefieldfromdata method in all levels ( window, compound field, field widget).
    Problem faced
    1) Data is not visible in the dynamic fields created. But the data is visible in the field created during design time.
    Appreciate, if given any solution for this.
    Regards,
    Anand.

    if you don't see your text, you're not embedding the font.
    when you use actionscript to embed a font, you need to have the font in your library with a linkage id, create a textformat instance and assign its font property and finally assign the textformat to your textfield.  for example
    _root.createTextField("txt",_root.getNextHighestDepth(),50,50,50,50);
    _root.txt.embedFonts=true;
    _root.txt.text="hello";
    _root.txt._rotation=20;
    var tfor:TextFormat=new TextFormat();
    tfor.font="yourfontslinkageid";  // <- linkage id of font in your library
    _root.txt.setTextFormat(tfor);

  • Problems connecting a storagetek array to E3500

    Hey all, I am trying to attach a storagetek raid box to a sun E3500. It refuses to label the disks correctly.
    I have been unable to find any information on the storagetek array beyond the fact that it has black caddies with a small red storagetek logo.
    It is connected to the E3500 SOC+ board with two HSSDC cables using HSSDC GBICs.
    When I boot I get the following error for each of the 9 drives installed.
    Jul 7 20:19:44 fire scsi: WARNING: /sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w500008700018589d,0 (ssd45):
    Jul 7 20:19:44 fire Corrupt label; wrong magic number
    with the correct wwn number etc.
    I then use the format utility and can see the drives appearing twice as c3t?d0 and c4t?d0:
    8. c3t8d0 <HITACHI-DKR1C-J072FC-D2W1 cyl 26517 alt 2 hd 10 sec 537>
    selecting c3t8d0
    [disk formatted]
    Disk not labeled. Label it now? yes
    Warning: error writing VTOC.
    Warning: no backup labels
    Write label failed
    I have tried various things including type -> 0. Auto. Format.
    Formatting takes a long time and complains that it cannot label the disk.
    It also spits lots of the following errors when testing the patterns:
    Jul 7 20:27:27 fire sf1: Target 0x8 Reset successful
    at the rate of several per minutes.
    It then finishes with exactly the same comments about not being able to write the VTOC as above.
    Any thoughts on what the problem is?
    Matthew
    Message was edited by:
    mattaw

    Well, the list of things I have done to try and get it to function now fills an A4 page.
    I am abandoning the attempt and going to sell it on. I suspect that the firmware used on the drives (which is different from the identical hardware Ultrastar) doesn't have all the backwards compatibility that would be necessary for the SOC+ to work.
    Anyhow, if anyone else sees drives like this or similar deals I would recommend they avoid them for general use.
    Matthew

  • Problems selecting elements from arrays

    I'm having difficulty selecting indexed elements from a array of nodes. I have seen this issues discussed in a number of threads but none address the specific issue which I have encountered.
    Previously in version 10.1.2 I constructed a XPath query and then used the BPEL getVariableData function to obtain the element I was after but this doesn't appear to be supported the same way in 10.1.3.1.
    I'm using the following expression
    bpws:getVariableData('VariableDBResult',bpws:getVariableData('xpath'))
    and when I try to compile I get the following error
    Error(243):
    [Error ORABPEL-10085]: invalid argument
    [Description]: in line 243 of "C:\....", the second argument "bpws:getVariableData("xpath")" for getVariableData is not a literal expression.
    [Potential fix]: Please correct the second argument, you might need to escape using single quote or &quot; to make it literal.
    I used the same code in 10.1.2 and it compiled fine.
    For reference the XPath is formed as follows
    concat('/ns3:Result/ns3:t/ns3:c/ns3:e[',bpws:getVariableData('loop'),']')
    But the error occurs at compile time not run time so I suspect the way the xpath is formed would not affect the compile
    I'm suspecting the problem has something to do with the fact that I'm using the function without the optional "pat name" the variable "VariableDBResult" is defined by a schema not a WSDL message type. I have compiled the Array sample 112 which used a part name and it works but in my case without the part name it fails.
    I attempted to cast the expression to a string and use a string variable, all to no avail.
    Any help or suggestions will be greatly appreciated.
    Regards
    Graeme

    Has anybody got around this issue...I searched the forums but allI could get it unresolved threads pointing to this problem
    getVariableData is not a literal expression
    Re: getVariableData is not a literal expression
    Literal function error
    Literal function error
    I want to mention that its a compile time issue and I am using Jdev 10.1.3.4

  • Problem in displaying 2D array in JSF

    Hi All,
    Thanks to all for your previous valuable suggestions. Currently i got stucked with a problem. I need to display a two dimensional array in my JSF page and we r using JSF 1.1.
    I have the following 2D String array in my backing bean
    private String[][] sreDesc = new String[6][3];
    I need to display them in UI. Any help will be highly appreciated.
    Thanks
    V Krishna

    Your Q is not very clear, do you ask about only accessing 2D array ?
    There is a topic about using arrays in your EL, it shows you how to access the elements of 2d array easily using the dot notation.

  • Problem with setting variable/array

    hello,
    in a flash template i found several buttons with almost the same action script code. on pressing the button a window popup with different text (for each button a unique text).
    the following code is in the code section of the buttons, only the two last codelines are different for each button.
    on (release)
    _root.scrHEIGHT = 200;
    _root.scroller.scroller.gotoAndStop(2);
    _root.scroller._x = 100;
    _root.scroller._y = 90;
    _root.TM_title = "Info Box";
    _root.READ = 22;
    so i think that the input of the unique text for each button is handled in the last line "_root.READ = 22".
    i also found in the bibliothek the belonging text parts. my problem now is that i dont know where the connection is set between the text part and the array/variable READ. in this case the connection is 22, but i dont found any property in the text part or in the property of the button where the connection is set to 22. i use flash cs4. anyone know could help me?
    thank you very much,
    pascal

    You're welcome.  For the code you showed, the scroller was the only thing that could have involved some kind of action taking place, so that's why I asked. Everything else was just a static assignment.  I would have had that line last in the lineup just for the logical flow to make sense.  Since the code will execute before any timeline travel is done, it works, but having that line last would have helped in making sense of it.

  • Problem in creating an array of  TextFields

    Hello
    I had initially created 10 Textfields directly without using arrays and got them displayed. Now I thought of using arrays and tried but nothing is being displayed. I am not able to understand what the problem is. If I use arrays, my task would be be cut down by a great deal.
    The code I used is.
    JTextField textField[] = new JTextField[10];
    And later on in the method, I added :
    myPanel.add(textField[i] using for statement.
    Thank you

    you only created the array, you also will have to create eacht textfield.

  • Problems creating a Java Array using JNI-HELP!

    Hi,
    I am trying to create a Java Array using JNI.I have posted the code below. The problem is that the oth element is added correctly to the Array but when the JVM gets to the next element...it goes for a toss. It is not able to create a new instance of the object in GetUGEntity() function...there seems to be some problem in creating a new instance of the object!
    Can somebody help me with this?
    jobject GetUGEntity(JNIEnv *env, UF_DISP_j3d_entity_t* entity_list)
         int numVerts=0, numStrips=0;
         jfieldID fid;
         jdoubleArray jTransform=NULL;
         jstring jstrName=NULL;
         jdoubleArray jNormals=NULL;
         //Init an Entity object
         cout<< "**Getting New Class Reference...";
         jclass jEntity = env->FindClass("Lcom/wipro/java3d/rmi/Entity;");
         cout << "**got Class reference..."<<endl;
         if (jEntity == NULL)
              return NULL;
         cout<<"Creating new object instance...";
         jmethodID mIDInit = env->GetMethodID(jEntity, "<init>", "()V");
         cout<<"Got java method id...";
         jobject javaObj = env->NewObject(jEntity, mIDInit);
         if (javaObj==NULL)
              return NULL;
         cout << "Created!" << endl;
         //Entity ID
         cout<< "**Setting eid...";
         fid=env->GetFieldID(jEntity,"eid","I");
         jint eid = (jint)(entity_list)->eid;
         env->SetIntField(javaObj, fid, eid);
         //env->DeleteLocalRef(eid);
         cout << "Done!" << endl;
         cout << "Done!" << endl;
         cout<< "**Returning jobject...";
         return javaObj;
    jobjectArray createJArray(JNIEnv* env, UF_DISP_j3d_entity_t** entity_list, int noOfEntities )
         UF_DISP_j3d_entity_t* tempVar=NULL;
         cout<<"*Creating Jobjectarray...";
         jobjectArray jEntityArray = (jobjectArray) env->NewObjectArray(noOfEntities,
              env->FindClass("Lcom/wipro/java3d/rmi/Entity;"),NULL);
         cout<<"Created!"<<endl;
         for(int i=0; i<noOfEntities;++i)
              tempVar = &(*entity_list);
              if (tempVar !=NULL)
                   cout<<"*Trying to get Entity...."<<endl;
                   jobject jEntity = GetUGEntity(env, tempVar);
                   if (jEntity!= NULL)
                        cout<<"Got Entity!" <<endl;
                        cout <<"*Setting Array Element....";
                        env->SetObjectArrayElement(jEntityArray, i, jEntity);
                        cout << "Done!" << endl;
                   else
                        printf("ERROR: Did not get Entity Reference");
              else
                   printf("ERROR: Got a NULL Reference!");
         return jEntityArray;

    Hi Deepak,
    Could you please let us know upto which line your code is going safe. Try printing the value in the structure before you send that to the method GetUGEntity().
    I am not too sure that would be a problem. But I have faced a problem like this, wherein I tried to access a structure for which I have not allocated memory and hence got exception because of that.
    Since your JNI code seems to be error free, I got doubt on your C part. Sorry.
    Dhamo.

  • Problem when passing string array in sessions showing null value

    i am trying to pass a string array but it is showing me the null value
    i think the the problem is seem to be in session.settAttribute("subject['"+i+"']",subject) in 2.login_action.jsp
    or in String sub1=(String) session.getAttribute("subject[0]"); in 3.user_home.jsp
    i have following three pages
    1.login.html
    2.login_action.jsp
    3.user_home.html
    1.login.html
    <html>
    <body>
    <form method="post" action="login_action.jsp">
    Username<input type="text" name="username"></input>
    <br>
    Password<input type="password" name="password"></input>
    <input type="submit" value="login"></input>
    </form>
    </body>
    </html>
    2.login_action.jsp
    <%@ page contentType="text/html"%>
    <%@ page import="java.sql.*" %>
    <%!
    String user,pwd;
    String subject[]=new String[10];
    int i,totalsubject;
    %>
    <%
    try
    user=request.getParameter("username");
    pwd=request.getParameter("password");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:ods","scott","tiger");
    PreparedStatement ps = con.prepareStatement("select password from users where username='"+user+"'");
    ResultSet rs = ps.executeQuery();
    if(rs.next())
    if(rs.getString("password").equals(pwd))
    session.setAttribute("username",user);
    PreparedStatement ps2 = con.prepareStatement("select subject_id from allot_teachers where staff_id='"+user+"'");
                        ResultSet rs2 = ps2.executeQuery();          
                             while(rs2.next())
                             i=0;
                             subject[i]=rs2.getString(1);
    // if i display here the subjects in out.println(subject[i]) it is working fine
    // but in next redirected page it is showing null
                             session.setAttribute("subject['"+i+"']",subject[i]);
                             //out.println(subject[i]);
                             i++;
    response.sendRedirect("user_home.jsp");
    else
    out.println("error invalid username or password");
    else
    out.println("error invalid username or password");
    con.close();
    catch(Exception e)
    out.println(e);
    %>
    3. user_home.jsp
    <%@ page contentType="text/html"%>
    <%@ page import="java.sql.*" %>
    <html>
    <%
    String user,pwd,cat,cat1;
    String username=(String) session.getAttribute("username");
    if(username==null)
    response.sendRedirect("login.html");
    //just tried for first two subjects
    String sub1=(String) session.getAttribute("subject[0]");
    String sub2=(String) session.getAttribute("subject[1]");
    //here it is printing null
    out.println(sub1);
    //here it is printing null
    out.println(sub2);
    %>
    <form method="post" action="logout.jsp">
    <input type="submit" value="Logout"></input>
    </form>
    </html>
    Cheers & Regards
    sweety

    The name in getAttributre doesnt match the name in setAttribute.
    Note "subject[0]" is a string containing 10 chars, "subject" is a string containing 7 chars.
    Here is your code:
    session.setAttribute("subject",subject);
    String sub1=(String) session.getAttribute("subject[0]");

  • Problem Sorting Partially Filled Arrays

    I am having trouble sorting a partially filled array. What I want to have happen is have the user enter up to 50 numbers(int's only, 0's and negatives are allowed) and store the input in an array. Then sort the array, and display the sorted array from highest to lowest back to the user. The next step, which I haven't addressed yet is counting the number occurrences of each unique int and display that total to the user.
    I have the array fill working correctly. Where I am having problems is when i try and sort the array of user entered values. Instead of only sorting the entered values, it add's "0's" to the array and sorts and displays them as well.
    Here is what I want to have happen:
    The user enters 1 2 3 4 3 2 1, the output should be 4 3 3 2 2 1 1. But what is actually being output is 4 3 3 2 2 1 1 0 0 0 0 0 0 etc.(until the array is full).
    What am I doing wrong? If I display the contents of the array prior to sorting, it will only display the numbers entered, it does not add the extra 0's to fill the array. Any other suggestions on my code are welcome as well, always trying to get better at this, its tough teaching yourself form a book!
    And I have left some of my tracer variables in there as well.
    import java.util.Scanner;
    import java.util.Arrays;
    public class SortNumbers {
        //user can not enter more than 50 numbers to be sorted
        private static final int MAX_NUMBERS_ENTERED = 50;
        public static void main(String[] args) {
            // TODO code application logic here
            int[] sortThis = new int[MAX_NUMBERS_ENTERED];
            int numberUsed = 0;
            int count;
            System.out.println("Enter the numbers you would like to sort. Enter '1234' to stop. ");
            numberUsed = fillArray(sortThis);
            outputArray(sortThis, numberUsed);
        //this receives numbers from the user
        public static int fillArray(int[] a){
            Scanner keyboard = new Scanner(System.in);
            int next;
            int index = 0;
            next = keyboard.nextInt();
            while ((next != 1234) && (index < a.length)){
                a[index] = next;
                index++;
                next = keyboard.nextInt();
            return index;
        //this outputs the content of the array to the user
        public static void outputArray(int[] a, int numberUsed){
            //show the contents of the array
            System.out.println("The numbers you entered are: ");
            for (int i = 0; i < numberUsed; i++){
                System.out.print(a[i] + " ");
            System.out.println();
            System.out.println("***********");
            System.out.println("array length: " + a.length + ", " + "what array length should be: " + numberUsed);
            System.out.println("***********");
            //sort the array and show the sorted output
            Arrays.sort(a);
            for (int i = (MAX_NUMBERS_ENTERED - 1); i >= 0; i--){
                System.out.print(a[i] + " ");
    }

    This is what I've gotten so far...
                   //sort the array and show the sorted output
            Arrays.sort(a, 0, numberUsed);
            int qty = 1;
            //show the headers of the columns
            System.out.println("Num" + "  " + "Qty");
            //go through the numbers and output them along with their qty
            for (int i = (numberUsed - 1); i >= 0; i--){     
                if (a[i] != a[i+1]) {
                    System.out.println(a[i] + "    " + qty);
                    qty = 1;               
                else {
                    qty++;
            System.out.println();However, it's not working. If I only enter 1 instance of each number it works fine. However, if i enter multiple instances of a number, it doesn't work how it should.
    Any suggestions? Should I replace the if statement with a for loop?
    In the same problem, I can't figure out how to only display the entered number once and the number of times that it has been displayed. I think my two problems go hand in hand, if I figure the first one out, the second one should be easy.

  • I have some problems while passing control array as refernce to the sub vi and sub VI crashes not deterministically after few minutes

    Hallo every body,
    i have some questions when i am passing the refernces to the sub_VI
    1)when i run the application, the blink indicator(in main VI) starts blinking. even in sub_vi for true case i set it true and for false case i set it false. why from begining of the execution it starts blinking?
    2)the stop button i am using in main VI is too slow. when i press the stop button it takes too much time to stop the application. why?
    3)the array control (amplitude, freq,total time taken )
    i am creating references of array. then these references i am sending to for loop. where it will convert as scalr values and then these scalar values to the sub_vi. opposite to it i am getting the reference of scalar cycles value and i am buliding an array of these scalar cycles to show it in indicator. it seems not to be working properly. why?
    for this exexution some times i get error 91.
    4) sometimes in the begining i get error 1055. why?
    5) my sub vi crashes not deterministically.some time times after 2 minutes. some times after 5 minutes. by crash i mean i dont get an error but on the oscilloscope i see not smooth sine signal, but some strange broken, unbroken, delayed(all together mixed signals). why?
    thanks for the important suggestions.
    Regards
    Attachments:
    Check0.llb ‏204 KB

    1) At some point the Blinking property gets set. Then the errors result in the program terminating. The property never gets reset. Setting a Property node in the main VI with Blinking = False prevents this.
    2) You have 1 second Wait until next multiple delays in both the main and subVI loops. Depending upon which delays have executed when you push the Stop button it can take two seconds or more before all the loops execute again and note the Stop button.
    3) The references are to arrays. (Time Taken, Amplitude, Cycles and Frequency) but you are connecting scalar values to the Values properties. Variant does not mean you can connect anything and it will convert to what you want. Once the Type has been set (when the control was created), the property node input matches that type.
    4) 5) I never got this far so I cannot explain these errors. However, I suspect that once you fix the others, these will either be fixed also or the cause will become more apparent.
    Lynn

  • Problem in assigning script array to Js variable

    There is a huge list(20,000) of cities that has to be put into a script array for the further use in the jsp page. so this script array is created once for all when the login is made for the application and stored a session variable. The sample of the script array is like-----
    <script>
    strArrCityName[17463]= "Zoar";
    strArrCityID[17463]= "10599";
    strArrCityStateID[17463]= "3";
    strArrCityName[17464]= "Zoarville";
    strArrCityID[17464]= "10600";
    strArrCityStateID[17464]= "3";
    </script>
    the entire stuff from <script>---</script>(uncluding the script tags is stored as a string in the session (strSessionCityArr))
    Now the porblem is i need to store this array into a js variable on jsp page load.
    I order to that i need to declare a js variable in jsp page
    ex::
    <html>
    <body>
    This is a sample jsp page created by <%= strUserName%>
    <script>
    var cityarry = "<%=session.getAttribute('strSessionCityArr')%>";
    </script>
    </body>
    </html>
    when i assign the array to the js variable , the <script> tag inside the string is conflicting with the <script> tag that of the jsp page.
    This throws the js error and the futher loading of the page is stopped.
    The reason i am storing it in the js variable is i will be painting the script array dyanamically on click of a button.
    Also in need both the script tags in the array is in other jsp pages i will painting the array on page load by using the out.println(strCityArray)
    I need a way in which this script array can be stored in js variable or any method by which i can directly get it from the session on button click
    Thanx in advance
    Manu

    i had tired constructing the script array using the JS but JS logic is always slower ...my point was not to do it all with JS code. My point was that unless you know how to properly define it as JS-only code, then it makes it hard to figure out how to break that up to Java generated code. It's clear to me that you don't have a very good grasp of what you're trying to do.
    The second point is, in some JSPs i need the <script> tags to be included in the array. No they don't. You can always put the <script> tags around what your Java variable includes if you are using that content in several places...
    <script><%= session.getAttribute('strSessionCityArr') %></script>

  • Problem when using object array as parameter of server-side event

    Hi Friends,
        I had defined an event in component interface of Component A, with object array as its parameter. but when I define event-handler for this event in Component B, the type of parameter in generated event-handler method is just the class itself instead of an array.
       It's a bug or array parameter is not support by server-side event in WD4J?
       Thanks in advanced.

    I think you are trying to do the editing of parameter from the java editor.
    Do it via the controller editer. Go the methods tab. Select the actionhandler.
    In the parameter section edit the paramter. Change the dimensions here.
    Regards,
    Ashwani Kr Sharma

  • Problem passing oracle.sql.ARRAY to Oracle

    I am having ClassCastException when I try to pass a oracle.sql.ARRAY to a Oracle Package.
    Here is my code:
    PreparedStatement stmt = null;
    String strArray[] = { "1,2,3,4,5" };
    ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor( "TEST_PAC_1.TEST_COLL_2", dbConnection );
    //encounter Exception on the line below.
    ARRAY array_to_pass = new ARRAY( descriptor, dbConnection, strArray );
    String queryStr = "begin TEST_PAC_1.TEST_PROC_2(?); end;";
    stmt = dbConnection.prepareStatement(queryStr);
    stmt.setArray( 1, array_to_pass );
    stmt.execute();
    I understand that oracle.sql.ARRAY has been replaced by weblogic.jdbc.vendor.oracle.OracleArray in Weblogic.
    MY QUESTION IS: HOW DO I INSERT MY STRING ARRAY INTO THE OracleArray and pass it to the plsql.
    Really frustrated searching through the forums for the whole day,
    Thanks,

    Try this if you are at weblogic 8.1:
    Connection con = getConnectionFromDataSource();
    Connection vendorConnection = ((WLConnection)con).getVendorConnection();
    // use direct oracle connection.
    ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor( "TEST_PAC_1.TEST_COLL_2", dbConnection );
    vendorConnection.close();
    Beware that you should be very careful as you are going to use a direct vendor
    connection.
    The better aproach is to pass the string array as a delimited string to your storad
    procedure and parse it in the SP - then you don't have to mess up with vendor-specific
    handling.
    Hope this helps.
    Regards,
    Slava Imeshev
    "Daddy Daddy" <[email protected]> wrote in message news:24349835.1097143668312.JavaMail.root@jserv5...
    I am having ClassCastException when I try to pass a oracle.sql.ARRAY to a Oracle Package.
    Here is my code:
    PreparedStatement stmt = null;
    String strArray[] = { "1,2,3,4,5" };
    ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor( "TEST_PAC_1.TEST_COLL_2", dbConnection );
    //encounter Exception on the line below.
    ARRAY array_to_pass = new ARRAY( descriptor, dbConnection, strArray );
    String queryStr = "begin TEST_PAC_1.TEST_PROC_2(?); end;";
    stmt = dbConnection.prepareStatement(queryStr);
    stmt.setArray( 1, array_to_pass );
    stmt.execute();
    I understand that oracle.sql.ARRAY has been replaced by weblogic.jdbc.vendor.oracle.OracleArray in Weblogic.
    MY QUESTION IS: HOW DO I INSERT MY STRING ARRAY INTO THE OracleArray and pass it to the plsql.
    Really frustrated searching through the forums for the whole day,
    Thanks,

Maybe you are looking for

  • My page color chaned to blue when I was typing, I want to change back to white

    I am using the default firefox theme 9.1 version. I was typing and must have hit some odd key combination and now all my browser screns have a greenish blue background. I want to change it back to white, but following the options menu for color does

  • Going from hdd to ssd

    I would like to change a hdd to ssd on macbook pro (mid 2010). If I use time machine backup from old system on new ssd will it be copied with the old disk faults ? I would like to install fresh OS X on ssd, but at the same time I wish to keep apertur

  • Please Help: I cannot get the Airport Extreme settings right with AT&T DSL

    AT&T Motorola 2210 DSL Modem. I have tried both bridged on/off and different configurations on the Airport Extreme, but I cannot get online. I am out of ideas. I called AT&T tech support and because it's not one of their wireless routers, they wanted

  • 6110 notes: Route 66 and Nokia Map (Smartogo) in a...

    Hi, Just sharing some observations after trying out the two maps for navigation in a city. a) Responsiveness: Route66 is definitely more responsive in re-routing once you drive off the recommended route. It typically provide new directive immediately

  • How do I prevent effects from being rasterized/un-editable when I re-open my CS6 file?

    Since upgrading to CS6: when I re-open Illustrator CS6 files, I find that effects such as dropshadow, etc. are rasterized as images or other elements that I can't edit as "effects". I'm the single author of these files, so they're being edited on the