ArrayStoreException getting XMLBeans array in netui datasource

(Sorry for the cross post)
http://forums.bea.com/bea/thread.jspa?threadID=600005423
Hi,
I have multiple levels of hierarchy in my XMLBeans returned by LDControl.
I am using netui tags (as described in the docs) to generate a table in JSP.
I get the following exception -
Caught exception when evaluating expression "{container.item.someLevel2Array}" with available binding contexts [actionForm, pageFlow, globalApp, request, session, appication, pageContext, bundle, container, url, pageInput]. Root cause: java.lang.ArrayStoreException
The weird thing is that someLevel1Array works. Levels below 1 are not working.
JSPF -
private SomeLDControl myControl;
public someNamespace.SomeDataDocument.SomeData.stuff[] stuffArray;
In JSPF action method -
someNamespace.SomeDataDocument var = myControl.LDQueryName(aForm.param);
getRequest().setAttribute("results", var);
stuffArray = var.getSomeData().getStuffArray();
return new Forward("success");
In JSP page -
<netui-data:repeater dataSource="{pageFlow.stuffArray}">
<netui-data:repeater dataSource="{container.item.level1DataArray[0]}"> <-- this works -->
<netui-data:repeater dataSource="{container.item.level2DataArray[0]}"> <-- DOES NOT WORK!! -->
Any clues what I might be missing?
Is there a better way to do this?
- vineet

I removed few levels of hierarchy in my XML and I was able to access data from the lower levels. My XML schema was 10 levels deep. I had it changed to 5 levels by removing un-necassary levels.
I found an alternative solution here -
http://forums.bea.com/bea/message.jspa?messageID=200609795&tstart=0
-vineet

