How to lazy initialize iterators?

Hello,
I'm using JDeveloper 11.1.1.4.0.
In Managed bean c'tor, I am getting the row attribute values from an iterator, Iterator1. These values are then stored in session.
Subsequently I need to use these session values to fetch data from another iterator, say Iterator2.
Following is the code written.
        DCIteratorBinding iterator =
            ((DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry()).findIteratorBinding(iteratorName);getCurrentBindingsEntry() calls Iterator2, tries to initialize it and does not find Iterator1 values in session. It then throws NullPointer exception.
How do I ensure that getCurrentBindingsEntry() does NOT initializing all the iterators in the same binding?
Regards,
Amar

John,
Here is the use case:
1. My page has a few multiSelectCheckboxes, selectOneChoice and three tables. Each of these is based on different iterators.
2. In managed bean c'tor, multiSelectCheckboxes and selectOneChoice are to be populated. I'm fetching each of the iterator rows using the code given below.
    private ArrayList getAllIteratorValues(String iteratorName,
                                           String attributeName) {
        DCIteratorBinding iterator =
            ((DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry()).findIteratorBinding(iteratorName);
        ArrayList attributeValues = new ArrayList();
        for (int i = 0; i < iterator.getEstimatedRowCount(); i++) {
            Row row = iterator.getRowAtRangeIndex(i);
            Object attribute = "";
            attribute = row.getAttribute(attributeName);
            attributeValues.add(attribute);
        return attributeValues;
    }3. The populated values are stored in session. I'm required to do this as the same values are required on some other pages as well.
4. Table iterators are to be executed using session values.
While executing step 2 above, when it calls BindingContext.getCurrent().getCurrentBindingsEntry(), it executes the VOImpl for one of the tables. In this VOImpl, it looks for the session values and throws NullPointerException.
So is there any way to populate only one iterator at a time (the ones for selectOneChoice/multipleCheckBox) and not all the iterators in 'bindings'?
Amar

Similar Messages

  • Concurrent, non-synchronized, lazy initialization: is this correct?

    Guys, I would appreciate a sanity check on some code of mine.
    I have a class, call it State. Every instance is associated with a key of some type. Each user will know the key it wants to use. It will present that key to State to request the corresponding State instance. They must always receive back that sole instance that corresponds to key. The keys are unknown until runtime, so you must lazy initialize a State instance when first presented with a given key.
    If concurrency was not an issue, then State could have lazy initialization code like this:
         /** Contract: never contains null values. */
         private static final Map<Object,State> map = new HashMap<Object,State>();
         public static State get(Object key) {
              State state = map.get(key);
              if (state == null) {
                   state = new State();
                   map.put(key, state);
              return state;
         private State() {}     // CRITICAL: private to ensure that get is the only place instances createdBut heavy concurrency on get is present in my application. While I could trivially make the above code safe by synchronizing get, that would cause it bottleneck the entire application. Vastly superior would be the use of some sort of concurrent data structure that would only bottleneck during the relatively rare times when new State instances must be created, but would allow fast concurrent retrievals when the State instance has already been created, which is the vast majority of the time.
    I think that the unsynchronized code below does the trick:
         /** Contract: never contains null values. */
         private static final ConcurrentMap<Object,State> map = new ConcurrentHashMap<Object,State>();
         public static State get(Object key) {
              State current = map.get(key);
              if (current != null) return current;
              State candidate = new State();
              current = map.putIfAbsent(key, candidate);
              return (current == null) ? candidate : current;
         }Here is how it works: most of the time, just the first two lines
         /** (ignore this) */
         State current = map.get(key);
         if (current != null) return current;will be executed because the mapping will exist. This will be really fast, because ConcurrentHashMap is really fast (its always slower than HashMap, but maybe only 2X slower for the scenario that I will use it in; see [https://www.ibm.com/developerworks/java/library/j-benchmark2/#dsat] ).
    If the relevant State instance is not present in map, then we speculatively create it. Because get is unsynchronized, this may/may not be the one actully put on map and returned by the subsequent lines of code because another thread supplying the same key may be concurrently executing the same lines of code. That's why its named candidate.
    Next--and this is the real critical step--use ConcurrentMap's atomic putIfAbsent method to ensure that just the first thread to call the method for a given key is the one who suceeds in putting it's candidate in map. We reassign current to the result of putIfAbsent. Its value will be null only if there was no previous mapping for key but this call to putIfAbsent suceeded in putting candidate on map; thus, candidate needs to be returned in this case. But if current is not null, then some other thread with the same key must have been concurrently calling this code and was the thread which suceeded in putting its State on map; thus in this case current will have that other thread's value and so return it (with this thread's candidate being a waste; oh well).
    Note that this problem is similar in spirit to the infamous double checked locking idiom. Since that is such a treacherous minefield
    [http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html].
    I would really appreciate another set of eyes looking over my code.

    Hi Bbatman,
    Thank you so much for your answer.
    Pietblock: I believe that your double checked locking proposal is still wrong.OK, I do believe you.
    Did you read the link that I provided in my initial post?
    It discusses some known solutions,
    the best of which for singletons is a value helper class,
    followed by making the reference to your singleton be volatile
    (assuming that you are using jdk 1.5+).Yes, I did read that article some time ago, when I first got warned for double checking. I never quite understood the keyword "volatile". Now, when reading it again, I see some light glimmering.
    But your proposal has some strange elements.
    First, both the singleton field as well as accessor method are always static
    --why did you make them instance based in your code?
    In order to call them, you already need an instance which defeats the purpose!
    Are you sure about that choice?Yes, that is deliberately. The intended use is to define a static instance of SingletonReference in a class that needs to be instantiated as a singleton. That reference is then used to obtain the singleton.
    Assuming that leaving out static on those was a typo,
    the only innovation in your proposal is the claim that
    "Executing an instance method on the new singleton prevents inlining".
    Where did you get that idea from?
    Its news to me. Instance methods often get inlined, not just static methods.The non static field is not a typo, but intentional. What you call a "innovation", my assumption that I prevented inlining, is exactly what I was not very sure about. I can't imagine how an interpreter or JIT compiler would navigate around that construct, but nevertheless, I am not sure. Your remark suggests that it is unsafe and I will reconsider my code (change it).
    The reason why most double checked locking solutions fail,
    including I believe yours,
    is due to completely unintuitive behavior of optimizing java runtime compilers;
    things can happen in different time order than you expect if you do not use some sort of locking.
    Specifically, typical double checked locking fails because there is no lock on the singleton,
    which means that writes to it can occur in strange order,
    which means that your null-check on it may not prevent multiple instances from being created. Yes, you convinced me.
    Thank you so much for looking into it
    Piet

  • How to refresh/initialize sy-tabix in a loop?????

    Dear all,
    Please do let me know how to refresh/initialize 'sy-tabix' for every new document in a loop statement.
    Thanx in advance.
    Alok.

    Never try to refresh or initialize system variable. It shall always lead to errors in the programs. For this I have an alternative way below.
    Please declare a variable for e.g
    data: <b>l_count</b> type sy-tabix.
    Inside loop you can write the code like this:
    say for eg. you need to refresh l_count for every new material.
    Loop at itab.
    on change of itab-material.
    clear : l_count.
    endon.
    l_count = l_count + 1.
    endloop.
    Hope this clarifies your issue.
    Lakshminarayanan

  • How do you initialize audio player on iPhone 5s iOS8?

    I am trying to use Scan & Translate and Translate Photo but the error message that says "Unable to initialize audio player" comes up and cannot use those apps.
    How do you initialize audio player on iPhone 5s iOS 8?

    Ddeveloper has not updated their app since July.
    THey need to update to be ios 8 compatible.
    the popup you are getting is the app failing to work, not a direction for you to follow.

  • I have an external hard drive that was formatted by a PC and has files and directories etc. I want to format it and use it on my IMAC for backup but I can't seem to write to it nor can I delete current content. How do I initialize it for use with the MAC?

    I have an external hard drive that was formatted by a PC and has files and directories copied to it etc. I want to use it on my IMAC for backup. I see it on my my IMAC . I can open files etc.  But I can't seem to write to it nor can I delete current content. I don't care if I lose current content. How do I initialize it for use with the MAC?

    You can't write to it because it's formatted as NTFS which OS X will read but not write to. If you want to continue using the drive with both a PC and OS X you will need to download and install NTFS-3G so you can then write to it from your Mac. You can get NTFS-3G at:
    http://www.macupdate.com/app/mac/24481/ntfs-3g
    If you want to use the drive exclusively with your Mac then move the data off it and reformat it in Disk Utility (Applications - Utilities - Disk Utilities) as Mac OS Extended (Journaled.)

  • Lazy Initialization Exceptions

    Our Java naturally classes contain properties which are
    relationships to other classes - either one to many or many to one.
    Due to the fact that these relationships are so intertwined, many
    given objects end up referencing a large portion of the database if
    one were to recursively follow all of the nested relationships. As
    such, we desire to have the option of not loading certain
    relationships when the data is not needed.
    We use EJB 3.0 (JBoss implementation using Hibernate) for
    object persistence. It allows the option of uninitialized
    collections and other referenced objects.
    The Flex process of serialization to AMF causes serious
    problems for this design. It tries to touch all of these properties
    while building the binary representation for sending over the wire.
    This triggers an immediate attempt to initialize the objects which
    are still in the uninitialized state.
    This causes the LazyInitializationException to be thrown by
    the O/R framework - because the transaction is already closed
    (which effectively means the call to the DAO has returned).
    The community only offers two suggestions, both which do not
    work with Flex (or Flash Remoting for that matter). T
    he first is simply initializing everything ahead of time.
    This does not work because eventually you have to draw the line
    somewhere, and the Flex serialization routines will find that line
    and try to cross it.
    The second is the open session in view pattern, meaning that
    we open the transaction as soon as the Flex client makes a request,
    and close it only when the last response has been made. This does
    not work either, because Flex would end up initializing everything
    during serialization.
    I have gone to the extent to writing a custom aspect to
    intercept returning calls from my DAO and null out the Hibernate
    proxies. This worked until I tried to use it for uninitialized many
    to one relationships. Nulling them out actually deletes my
    relationship in the database!
    The only solution I see is to add intelligence to the Flex
    serialization techniques which watch for this scenario, and avoid
    triggering the lazy initialization.
    Any suggestions would be appreciated.

    quote:
    Originally posted by:
    busitech
    Our Java naturally classes contain properties which are
    relationships to other classes - either one to many or many to one.
    Due to the fact that these relationships are so intertwined, many
    given objects end up referencing a large portion of the database if
    one were to recursively follow all of the nested relationships. As
    such, we desire to have the option of not loading certain
    relationships when the data is not needed.
    We use EJB 3.0 (JBoss implementation using Hibernate) for
    object persistence. It allows the option of uninitialized
    collections and other referenced objects.
    The Flex process of serialization to AMF causes serious
    problems for this design. It tries to touch all of these properties
    while building the binary representation for sending over the wire.
    This triggers an immediate attempt to initialize the objects which
    are still in the uninitialized state.
    This causes the LazyInitializationException to be thrown by
    the O/R framework - because the transaction is already closed
    (which effectively means the call to the DAO has returned).
    The community only offers two suggestions, both which do not
    work with Flex (or Flash Remoting for that matter). T
    he first is simply initializing everything ahead of time.
    This does not work because eventually you have to draw the line
    somewhere, and the Flex serialization routines will find that line
    and try to cross it.
    The second is the open session in view pattern, meaning that
    we open the transaction as soon as the Flex client makes a request,
    and close it only when the last response has been made. This does
    not work either, because Flex would end up initializing everything
    during serialization.
    I have gone to the extent to writing a custom aspect to
    intercept returning calls from my DAO and null out the Hibernate
    proxies. This worked until I tried to use it for uninitialized many
    to one relationships. Nulling them out actually deletes my
    relationship in the database!
    The only solution I see is to add intelligence to the Flex
    serialization techniques which watch for this scenario, and avoid
    triggering the lazy initialization.
    Any suggestions would be appreciated.

  • How to re-initialize a Unity Connection 8.5 DataBase for Lab testing

    I have built an Active/Active Unity Connection 8.5 Cluster on UCS for lab testing and I am wondering how to re-initialize the database (Clean out the database like a new install) without having to reinstall the application. I forgot to take a DRS of the newly installed server to revert back to.
    I have tried using Bulk Administration but subscribers and Callhandlers with Dependencies will not be touched by the Bulk Administration job. I need a quick way of getting the database back to fresh install status.

    Hi,
    Unlike Unity, there isn't a way to do this with UC without re-installing the entire application.
    Brad

  • Problem with lazy initialization in inhereted class

    Hi. I have a strange problem. I have 2 classes CMRCommandInputPanel (view ) , class CommandInputFieldsModel (view's model) and 2 classes that inherets from them: CMRDerivitiveCommandInputPanel and DerivativeCommandInputFieldsModel.
    the Views looks like:
    public class FormPanel extends JPanel {
        protected AbstractFormDataModel mFormModel = null;
        public FormPanel(AbstractFormDataModel formModel) {
            super();
            initialize(formModel);
        private void initialize(AbstractFormDataModel formModel) {
            mFormModel = formModel;
    public class CMRCommandInputPanel extends FormPanel {
         public CMRCommandInputPanel(AbstractFormDataModel formModel) {
              super(formModel);
              initialize();
         private void initialize() {
              initLocalModels();
            JPanel mainPanel =  new JPanel () ;
             mainPanel.setLayout(new BorderLayout());
            mainPanel.add(getUpperButtonsPanel(), BorderLayout.NORTH);
            mainPanel.add(getFormPanel(), BorderLayout.CENTER);
            mainPanel.add(getDownButtonsPanelDefault(), BorderLayout.SOUTH);
            mainPanel.addMouseListener(new MouseAdapter(){
                public void mouseClicked(MouseEvent e) {
                     // set focus on the formPanel in order to set the entered value on mouse click.
                        getFormPanel().requestFocus();
            this.setLayout(new BorderLayout());
            this.add(mainPanel);
            this.setBorder(UIConstants.DEFAULT_PANEL_BORDER);
         protected CMRPanel getFormPanel() {
              if (mFormPanel == null) {
                    adding editable TextFields to the panel.
             return mFormPanel;
         protected void initLocalModels(){
              new CommandInputFieldsModel(mFormModel,this);
    public class CMRDerivitiveCommandInputPanel extends CMRCommandInputPanel {
         private JTitledTextField mRealizationPriceField = null;
         public CMRDerivitiveCommandInputPanel(AbstractFormDataModel formModel) {
              super(formModel);
    // override of  super method
         protected CMRPanel getFormPanel() {
              if (mFormPanel == null) {
                    adding super classes  editable TextFields to the panel and some new ones
              return mFormPanel;
         /* (non-Javadoc)
          * @see cmr.client.ui.CMRCommandInputPanel#initLocalModels()
         protected void initLocalModels() {
              new DerivativeCommandInputFieldsModel(mFormModel,this);
         public JTextField getRealizationDateField() {
              if (mRealizationDateField == null) {
                   mRealizationDateField = new JTextField();
              return mRealizationDateField;
    public class CommandInputFieldsModel extends AbstractFieldsDataModel {
         protected CMRCommonDataModel mFormModel = null;
         protected CMRCommandInputPanel mView = null;
         public CommandInputFieldsModel(CMRCommonDataModel data,CMRCommandInputPanel aView){
              mFormModel = data;
              mView = aView;
              mFormModel.registryModel(this,ExBaseDataController.META_KEY);
              mFormModel.registryModel(this,CompanyMessagesController.META_KEY);
              mFormModel.registryModel(this,DefaultFinancialValueController.META_KEY);
              mFormModel.registryModel(this,QuantityValueController.META_KEY);
              mFormModel.registryModel(this,RateForPercentController.META_KEY);
         /* (non-Javadoc)
          * @see cmr.client.ui.data.CMRUpdatable#updateData(java.lang.Object)
         public void updateData(Object aNewData) {
                updating relevant fields by using getters of View
    public class DerivativeCommandInputFieldsModel extends CommandInputFieldsModel {
         public DerivativeCommandInputFieldsModel(CMRCommonDataModel data,CMRDerivitiveCommandInputPanel aView){
              super(data,aView);
         /* (non-Javadoc)
          * @see cmr.client.ui.data.CMRUpdatable#updateData(java.lang.Object)
         public void updateData(Object aNewData) {
              if (aNewData instanceof RealizationData){
                   RealizationData realizationData =  (RealizationData)aNewData;
                   CMRDerivitiveCommandInputPanel theView = (CMRDerivitiveCommandInputPanel)mView;
                   theView.getRealizationDateField().setValue(realizationData.getRealizationDate());
                   theView.getRealizationPriceField().setValue(realizationData.getRealizationPrice());
              }else
                   super.updateData(aNewData);
    }The problem is , that when the field's getter of inhereted view's class is called from model for updating field,the fields are beeing initialized for second time. they simply somehow are equal to NULL again. I've checked reference to the view and it's the same,but only new fields still equals to NULL from model.
    is someone can help me with that?

    The only thing that springs to mind is that you're
    exporting the newly created fields model object in
    the superclass constructor (at least I assume that's
    what the registry calls do).
    That can cause problems, especially in a
    multi-threaded environment (though it's often
    tempting). Again there's a risk that the
    partly-initialized object may be used.
    Actually this is a bit of a weakness of Java as
    opposed to C++. In C++ a new object has the virtual
    method table set to the superclass VMT during
    superclass initialisation. In Java it acquires its
    ultimate class indentity immediately.
    You'd be safer to extract all that kind of stuff from
    the superclass constructor and have some kind of
    init() method called after the object was
    constructed.
    In fact whenever you see a new whose result
    you don't do anything with, then you should take it
    as a warning.thank you for your replies. ;) I've managed to solve this matter. Simply fully redefined my panel with fields in child-class and added to it's constructor local initialization() method as well, which creates UI of child-class. Even that I initialize UI twice, but all fields are initialized with "lazy initialization" , so there is only once NEW will be called. but there is something weird going in constructors with ovverwritten methods.

  • Lazy initialization of ValueHolderInterface

    We are initializing the value holders lazily, for example we are initializing them checking them if they are null in the getter methods, from
    the code patterns it is always seem that value holders are initialized in the constructors of the POJO. what are the problems associated
    with lazy initialization of valueholderinterface? thanks

    Should be ok, and more optimal. When TopLink generates/weaves code it initializes them lazily (since 10.1.3).
    James : http://www.eclipselink.org

  • How do I initialize a DVD to prepare for recording data?

    Using an S5150t pavilion, LightScribe drive.  How do I initialize a DVD to prepare for recording data?  The HP Digital Media program only addresses pictures and video.

    Bill, here is a guide to using CyberLink DVD Suite 6.  This is the program that the Product Specifications page states is on your computer.
    Please let us know if this solves your problem or not.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • How can i initialize variables and append variable in bpelx:exec

    I want to know how to initialize variables in bpelx:exec.
    I try to use java embedded activities for dynamic sql query. But I meet some problems that cannot assign the data to tempVariable. because I don't initialize tempVariable. but I can't initial variables in java embedded actitvities. How can i initialize variables in bpelx:exec ?
    and I want to know to extend child Elment of tempVariables dynamically in bpelx:exec ?
    here is my source.
    <bpelx:exec name="callEmpDB" language="java" version="1.5">
    <![CDATA[
    String url = "jdbc:oracle:thin:@127.0.0.1:1521:wonchoi";
    String user = "scott";
    String passwd = "tiger";
    int index = 1;
    Connection conn = null;
    Statement stmt = null;
    ResultSet rs = null;
    Node node = null;
    try{                             
    conn = DriverManager.getConnection (url, user, passwd);
    stmt = conn.createStatement();
    String wherescript = "";
    Element empno = (Element)getVariableData("inputVariable","payload", "/client:selConnectDBProcessRequest/client:empno");
    Element ename = (Element)getVariableData("inputVariable","payload", "/client:selConnectDBProcessRequest/client:ename");
    Element job = (Element)getVariableData("inputVariable","payload", "/client:selConnectDBProcessRequest/client:job");
    Element deptno = (Element)getVariableData("inputVariable","payload", "/client:selConnectDBProcessRequest/client:deptno");
    String sql = "select empno, ename, job, mgr, hiredate, sal, comm, deptno from emp where 1 = 1 ";
    if(empno != null && empno.getTextContent() != null && !empno.getTextContent().equals("") )
    wherescript = wherescript + " and empno = " + empno.getTextContent() ;
    if(ename != null && ename.getTextContent() != null && !ename.getTextContent().equals("") )
    wherescript = wherescript + " and ename like '" + ename.getTextContent() +"' " ;
    if(job != null && job.getTextContent() != null && !job.getTextContent().equals("") )
    wherescript = wherescript + " and job = '" + job.getTextContent() +"' ";
    if(deptno != null && deptno.getTextContent() != null && !deptno.getTextContent().equals("") )
    wherescript = wherescript + " and deptno = " + deptno.getTextContent() ;
    sql = sql + wherescript;
    System.out.println("sql : "+sql);
    rs = stmt.executeQuery(sql) ;
    while (rs.next())
    setVariableData("tempVariable", "payload", "/ns1:selEmpOutputCollection/child::*[position()="+index+"]/ns1:EMPNO", rs.getString("empno"));
    setVariableData("tempVariable", "payload", "/ns1:selEmpOutputCollection/child::*[position()="+index+"]/ns1:ENAME", rs.getString("ename"));
    setVariableData("tempVariable", "payload", "/ns1:selEmpOutputCollection/child::*[position()="+index+"]/ns1:JOB", rs.getString("job"));
    setVariableData("tempVariable", "payload", "/ns1:selEmpOutputCollection/child::*[position()="+index+"]/ns1:MGR", (rs.getString("mgr")==null? "": rs.getString("mgr")));
    setVariableData("tempVariable", "payload", "/ns1:selEmpOutputCollection/child::*[position()="+index+"]/ns1:HIREDATE", rs.getString("hiredate"));
    setVariableData("tempVariable", "payload", "/ns1:selEmpOutputCollection/child::*[position()="+index+"]/ns1:SAL", rs.getString("sal"));
    setVariableData("tempVariable", "payload", "/ns1:selEmpOutputCollection/child::*[position()="+index+"]/ns1:COMM", rs.getString("comm"));
    setVariableData("tempVariable", "payload", "/ns1:selEmpOutputCollection/child::*[position()="+index+"]/ns1:DEPTNO", rs.getString("deptno"));
    index++;
    }catch(SQLException sex){                          
    System.out.println("sql error");
    }catch(Exception ex){                             
    System.out.println("error");
    }finally{                             
    try{                      
    rs.close();
    stmt.close();
    conn.close();
    }catch(Exception ex){}
    }]]>
    </bpelx:exec>
    and here is tempVariable examples and schema.
    <tempVariable>
         <part name="payload">
              <selEmpOutputCollection>
                   <selEmpOutput>
                   <EMPNO/>
                   <ENAME/>
                   <JOB/>
                   <MGR/>
                   <HIREDATE/>
                   <SAL/>
                   <COMM/>
                   <DEPTNO/>
              </selEmpOutput>
              <selEmpOutputCollection>
         </part>
    </tempVariable>     
    <xsd:element name="selEmpOutputCollection" type="selEmpOutputCollection"/>
    <xsd:element name="selEmpOutput" type="selEmpOutput"/>
    <xsd:complexType name="selEmpOutputCollection">
    <xsd:sequence>
    <xsd:element name="selEmpOutput" type="selEmpOutput" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="selEmpOutput">
    <xsd:sequence>
    <xsd:element name="EMPNO" type="xsd:decimal" nillable="true"/>
    <xsd:element name="ENAME" type="xsd:string" nillable="true"/>
    <xsd:element name="JOB" type="xsd:string" nillable="true"/>
    <xsd:element name="MGR" type="xsd:decimal" nillable="true"/>
    <xsd:element name="HIREDATE" type="xsd:dateTime" nillable="true"/>
    <xsd:element name="SAL" type="xsd:decimal" nillable="true"/>
    <xsd:element name="COMM" type="xsd:decimal" nillable="true"/>
    <xsd:element name="DEPTNO" type="xsd:decimal" nillable="true"/>
    </xsd:sequence>
    </xsd:complexType>
    thanks

    My bpel project flow is as follows.
    First, I initalize the temp varialbe like this.
    <assign name="setInitialVar">
    <copy>
    <from>
    <ns1:selEmpOutput xmlns:ns1="http://lgesoa.lge.com/EmpSpec/types">
    <ns1:EMPNO/>
    <ns1:ENAME/>
    <ns1:JOB/>
    <ns1:MGR/>
    <ns1:HIREDATE/>
    <ns1:SAL/>
    <ns1:COMM/>
    <ns1:DEPTNO/>
    </ns1:selEmpOutput>
    </from>
    <to variable="tempVariable" part="payload"
    query="/ns1:selEmpOutputCollection/ns1:selEmpOutput"/>
    </copy>
    </assign>
    Second, get Data(ex. 10 Employee Information List) from DB for useing Java embedded activity.
    Third, assing employee info to tempVariable, then BPEL assign just only one Employee Information. and next data can't assign and the BPEL make an error.
    here is my error message..
    <2007-03-02 11:23:26,125> <ERROR> <default.collaxa.cube.engine> <BPELXExecLet::setVariableData>
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure}
    messageType: {null}
    parts: {{summary=oracle.xml.parser.v2.XMLElement@15f80b}}
         at com.collaxa.cube.xml.dom.DOMUtil.copy(DOMUtil.java:536)
         at com.collaxa.cube.engine.ext.BPELXExecLet.setVariableData(BPELXExecLet.java:721)
         at com.collaxa.cube.engine.ext.BPELXExecLet.setVariableData(BPELXExecLet.java:700)
         at bpel.selconnectdb.ExecLetBxExe4.execute(ExecLetBxExe4.java:160)
         at com.collaxa.cube.engine.ext.wmp.BPELXExecWMP.__executeStatements(BPELXExecWMP.java:49)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:195)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3271)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1697)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:184)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:269)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5244)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1083)
         at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.createAndInvoke(CubeEngineBean.java:132)
         at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncCreateAndInvoke(CubeEngineBean.java:161)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    I analyzed the problem. and I find the reason that is I just assing one XML flag to the temp variable. If i don't initalize the varaible like first step, BPEL make an error above error message.
    thanks
    Won.

  • How do I initialize my video camera

    how do I initialize my video camera canon XH A1S. It says it doesn't recognize it but it worked the first time I tried it. I haven't changed anything. Could my firewire cord be bad?

    Not necessarily.
    As long as the Easy Setup and footage from the camera match you should not have to swap and change.
    Al

  • How can i initialize a button (Switch when pressed) to be always disabled when i start the programm.

    Hello
    How can i initialize a button (Switch when pressed) to be always disabled when i start the programm. My problem is that the state of the button is always the state in which it finihed last time.
    Thanks
    Lukas

    A button is either true or false. "Disabled" is a property that determines if the button can be operated or not.
    It seems from the rest of your question that you actually want to ensure that it is set to false, but remain enabled. This is easiest done with a local variable as already mentioned by becktho.
    If you want to disable the button, use a property node.
    LabVIEW Champion . Do more with less code and in less time .

  • How can I initialize an external hard drive when disk utility won't work?

    Have a Seagate 300 GB external firewire drive. Formatted it for Mac. Had worked great and then one day it would not mount, got message box with choices of "initialize", "ignore" and 'eject". Clicking initialize, disk utility comes up with only the "first aid" button showing active. When I click on it nothing happens. As far as I can tgell there are no other options
    Any suggestions on how I can repair this drive or recover data would be much appreciated.
    Thanks, Jim

    OK, I suspect First Aid may be blank since Disk Utility "sees" the device but does not think there's anything on it.
    1. How about if you select the drive and then click the Erase tab?
    2. Also, what happens if you connect the drive, select Ignore, then open Disk Utility? Does the drive show up?
    3. What's your objective here? Do you want to try to recover data from the drive, or simply erase it? If you're looking to recover data from the drive, see my "Data Recovery" FAQ.
    4. Do you know what happened before the problem arose? For example, was there a power outage or was the cable or drive suddenly disconnected before the drive was Ejected? Any of these events can result in the drive's partition map being corrupted, leading to the kind of problems you're seeing.
    5. Did you build this FireWire drive? That is, buy and enclosure, buy a drive, and install the latter in the former? If so, have you checked the connections?
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • How can I initialize a web application in a cluster

    Our current test environment is a single node but we have to move to a clustered environment. We have some database initialization which we do using a 'startup servlet' with the load-on-startup marker.
    Now how does this behave in a clustered environment? Will the servlet be called once or once per node?
    Should we redesign the startup initialization? Are there best practices for Weblogic clusters regarding startup initialization?
    btw: Weblogic 10.3
    cheers,
    Rob
    Edited by: [email protected] on Oct 20, 2009 6:48 AM

    Servlet init() will be called by each JVM the application is in, regardless if it is in a cluster or not.
    If you want once per cluster behavior, you'd need to consider something like a Singleton Service, which is outside of your application OR use something like Oracle Coherence in your application that would allow you to easily check if the initialization has already occurred in another cluster member.
    http://download.oracle.com/docs/cd/E12839_01/web.1111/e13709/service_migration.htm#i1051668

Maybe you are looking for

  • Unable to import all photos in an Aperture project

    Hi all, i was trying to load my new iPad (3) with some photos from my Aperture library (via iTunes) but noticed when selecting/checking the projects to import that only a subset of that project was able to be imported. This is the case with several o

  • FCPX export error when exporting

    When I try to export a project it gets to a certain point,then stops with a message,ERROR-1. It indicates a bad frame

  • Changing Original System and Transport Target System for Objects

    Hi Gurus,          I need to do mass transport of all the Infoobjects to newly defined system. Since these objects have different Original system. Its giving me error. Again, for other objects, Transport Target system is QAS, But we want to change it

  • WS-C4500X-16 is in rommon mode and unable to recover itc

    Hi All, I have a new cisco device with the model of  WS-C4500X-16, when i power on it displays the below error and goes to rommon mode. * Rom Monitor NVRAM configuration is being initialized to      * * default values. This may be because it was neve

  • After Effects error (25 § 237)

    Bonjour, j'ai fréquemment un message d'erreur qui apparaît dans After Effects : After Effects (erreur) : Volet linéaire a renvoyé un max_result_rect incorrect de PF_Cmd_SMART_PRE_RENDER (25 § 237) Je travail en mode 32 bits linéaire avec un espace co