Similar Messages

  • How do I get an array of LinkedLists?

    I need an array of liked lists
    I tryed the code:
    LinkedList buckets[] = new LinkedList[radix];But that generated an unchecked warning when I tried to put an Integer into it.
    I changed it to:
    LinkedList<Integer> buckets[] = new LinkedList<Integer>[radix];But that generated a "generic array creation" error.
    is it possible to to get an array of lists without warnings?

    It is possible to use generic arrays (simple ones)
    e.g.
    import java.util.List;
    public class Test
       public static void main(String[] args)
          String[] elements = new String[]{"Happy","Go","Lucky"};
          String middleElement = middleElement(elements);
          System.out.println(middleElement);
       public static <T> T middleElement(T[] elements)
          return elements[elements.length/2];
    }However you cannot (should not) create generic arrays with bounded parameters.
    Lets say that we have somehow create a generic array:
    List<String>[] lists = ...
    Then since lists is an array we can assign it to Object[]
    Object[] objArray = lists;
    and now we can put any list in the array.
    objArray[0] = new ArrayList<Rectangle>();
    Even though this should not happen, the runtime has no way to check aginst it and so no ArrayStoreException is thrown.
    You are however free to:
    List<?>[] lists = new List<?>[5];
    which implies its an array of any type of List.

  • How can i get a array from a JSP ?

    Hi all,
    i have a STORED PROCEDURE like this:
    static public void getMyArray(double [] xx) {
    for (int i=0; i<myarr.length;i++){
    myarr=3.145*i;
    xx=myarr;
    return ;
    how can i get the array with XSQL and transform with a XSL ?
    Is this at all possible?
    Thanks for any help.
    Achim

    u r asking how ca u get array from jsp?
    and u r asking xsql ...some stuff i couldnot understand .can u repeat the question properly?
    null

  • Get the Data from a DataSource

    Hi,
    I start with JMF. I use a processor to get DataSource from an audio file. Until there, all runs very well.
    But after that, I would like to get the raw data of my DataSource to aplly a filter on these data and after that, to create a new DataSource with filters data and play these data with my processor.
    I searched in the API documentation of JMF but I did'nt find the solution to get the raw data of my DataSource !
    Someone could help me ? and give me an idea of how to proceed ?
    Thanks for yours answers.
    Sylvain.

    Hi,
    It seems no one has replied to this post. I have a sample code that can help getting raw data from a DataSource. Here it is:
              PushBufferDataSource source = null;
              source = (PushBufferDataSource)processor.getDataOutput();
              /* Now we can retrieve the PushBufferStreams that will enable us to
              * access the data from the camera
              PushBufferStream[] streams = source.getStreams();
              camStream = null;
              for (int i = 0; i < streams.length; i++) {
              /* Use the first Stream that is RGBFormat (there should be only one */
              if (streams.getFormat() instanceof RGBFormat) {
                   camStream = streams[i];
                   RGBFormat rgbf = (RGBFormat)streams[i].getFormat();
                   converter = new BufferToImage(rgbf);
                   break;
    Please let me know whether it helped solving your problem..
    Suresh

  • How to get an array variable to update in a loop

    Hi
    I have an array of doubles called cps that contains a double h.
    the array is defined out of the loop.
    The loop defines the value of h and uses that array to do something. How can I get the array to update h at every iteration of the loop?
    // STAR-CCM+ macro: test.java
    package macro;
    import java.util.*;
    import star.common.*;
    import star.base.neo.*;
    import star.vis.*;
    import star.base.report.*;
    public class test extends StarMacro {
    public void execute() {
    double h ;
    int i;
    double[] cps= new double[] {75.9042408986955, 52.51153872409542, h, 76.51180919240942, 49.49901260109725, h, 77.70163043426585, 49.67622002009714, h, 78.35982941912259, 46.537117169241895, h, 78.08136061783705, 45.42324196409971, h, 75.67640278855279, 44.840989015957206, h, 68.73999810198555, 40.942425797959565, h, 66.66413976512966, 44.511889523528836, h, 67.85396100698608, 44.99288108938568, h, 68.81594413869979, 45.65108007424243, h, 69.37288174127089, 46.081440948956455, h, 68.99315155769969, 46.992793389527336, h, 68.38558326398577, 48.005407212383865, h, 67.8792763525575, 48.81549827066909, h, 73.423337032697, 51.954601121524334, h};//coordinates of constrained section plane
    Simulation simulation_0 =
    getActiveSimulation();
    // CREATING CONSTRAINED PLANE SECTIONS //
    Region region_0 =
    simulation_0.getRegionManager().getRegion("main domain;main domain;NONE");
    Units units_0 =
    ((Units) simulation_0.getUnitsManager().getObject("m"));
    i = 0;
    for ( h = 0.5; h <= 2; h = h + 0.5) {
    i = i + 1;
    ConstrainedPlaneSection constrainedPlaneSection_i =
    (ConstrainedPlaneSection) simulation_0.getPartManager().createConstrainedPlaneImplicitPart(new NeoObjectVector(new Object[] {region_0}), new DoubleVector( cps ), units_0); // Sets Plane Boundaries (as mapped) //
    LabCoordinateSystem labCoordinateSystem_0 =
    ((LabCoordinateSystem) simulation_0.getCoordinateSystemManager().getObject("Laboratory")); // Defines Lab Coordinate System (Does this once). //
    constrainedPlaneSection_i.setCoordinateSystem(labCoordinateSystem_0); // Sets this planes coordinate system //
    Coordinate coordinate_i =
    constrainedPlaneSection_i.getOriginCoordinate();
    coordinate_i.setCoordinate(units_0, units_0, units_0, new DoubleVector(new double[] {71.92329015, 46.4835809, 0.5})); // Sets the origin for the plane //
    constrainedPlaneSection_i.setPresentationName("Unit 1 " + h + "m");
    }

    double h ;
    double[] cps= new double[] {75.9, 52.5, h, 76.5, 49.4, h,  // simplifiedLooking at your code I see that you have initialised your array with the value of the variable h scattered throughout it. Are you asking how you can update these "h" values in the array each time around the loop? eg:
    Initial array: 75.9, 52.5, 0.0, 76.5, 49.4, 0.0
    1st iteration: 75.9, 52.5, 999.999, 76.5, 49.4, 0.0
    2nd iteration: 75.9, 52.5, 999.999, 76.5, 49.4, 999.999
    Something like that.
    If so then you need to know what the indicies of the numbers you want to update which may not be a simple matter. Perhaps an array is not what you want here but maybe a Map instead.

  • How i can get a array in the current page?

    Can i send a array parameters from previous page to current page?
    the coding like below:
    // the coding in the previous page
    String[] strSend = {"a", "b", "c"};
    HashMap map = new HashMap(2);
    map.put("array", strSend);
    pageContext.setForwardURL(
    "OA.jsp?OAFunc=XXFMSRHISQF",
    null,
    KEEP_MENU_CONTEXT,
    null,
    map,
    true,
    ADD_BREAD_CRUMB_NO,
    IGNORE_MESSAGES );
    //the coding in the processRequest of the current pageCO.
    String strParam = pageContext.getParameter("array");
    the problem is that the type of "strParam" is a String.
    it's not a array of String. So it is not the parameter what i need.
    can u tell me how to get the array parameter from previous page. thanks.

    This cannot be achieved directly while using the setForwardURL method, all values that are there in the Hashmap will be appended when the redirection is done, so you cannot get the values that are there in the array object directly.
    Workaround that I can think of, put all the array values in a String object, appended by a delimiter, in the second page, after you do a getParameter(String), recover the values using a StringTokenizer and the delimiter that you used while appending the string values and store the values in a Array.
    Thanks
    Tapash

  • How to get byte array from jpg in resource for Image XObject?

    Hi,
    Does anyone know how to get an array of bytes from a jpg from resource without an external library except MFC?
    The array of bytes is needed to create an Image XObject so it can be included in an appearance for an annotation.

    Sounds like a standard Windows programming question, not specific to the SDK.

  • Getting an Array complex Type From a SOAPMessage using SAAJ

    My question is can you do that?
    I was able to put together a properly formatted message for a .NET SOAP service, send it, and get the response (without Fault), but from the response
    SOAPMessage response = connection.call(message, endpoint);
    I don't see how to get the array, and I can't find any example on the web any where using SAAJ. It's not an attachment, because
    System.out.println("Number of attachments.... " + response.countAttachments() );
    gives me
    Number of attachments.... 0.
    Has anybody seen an example on how to do this? I haven't seen any docs on this been looking for two days.      

    Hello,
    It sounds like you want to get the body of that response SOAP Message. If i'm right then you should review the structure of a SOAP Message, it is something like..
    <Message>
    <Envelope>
    <Header></Header>
    <Body></Body>
    </Envelope>
    </Message>
    That structure is basically a one without attachments. To get the body, SAAJ gives you a method (i don't quite recall it now) something like response. getEnvelope().getBody() and inside Body you should get the values you asked for.
    Nonetheless, i'm gonna give you a great resource web page address... Good Luck!!!
    http://java.sun.com/webservices/docs/1.3/tutorial/doc/index.html
    JJ2O Venezuela

  • How to force Get Type Array(..) return a direct pointer to the elements

    So, my question is how the native method can ask the VM to pin down the contents of an array.
    Performing storage allocation and copying is too long for
    Java objects containing many primitive data types...
    Thank you !

    I must use GetPrimitiveArrayCritical(..) instead of
    Get<type>array(..).
    Thank you for me!

  • Please help how to get return array from rpg program on java code?

    Hi
    I have created a rpg program that returns 2 parameter 1 is the id and another one is list of array, when I called this program I passed two programparameter from my java code (see the code below) but when i checked what value would be return it is returned only first value of array. how will i get all array values ?
    please suggest me regarding this issues I amn't so much aware on java & AS400.
    try
    ProgramParameter[] parmList = new ProgramParameter[2];
    AS400Text p1 = new AS400Text(10);
    AS400Text p2 = new AS400Text(30);
    try
    parmList[0] = new ProgramParameter(10);
    parmList[1] = new ProgramParameter(30);
    parmList[0].setParameterType(ProgramParameter.PASS_BY_REFEREN CE);
    parmList[1].setParameterType(ProgramParameter.PASS_BY_REFEREN CE);
    parmList[0].setInputData(p1.toBytes("Pune"));
    parmList[1].setInputData(p2.toBytes(" "));
    catch(Exception ex)
    ProgramCall pgm = new ProgramCall(o);
    pgm.setProgram("/QSYS.LIB/XXX/XXX.PGM",parmList);
    if (pgm.run())
    byte s[] = parmList[1].getOutputData(); // HERE I got only first value of returning array.
    parmList[1].getOutputDataLength();
    //String sts = ((String) (new AS400Text(10,o).toBytes(s[0])));
    else
    AS400Message[] messageList = pgm.getMessageList();
    for (int msg = 0; msg < messageList.length; msg++) {
    catch(Exception ex)
    AS400Message[] messageList = null;
    finally
    o.disconnectAllServices();
    Reply With Quote

    Try this :
    try
    ProgramParameter[] parmList = new ProgramParameter[2];
    AS400Text p1 = new AS400Text(10);
    AS400Text p2 = new AS400Text(30);
    AS400Array arrP2 = new AS400Array(p2, 4);
    try
    parmList[0] = new ProgramParameter(10);
    parmList[1] = new ProgramParameter(30);
    parmList[0].setParameterType(ProgramParameter.PASS_BY_REFEREN CE);
    parmList[1].setParameterType(ProgramParameter.PASS_BY_REFEREN CE);
    parmList[0].setInputData(p1.toBytes("Pune"));
    parmList[1].setInputData(arrP2.toBytes({"","","",""}));
    catch(Exception ex)
    ProgramCall pgm = new ProgramCall(o);
    pgm.setProgram("/QSYS.LIB/XXX/XXX.PGM",parmList);
    if (pgm.run())
         Object[] objArr =  (Object [])arrP2.toObject( parmList[1].getOutputData() );
         for(int i =0; i<objArr.length;i++){
                System.out.println( " SKU " + i +" : " + objArr.toString());
    else
    AS400Message[] messageList = pgm.getMessageList();
    for (int msg = 0; msg < messageList.length; msg++) {
    catch(Exception ex)
    AS400Message[] messageList = null;
    finally
    o.disconnectAllServices();

  • How  could i get my array to do this?

    how could i get my array to print out in this format
    1 A B C D
    2 A B C D
    3 A B C D
    4 A B C D
    5 A B C D
    6 A B C D
    7 A B C D
    i tried this in a small function
    public void showArray()
            char[][] temp= new char[7][4];
            for (int i=0; i<array.length;i++)
                for(int j=0;j< array.length; j++)
    temp[i][j]=array[i][j];
    System.out.println( temp[i][j]);

    public static void printArray(char[][] array)
       for (int i=0; i<array.length; i++)
          System.out.print(i +1 + " "); //print the row number + 1, then a space
          for (int j=0; j<array.length; j++)
    System.out.print(array[i][j] + " "); //print the value at row i and column j, then a space
    System.out.println(); //print a new line
    }Edited by: chickenmeister on Nov 11, 2008 9:47 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • To get the name of the Datasource into WAD

    Hi All,
    I need to get the name of the datasource into WAD,
    i.e. if the datasource is Oracle i need to show it in WAD.
    How am  i suppose to go for it?
    Thanks
    Godhuli

    hi Godhuli,
    there is technical business content infoobject 0TCTDSOURC - datasource.
    - activate from business content for this infoobject with 'dataflow before' if not yet done.
    - you will get infosource 0TCTDSOURC and infopackage, run the infopackage to upload data.
    - this infoobject delivered not as 'infoprovider', you may modify with transaction rsd1, mark 'char. is data target/infoprovider' and reactivate, or you can create an new infoobject (if you don't want modify business content objects), copy from 0TCTDSOURC and create update rules with data update from 0TCTDSOURC.
    - create query to report from 0TCTDSOURC or copied infoobject (as infoprovider)
    - use this query in webtemplate
    hope this helps.

  • Can't get an array of characters from a string!

    If I have a string eg "Hello World", how do I get an array containing the characters eg. [H,e,l,l,o, ,W,o,r,l,d]
    Can any one help me please?

    Or to get the chars you want from a String object you can do this:
    String helloString = new String("Hello World");
    char[] helloArray = helloString.toCharArray();

  • How to get An Array from PostgreSQL.

    When I design a programm to get an array object from a postgreSQL database, the programm give the following exception:
    "This method is not yet implemented"
    Who can help me?
    Thanks!!!!
    Here are my codes:
    import java.sql.*;
    class test {
    public static void main(String args[]) {
    String url = "jdbc:postgresql://localhost:5432/testdb";
    String query = "select * from table1";
    try {
    Class.forName("org.postgresql.Driver");
    Connection con = DriverManager.getConnection(url,"aa", "bb");
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery(queryStr);
    while(rs.next()) {
         Array array = rs.getArray("idnum");
    } catch(Exception ex) {
    System.out.println("Get Data Fail: " + ex);
    the table struct of "table1"
    =============================
    varchar(10) int4[]
    name | idnum
    -----------------+--------------------------------
    Bill | {100430,134630000,10000,10000}

    You pass a string to the getArray method. The parameter should be an integer, representing the desired column.

  • WLST - Get List of JDBC Multi DataSource Only..

    Hi All, I am trying to get a list of Multi DataSources using wlst. The list should only have multi data source not the regular ones. I am able to get the all but not the multi data sources, is there an attribute which can uniquely identify the Multi data source. Please advise.

    This is a bit hacky but seems to work:
    from com.bea.wli.sb.management.configuration import ALSBConfigurationMBean
    from com.bea.wli.config import Ref
    alsbCore = findService(ALSBConfigurationMBean.NAME, ALSBConfigurationMBean.TYPE)
    refs = alsbCore.getRefs(Ref.DOMAIN)
    it = refs.iterator()
    while it.hasNext():
        r = it.next()
        if r.getTypeId() == Ref.PROJECT_REF:
            print(r.getProjectName())Edited by: paddys on Mar 5, 2012 4:48 PM
    Code formatting

Maybe you are looking for

  • HT5421 Logic Pro 8 and OS 10.8.2 ?

    Hi there, I want to installed Logic Pro 8 ( an upgrade version ) on my Macbook Pro with OS 10.8.2 and when I click on the installer on the DVD, the message is : You can't open the application "LogicStudio.mpkg" because PowerPC applications are no lon

  • How to make a trailer movie with own photo's

    I am trying to make a trailer in IMovie.  I have made a 'normal movie' and would like to add a trailer. Probably a silly question, but where you get the grayed out frames with action, dog, 1 person 2 people, Landscape  etc.... How do you add your pho

  • XML validation in WS adapter

    Hi experts, I get the following error message in SXMB_MONI while processing a message through a WS sender adapter: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!-- Error Message --> <n0:Fault xmlns:n0="http://schemas.xmlsoap.org/soap/enve

  • Macbook Air Screen Scrolling

    Hi, I'm new to Macs but absolutely love my Macbook Air.  When I am browsing the web and atempt tp scroll down using the down arrow key, the key initially scrolls down but then jumps back up to the top of the page.  Am I doing something sill? Mike

  • IPhoto won't open/display photos in edit

    I have an up-to-date version of iPhoto in my iMac.  It has been working fine for years.  About a month ago, pictures stopped displaying when I click on one to view it alone, either to see a bigger version or to edit it.  The pictures are all viewable