Failed to get child node in tree selection listener

I do a web application using JDeveloper 11 G (11.1.1.2.0) merge.

I created two display objects linked together. Let's call them VoDepartments and VoEmployees, connected by DepartmentId.

I hava done a tree with an af:switcher
<af:switcher id="s1" facetName="#{node.hierType.structureDefName}">
 <f:facet name="view.VoDepartments">
  <af:outputText value="#{node}" id="ot1"/>
 </f:facet>
 <f:facet name="view.VoEmployees">
  <af:outputText value="#{node}" id="ot2"/>
 </f:facet>
</af:switcher>
I made a selection listener based on a guide about Frank Nimphius
RichTree tree1 = (RichTree) selectionEvent.getSource();
RowKeySet rks2 = selectionEvent.getAddedSet();
Iterator rksIterator = rks2.iterator();
 
 if (rksIterator.hasNext()){
  List key = (List)rksIterator.next();
  JUCtrlHierBinding treeBinding = null; 
  treeBinding = (JUCtrlHierBinding) ((CollectionModel)tree1.getValue()).getWrappedData();

  JUCtrlHierNodeBinding nodeBinding = nodeBinding = treeBinding.findNodeByKeyPath(key);
            
  String nodeStuctureDefname = nodeBinding.getHierTypeBinding().getStructureDefName(); //Here is the nullpointerexception for employees
          
  String employees = "view.VoEmployees";
  String departments = "view.VoDepartments";
           
  if (nodeStuctureDefname.equalsIgnoreCase(departments)){
   String dept = (String) nodeBinding.getAttribute("Department_name");   
   System.out.println("Department = "+dept);
  }
  else if (nodeStuctureDefname.equalsIgnoreCase(employees)){
   String emp = (String) nodeBinding.getAttribute("First_name");   
   System.out.println("Employee = "+emp);
  }
  else{
   //what the heck did the user click on? Ask him ;-)
  }
 }
Pagedef:
Executables:
<iterator Binds="VoDepartments2" RangeSize="25" DataControl="AppMainDataControl" id="VoDepartments2Iterator"/>

Bindings:
<tree IterBinding="VoDepartments2Iterator" id="VoDepartments2">
 <nodeDefinition DefName="view.VoDepartments" Name="VoDepartments20">
  <AttrNames>
   <Item Value="DepartmentId"/>
  </AttrNames>
  <Accessors>
   <Item Value="VoEmployees"/>
  </Accessors>
 </nodeDefinition>
 <nodeDefinition DefName="view.VoEmployees2" Name="VoDepartments21">
  <AttrNames>
   <Item Value="First_name"/>
   <Item Value="Last_name"/>
  </AttrNames>
 </nodeDefinition>
</tree>
The works of the tree just fine and all he has to list the list. I can click on the Department and my interlocutor selection departments name printed in the console.
I can develop a Department and the list of employees. The problem is when I click on an employee, I get null pointer exception.

I discovered that the listener selectins is not nodeBiding for employees. NodeBinding.getHierTypeBinding () .getStructureDefName () Yes; throw NullpointerException.

Someone has an idea what is wrong? Help, please.
-Thomas

Published by: Thomas H on March 22, 2010 08:21

Thomas,

I was able to reproduce the problem and resolved. View objects only reading is not a primary key set. So just change all attributes that participate in a primary key and the value of the 'key' button I'll add a note to the blog post original th

Frank

Tags: Java

Similar Questions

  • ADF Code corner #50 - tree selection listener Table do not save the State of the

    Hello world

    With the help of JDev Studio Edition Version 11.1.1.3.0

    I have a table of tree using the earphone generic selection based on the excellent article by Frank Nimphius during synchronization of forms for entries of tree node edit. http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/50-synchromize-form-TreeSelection-169192.PDF

    My problem:

    My selectedNodeRowKey and selectedNodeRowIterator variables are turning to null out the listener.

    Process and code:

    I select a node. It called the selection event of onTreeSelect, which in turn saves the node key and the iterator in the same support bean backingBeanScope value.
          DCIteratorBinding _treeIteratorBinding = null;
          _treeIteratorBinding = treeBinding.getDCIteratorBinding();
    //Frank's code above ...
    
          this.selectedNodeRowKey = nodeBinding.getRowKey();
          for (Object opaqueFacesKey: treeTable.getSelectedRowKeys())
          {
            treeTable.setRowKey(opaqueFacesKey);
            this.selectedNodeRowIterator =
                ((JUCtrlHierNodeBinding) treeTable.getRowData()).getRowIterator();
          }
    
          System.out.println();
          System.out.println("Update Key: " + this.selectedNodeRowKey);
          System.out.println("Update Ite: " + this.selectedNodeRowIterator);
    
    //Frank's code resumes ...
          Row[] found =
            this.selectedNodeRowIterator.findByKey(this.selectedNodeRowKey, 1);
    Then, I click on a button that calls an actionListener in the same bean support.
      public void onButtonRemove(ActionEvent actionEvent)
      {
        System.out.println("Remove button pressed.");
    
        BindingContainer bindings = getBindings();
    
        System.out.println(this.selectedNodeRowKey);
        System.out.println(this.selectedNodeRowIterator);
    
        OperationBinding operationBinding =
          bindings.getOperationBinding("deleteChildren");
        operationBinding.execute();
        System.out.println("Remove complete");
      }
    This gives me the result
    Update Key: oracle.jbo.Key[112 ]
    Update Ite: oracle.jbo.server.ViewRowSetImpl@aa641d
    bos.model.queries.TbomView
    
    Remove button pressed.
    null
    null
    Remove complete
    What happened to my values and node iterator? I guess it has something to do with a scope or something similar to C++ through reference instead of the value. The strange thing is, the default MakeCurrent onSelection the auditor's work, but use this generic listener and values change.

    Published by: LovettWB on December 21, 2010 14:51

    Hello

    You can try setting the bean to the session scope? I guess it works, which brings me to my main point. If the managed bean is used in a stubborn workflow (which I assume you are referring to the use of fragments of page jsff), make sure that it is also defined in the workflow definition and not adfc-config. Personally, I like to feel it is best to set the bean managed in the metadata scopes, in which it is used. So could already solve the problem

    Frank

  • If you select value of LOV gets this oracle.jbo.InvalidOperException: No. JBO-34014 no child node found for line with key:oracle.jbo.Key when inserting line

    I use JDev 12 c on Windows 7 Pro

    I do a CreateInsert in ADF button on af:table. The model is set up so that T1 is one to many with t2, t2 is one to many with t3.

    I have recordings in t1 and t2, and trying to insert a record into t3.

    After I click the button, two of the three PK columns have values of t2. The third column is served by LOV. I open the LOV and select a value, and I get this exception:

    oracle.jbo.InvalidOperException: Houston-34014: no child node not found for line with key:oracle.jbo.Key [79449 Xnnnn-nn-X-nnnn null] under parent node: root

    at oracle.jbo.uicli.binding.JUCtrlHierBinding.bringNodeToRangeKeyPath(JUCtrlHierBinding.java:875)

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding.bringNodeToRangeKeyPath(FacesCtrlHierBinding.java:121)

    at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowKey(RowDataManager.java:131)

    to oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$ FacesModel.setRowKey (FacesCtrlHierBinding.java:951)

    at org.apache.myfaces.trinidad.component.UIXCollection.setRowKey(UIXCollection.java:553)

    at org.apache.myfaces.trinidad.component.UIXTable.setRowKey(UIXTable.java:768)

    at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:188)

    more of the stack trace was stopped for brevity.

    I've seen other posts related to this exception but no solid answers. I tried a few suggestions but nothing worked.

    If I remove the 3rd key I can insert a line, but on the second row, I get an error indicating that the primary key violation. It's like the page checks the constraints of the entity before the validation.

    Insert in this table works fine in the tester model.

    Thank you

    Dave

    And by LOV you mean: af:inputListOfValues?

    It usually works within the af: table if you VO with composite key.

    Maybe you can set ChangeEventPolicy = none on your iterator, but it will probably not help.

    Dario

  • Table tree - Select All child nodes at the same time when the Parent node is selected.

    Hi all

    I am relatively new to ADF and JDeveloper, and so I hit a problem I can't deny.

    I have a tree table that looks like the following...

    1 status | Name | Employee ID

    -> Status 2. Name | Employee ID | etc. | etc.

    -> 3 status. Name | Employee ID | etc. | etc. | etc.

    I want to do is when I select the node from top of the line/parent (line 1) page I would like child nodes (lines 2 and 3) to choose from in the same mouse clicks.

    In the end I will be citing a listener of the property on a button, once the selection was made, to change the value of the 'Status' column in all three levels that have been selected.

    NB. each level in the tree above is derived from 3 views distinct, who are joined on the employee ID.

    Thanks in advance for your help and your advice.

    Kind regards

    Jamie.

    Jamie, tell us your version of jdev, please!

    This http://andrejusb.blogspot.de/2012/11/check-box-support-in-adf-tree-table.html Blog shows how to implement this.

    Timo

  • com.sun.messaging.jmq.admin.apps.broker.BrokerCmd failed to get the exit code of the child.

    I use D:\MessageQueue4_5\mq\bin\imqcmd.exe to get heads of JMS queues. In most of the facilities, I can retrieve the results without problem.

    At a single facility, however, I get an error when you try to run this command. Called with no arguments, it should display a list of available commands. But that's what I get instead:

    D:\utilities\imqChk > d:\MessageQueue4_5\mq\bin\imqcmd.exe

    Boot process failed.

    Could not run

    Java

    -cp

    d:\MessageQueue4_5\mq\lib\imqadmin.jar;

    d:\MessageQueue4_5\mq\lib\fscontext.jar

    -Dimq.home=d:\MessageQueue4_5\mq

    -Dimq.etchome=d:\MessageQueue4_5\mq\... \etc\mq

    com.sun.messaging.jmq.admin.apps.broker.BrokerCmd failed to get the exit code of the child.

    Other info:

    • Java is installed (version 1.7.0_17).
    • QBrowser using, I can sign in successfully and retrieve information from queue.
    • All of the named files and jar files are where they are supposed to be within the meaning of the doce above.

    I was not able to locate the source of the problem. Any ideas would be greatly appreciated.

    Thank you.

    I had this same problem and solved by editing the file \glassfish3\mq\etc\imqenv.conf manually by setting IMQ_DEFAULT_JAVAHOME as follows:

    IMQ_DEFAULT_JAVAHOME = / Files/Java/jdk1.7.0_45 program

    Note the orientation of the slash. It's on Windows, and when I used with Windows style slash escape sequence, it does not solve this problem only when I used the mangled Unix style done.

    Hope this helps,

    -Noah

  • How to select only the last child nodes in a piece of XML via XMLTABLE?

    Hello

    I use Oracle 10.2.0.4.

    I have the following XML:
    with sd as (select xmltype('<Fruits>
                                  <Fruit>
                                    <FruitType>Apple</FruitType>
                                    <FruitSubtype>Granny Smith</FruitSubtype>
                                  </Fruit>
                                  <Fruit>
                                    <FruitType>Pear</FruitType>
                                    <FruitSubtype>Anjou</FruitSubtype>
                                  </Fruit>
                                  <Fruit>
                                    <FruitType>Pear</FruitType>
                                    <FruitSubtype>Comice</FruitSubtype>
                                  </Fruit>
                                  <Fruit>
                                    <FruitType>Plum</FruitType>
                                    <FruitSubtype>Victoria</FruitSubtype>
                                  </Fruit>
                                  <Fruit>
                                    <FruitType>Apple</FruitType>
                                    <FruitSubtype>Bramley</FruitSubtype>
                                  </Fruit>
                                </Fruits>') fruit_xml from dual)
    select *
    from   sd;
    and I want to choose the last child nodes where the FruitType is Apple or pear.

    So far, I've got:
    with sd as (select xmltype('<Fruits>
                                  <Fruit>
                                    <FruitType>Apple</FruitType>
                                    <FruitSubtype>Granny Smith</FruitSubtype>
                                  </Fruit>
                                  <Fruit>
                                    <FruitType>Pear</FruitType>
                                    <FruitSubtype>Anjou</FruitSubtype>
                                  </Fruit>
                                  <Fruit>
                                    <FruitType>Pear</FruitType>
                                    <FruitSubtype>Comice</FruitSubtype>
                                  </Fruit>
                                  <Fruit>
                                    <FruitType>Plum</FruitType>
                                    <FruitSubtype>Victoria</FruitSubtype>
                                  </Fruit>
                                  <Fruit>
                                    <FruitType>Apple</FruitType>
                                    <FruitSubtype>Bramley</FruitSubtype>
                                  </Fruit>
                                </Fruits>') fruit_xml from dual)
    select x.*
    from   sd,
           xmltable('//Fruits/Fruit[FruitType=''Apple'' or FruitType=''Pear'']'
                   passing sd.fruit_xml
                   columns fruit_type VARCHAR2(25) path '//FruitType',
                           fruit_subtype VARCHAR2(25) path '//FruitSubtype') x;
    
    FRUIT_TYPE                FRUIT_SUBTYPE
    ------------------------- -------------------------
    Apple                     Granny Smith
    Pear                      Anjou
    Pear                      Comice
    Apple                     Bramley
    but I just want to finish with the last child node by FruitType, for example:
    FRUIT_TYPE                FRUIT_SUBTYPE
    ------------------------- -------------------------
    Pear                      Comice
    Apple                     Bramley
    Is it possible to do through XMLTABLE, or I have to number each of the lines that results from (what I know how to do) and then create a group to prove XMLTABLE? The latter seems awkward to me, so I'd avoid it if possible, but if this is the way to go, I can do it.

    Thank you.

    Is it possible to do through XMLTABLE, or I have to number each of the lines that results from (what I know how to do) and then create a group to prove XMLTABLE?

    Indeed, it is a possible way:

    select x.fruit_type,
           min(fruit_subtype) keep(dense_rank last order by rn) as fruit_subtype
    from   sd,
           xmltable('/Fruits/Fruit'
                   passing sd.fruit_xml
                   columns fruit_type VARCHAR2(25) path 'FruitType',
                           fruit_subtype VARCHAR2(25) path 'FruitSubtype',
                           rn for ordinality) x
    where fruit_type in ('Apple','Pear')
    group by fruit_type
    ;
    

    Other options, should push the logic of consolidation in the XQuery:

    select x.*
    from sd,
         xmltable('/Fruits/Fruit[FruitType="Apple"][last()] |
                   /Fruits/Fruit[FruitType="Pear"][last()]'
                  passing sd.fruit_xml
                  columns fruit_type VARCHAR2(25) path 'FruitType',
                          fruit_subtype VARCHAR2(25) path 'FruitSubtype'
         ) x
    ;
    

    or,

    select x.*
    from   sd,
           xmltable('for $i in distinct-values(/Fruits/Fruit/FruitType)
                     return /Fruits/Fruit[FruitType=$i][last()]'
                   passing sd.fruit_xml
                   columns fruit_type VARCHAR2(25) path 'FruitType',
                           fruit_subtype VARCHAR2(25) path 'FruitSubtype'
                           ) x
    where x.fruit_type in ('Apple','Pear')
    ;
    

    or,

    select x.*
    from   sd,
           xmltable('/Fruits/Fruit[not(following-sibling::Fruit/FruitType=./FruitType)]'
                   passing sd.fruit_xml
                   columns fruit_type VARCHAR2(25) path 'FruitType',
                           fruit_subtype VARCHAR2(25) path 'FruitSubtype'
                           ) x
    where x.fruit_type in ('Apple','Pear')
    ;
    

    Edited by: odie_63 APR 17. 2012 17:56 - added latest example

  • How to get the node root for a child to help connect by front

    Hello

    I searched in many places to do that, but not able to get the exact o/p sp poster my question here.

    I have a table with columns parent_id, child_id and. This parent_child levels can be a lot, but my goal is to find the ultimate parent (do not know the right term)
    as if I have a = xyz child_node and its parent company = pqr and her parents = lmn, that might be the ultimate parent is not any other parent.

    So if I start with child_code = "xyz" then I should get the parent as "lmn" and not the immediate parent "pqr".

    Help, please.

    Thank you
    Aashish

    1. When you want to find all parents position = 100:

    SELECT position_id,parent_position_id
    FROM position
    where position_id = 100
    CONNECT BY prior position_id = parent_position_id
    

    2. When you want to find all childs position = 100:

    SELECT position_id,parent_position_id
    FROM position
    where position_id = 100
    CONNECT BY prior parent_position_id = position_id
    

    Kind regards
    Sayan M.

  • XML E4X nodes select based on the attribute of the child node.

    Hey,.

    I'm making a selection on the following XML code.

    I want to retrieve the list of the variable node when its child nodes metadata attribute 'name' is not equal to "transitional". I have read the documentation, but have not been able to solve this problem, and it should be pretty simple. So far, I tried with something like.

    variable var: XMLList = classInfo.variable. (the metadata. (@name! = "transitoire")) ;

    variable var: XMLList = classInfo.variable. (metadata.@name! = "transitional");

    But he returns all the nodes variable.

    "< name =" type com.sca.dataModel::PresentationDataEntity"base =" com.sca.dataModel::BaseEntity "isDynamic ="false"isFinal ="false"isStatic ="false">
    < extendsClass type="com.sca.dataModel::BaseEntity"/ >
    < extendsClass type = 'Object' / >
    < variable name = "subtitle" type = "string" >
    < name of metadata = "__go_to_definition_help" >
    < arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/PresentationDataEntity.as"/ >
    < arg key = "pos" value = "128" / >
    < / metadata >
    < / variable >
    < variable name = "id" type = "Number" >
    < name of metadata = "__go_to_definition_help" >
    < arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/BaseEntity.as"/ >
    < arg key = "pos" value = "153" / >
    < / metadata >
    < / variable >
    < variable name = "tableName" type = "String" >
    < name of metadata = "transitional" / >
    < name of metadata = "__go_to_definition_help" >
    < arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/BaseEntity.as"/ >
    < arg key = 'pos' value = '118' / >
    < / metadata >
    < / variable >
    < variable name = "db_SortAsc" type = "Boolean" >
    < name of metadata = "transitional" / >
    < name of metadata = "__go_to_definition_help" >
    < arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/BaseEntity.as"/ >
    < arg key = "pos" value = "281" / >
    < / metadata >
    < / variable >
    < variable name = "title" type = "String" >
    < name of metadata = "__go_to_definition_help" >
    < arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/PresentationDataEntity.as"/ >
    < arg key = "pos" value = "100" / >
    < / metadata >
    < / variable >
    < method name = "setData" declaredBy = "com.sca.dataModel::BaseEntity" returnType ="*" > "
    < parameter index = '1' type = 'Object' optional = "false" / >
    < name of metadata = "__go_to_definition_help" >
    < arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/BaseEntity.as"/ >
    < arg key = "pos" value = "330" / >
    < / metadata >
    < / method >
    < name of metadata = "__go_to_ctor_definition_help" >
    < arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/PresentationDataEntity.as"/ >
    < arg key = "pos" value = "167" / >
    < / metadata >
    < name of metadata = "__go_to_definition_help" >
    < arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/PresentationDataEntity.as"/ >
    < arg key = "pos" value = "42" / >
    < / metadata >
    < / type >

    Try classInfo.variable. ([email protected] (.indexOf("transient')) is

    (- 1).

  • Duplicate content XML child nodes

    Hi all

    I received below XML Developer example data and they need to load the data in table in the Oracle (10g) database.

    < table >

    < lines >

    < row >

    < CellCount > 3 < / CellCount >

    cells <>

    Tom John < cell > < / cell >

    < cell > [email protected] < / cell >

    < cell > 2013 - 08 - 30 12:20:37.0 < / cell >

    < / cells >

    < / row >

    < row >

    < CellCount > 3 < / CellCount >

    cells <>

    < cell > Micky Mouse < / cell >

    < cell > [email protected] < / cell >

    < cell > 2013 - 08 - 30 12:20:37.0 < / cell >

    < / cells >

    < / row >

    < / rows >

    < /table >

    But I had the problem because child node which is duplicated name and developer use a tool to generate only and cannot change the tag before sending to me.

    How can I do for this case?

    Thanks in advance.

    Hiko

    SELECT name, email, sign_date
    FROM XMLTable('/Table/Rows/Row/Cells'
      -- hard-coded XML as unsure where your data comes from
                  PASSING XMLTYPE('
      
       3
      
       John Tom
       [email protected]
       2013-08-30 12:20:37.0
       
       
       
      3
      
       Micky Mouse
       [email protected]
       2013-08-30 12:20:37.0
      
      
       
    ') COLUMNS name VARCHAR2(30) PATH 'Cell[1]', email VARCHAR2(30) PATH 'Cell[2]', sign_date VARCHAR2(22) PATH 'Cell[3]'); -- sign_date is neither a date nor a timestamp for Oracle default conversion so will need to to_date it yourself

    That should help you get started.  XMLTable was part of 10.2.0.1.  Are there opportunities to spend at least 10.2.0.5 just to pick up corrections of bugs/new features?

  • Read the column of XMLTYPE with Parent and several child nodes

    Hello

    I have an xmltype column which stores the data in the format below. There is possible that some of the parent node will have several child nodes. I'm not able to extract children nodes. Get the error as a value of type multiset... required singleton...
    I tried the sub query, but it returns only the records from parent with children nodes.

    < CrntRgstns >
    < CrntRgstn empStDt = '2000-08-21' Auth = 'ABCD' regCat = 'BM' u4FlngDt = '2011-05-12' stDt = '2011-11-08' st 'EMPTY' = actvReg = "N" updateTS = "2011-11 - 08T 00: 37:42" >
    < CrntDfcnys / >
    < / CrntRgstn >
    < CrntRgstn empStDt = '2000-08-21' Auth = 'ABCD' regCat = 'BM' u4FlngDt = '2012-01-13' stDt = '2012-01-13' st = 'DÉFICIENT' actvReg = 'Y' updateTS = "2012-01 - 13 T 18: 02:19" >
    < CrntDfcnys >
    < CrntDfcny dfcnyCd = "TEST" exmCd = "M10" createDt = "2012-01-13" / >
    < CrntDfcny dfcnyCd = "TEST" exmCd = "X 40" createDt = "2012-01-13" / >
    < / CrntDfcnys >
    < / CrntRgstn >
    < CrntRgstn empStDt = "2000-08-21" Auth = "XYZ" regCat = "SU" u4FlngDt = '2012-01-13' stDt = '2012-01-13' st = 'DÉFICIENT' actvReg = 'Y' updateTS = "2012-01 - 13 T 18: 02:19" >
    < CrntDfcnys >
    < CrntDfcny dfcnyCd = "TEST" exmCd = "M10" createDt = "2012-01-13" / >
    < CrntDfcny dfcnyCd = "TEST" exmCd = "X 40" createDt = "2012-01-13" / >
    < / CrntDfcnys >
    < / CrntRgstn >
    < / CrntRgstns >

    I tried to use 2 xmltable querys and using the child node of the xmltable 1 as input to xmltable 2. But it returns only the records that has child nodes. But I wanted all the records of CrntRgstn and if no child node CrntDfcnys so that also displays.

    Thank you
    Vinod K

    I tried to use 2 xmltable querys and using the child node of the xmltable 1 as input to xmltable 2. But it returns only the records that has child nodes.

    You're almost there, you just have to do an outer join:

    SQL> select x1.empStDt
      2       , x1.Auth
      3       , x1.regCat
      4       , x2.*
      5  from documents t
      6     , xmltable(
      7         '/CrntRgstns/CrntRgstn'
      8         passing t.xmldoc
      9         columns empStDt date         path '@empStDt'
     10               , Auth    varchar2(30) path '@Auth'
     11               , regCat  varchar2(2)  path '@regCat'
     12               , CrntDfcnys xmltype   path 'CrntDfcnys'
     13       ) (+) x1
     14     , xmltable(
     15         '/CrntDfcnys/CrntDfcny'
     16         passing x1.CrntDfcnys
     17         columns dfcnyCd  varchar2(30) path '@dfcnyCd'
     18               , exmCd    varchar2(3)  path '@exmCd'
     19               , createDt date         path '@createDt'
     20       ) (+) x2
     21  ;
    
    EMPSTDT     AUTH                           REGCAT DFCNYCD                        EXMCD CREATEDT
    ----------- ------------------------------ ------ ------------------------------ ----- -----------
    21/08/2000  ABCD                           BM
    21/08/2000  ABCD                           BM     EXAM                           M10   13/01/2012
    21/08/2000  ABCD                           BM     EXAM                           X40   13/01/2012
    21/08/2000  XYZ                            SU     EXAM                           M10   13/01/2012
    21/08/2000  XYZ                            SU     EXAM                           X40   13/01/2012
     
    

    Note: I have tested the above on 11.2.0.2 and it seems that there is a bug, if we add an outer join on the first XMLTable operator too.
    Normally, the first outer join is not necessary, in order to also test on your version without it.

  • AddNode cmd failed for the secondary node: internal error of AAM - agent could not start. : unknown error HA

    I'm testing paths to upgrade to vSphere ESX 3.5 update 4 on an IBM BladeCenter with 2 hs21 xm Server blades; I am going through several problems, and the last is the one mentioned in the subject of this thread.

    In this scenario, I've upgraded successfully vCenter then I took all the virtual machines on a single host esx 3.5, I removed the other host in the cluster, and then vcenter, then I did a new install of vSphere, I reconnected it the host to the cluster then I did all the procedure with the second node. In the end, I have two installed vSphere hosts but I had to disable my cluster HA always been, I get this error when I try to configure HA agents on the hosts, but I must say that the DRS ok works.

    In the release notes for vSphere, in the section known issues, I can read:

    "Upgrade of an ESX/ESXi 3.x host an ESX/ESXi 4.0 host results in a successful upgrade, but VMware HA reconfiguration may fail.

    When using vCenter Update Manager 4.0 to upgrade an ESX/ESXi 3.x ESX/ESXi 4.0 host, if the host part of an AP or DRS cluster, the update succeeds and the host is reconnected to vCenter Server, but HA reconfiguration may fail. The following error message in the summary of the host tab: HA agent has an error: cmd addnode failed for the main node: internal error of AAM - agent could not be started. : HA unknown error.

    Solution: manually reconfigure HA by right-clicking on the host and select Reconfigure for VMware HA. »

    The problem is that of workaround does not work for me, so I was wondering if someone, is once again able to help me with this problem.

    Thanks in advance for your support.

    Hi Caddo,

    I had the same problem with one of my hosts.  It was resolved after disabling HA on the cluster and enabling again.

    Mirko

  • Failed to get the status of printer/bizhub Konica Minolta C654e

    Failed to get the status of printer/bizhub Konica Minolta C654e

    Cannot print from my Mac.

    With the limited information you supplied I would check the configuration of the print queue. If you open information system (located under Applications > utilities), you will see a column on the left and if you select printers the right pane displays the print queue information. Note If you have multiple printers, you can select in the right upper pane to view its information in the bottom right pane. Can you copy this information and paste it here.

  • XML file - child nodes table

    Just starting to learn more about XML.

    I have a simple XML I created which is

    
    
    
    Ambient
    
    
    panel1
    
    
    panel2
    
    
    panel3
    
    
    

    Using the XML property - child results node table of nodes in a table of 9 elements:

    #text
    Probe
    #text
    Probe
    #text
    Probe
    #text
    Probe
    #text
    

    My question is what are all the #text that are there?  Should the child nodes be not just the probes?

    It seems to me you may be heading down a dark path.  Instead of using the "table of nodes child" and fighting through the unnecessary complications and text nodes, let me suggest you look at XPath and using "get all matched Nodes.vi ' or 'Get first match Node.vi' to get the items.  XPath allows parsing XML child's play.

    For example:

    Of course, I hope that you use XP does not mean you use LV8.6 or earlier since the XPath screws are new to LV9.

    If you use LV8.6 or earlier, I suggest looking in the .NET functions to implement XPath.  Once you get the hang of it, it still beats the attempt to parse XML the old-fashioned way.

    As for the editor, I generate very few XML files by hand, for the most part I bring other programs and analyse them in LV again, XPath adjusts the rough edges.

  • Using Merge in oracle 11g this error SQL Error: ORA-30926: failed to get a stable set of rows in the source tables

    whenever I run this code I get this error

    SQL Error: ORA-30926: failed to get a stable set of rows in the source tables

    30926 00000 - "impossible to get a stable set of rows in the source tables.

    * Cause: A stable set of rows could not be achieved due to the large dml

    activity or one not deterministic where clause.

    * Action: Remove any non deterministic of the clauses and reissue of the dml.

    Don't know wht goes wrong!


    SQL:

    MERGE IN VENDORS_ACTIVE_DATE s

    USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,

    NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.

    (case when ((d.VENDOR = s.VENDOR) and (d.COMPANY_CODE = s.COMPANY_CODE)))

    )

    then "MATCH".

    When d.COMPANY_CODE is null

    then 'DELETE '.

    When s.COMPANY_CODE is null

    then "INSERT."

    else 'UPDATE '.

    chck end)

    from (select * from VENDORS_ACTIVE_DATE where COMPANY_CODE = 2) s

    full outer join (select * provider where COMPANY_CODE = 2) d

    on (d.COMPANY_CODE = s.COMPANY_CODE AND s.COMPANY_CODE = 2)

    ) d

    WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.chck in ('UPDATE', 'GAME', 'DELETE'))

    WHEN MATCHED THEN

    UPDATE SET s.VENDOR = d.VENDOR

    WHERE d.chck in ('UPDATE', 'DELETE')

    DELETE WHERE d.chck = 'DELETE '.

    WHEN NOT MATCHED THEN

    INSERT (SELLER, COMPANY_CODE)

    VALUES (d.VENDOR, d.COMPANY_CODE)

    Work request: (deleted the duplicate data in tables (source and target))

    MERGE IN VENDORS_ACTIVE_DATE s

    USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,

    NVL (d.ACTIVEDATE, s.ACTIVEDATE) ACTIVEDATE.

    NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.

    (case when ((d.VENDOR = s.VENDOR))

    - AND D.ACTIVEDATE = S.ACTIVEDATE

    and NVL (d.ACTIVEDATE, trunc (sysdate)) = NVL (s.ACTIVEDATE, trunc (sysdate))

    and (d.COMPANY_CODE = s.COMPANY_CODE)

    )

    then "MATCH".

    When d.COMPANY_CODE is null

    then 'DELETE '.

    When s.COMPANY_CODE is null

    then "INSERT."

    else 'UPDATE '.

    chck end)

    from (select * from suppliers where COMPANY_CODE = 2) d

    full outer join (select * from vendors_active_date where COMPANY_CODE = 2) s

    on (d.COMPANY_CODE = s.COMPANY_CODE and s.vendor = d.vendor)

    ) d

    WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.VENDOR = s.VENDOR AND d.chck in ('UPDATE', 'GAME', 'DELETE'))

    WHEN MATCHED THEN

    S.ACTIVEDATE = UPDATE SET d.ACTIVEDATE

    WHERE d.chck in ('UPDATE', 'DELETE')

    DELETE WHERE d.chck = 'DELETE '.

    WHEN NOT MATCHED THEN

    INSERT (VENDOR, ACTIVEDATE, COMPANY_CODE)

    VALUES (d.VENDOR, d.ACTIVEDATE, d.COMPANY_CODE)

  • FUSION IN: ORA-30926: failed to get a stable set of rows in the source tables

    Hi all

    Database Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production 0

    PL/SQL Release 12.1.0.1.0 - Production 0

    CORE 12.1.0.1.0 Production 0

    AMT for 64-bit Windows: Version 12.1.0.1.0 - Production 0

    NLSRTL Version 12.1.0.1.0 - Production 0

    When you use the MERGE clause, if executed more than once, I get the below error

    ORA-30926: failed to get a stable set of rows in the source tables

    create table CBC (nums number, sname varchar2 (10))

    create tar (tnum number, tNom varchar2 (10)) table

    Insert in src values (1, 'a')

    Insert in src values (1, 'b')

    Insert in src values (2, "c")

    merge into tar

    using the CBC

    on (nums = tnum)

    when matched

    then

    update the value tNom = sname

    When not matched

    then

    Insert the values(snum,sname);

    What expect, it's that first time itself (when inserted), he must raise the error. But it's not.

    Select * from tar

    TNUM TNOM

    1 b

    1 a

    2 c

    But if we run for the second time it shows the error.

    I saw the document of the Oracle and he said

    MERGEis a deterministic statement. You cannot update the same row in the target table multiple times in the same MERGE statement.

    I've seen below cela son but failed to get the solution for this.

    MERGE STATEMENT ORA-30926: failed to get a stable set of lines in the source

    Nondeterministic fusion?

    Someone at - it make a clarification?

    I don't want to insert records into the first time itself. for example, to run the first time he must raise the error. can I do this using MERGE?

    Thank you

    Hello

    O - O wrote:

    Thanks knani, Frank.

    One more doubt.

    When you run the MERGE statement, the first time, there is no rows in the target table, so no rows in the target table is what it is.

    So we cannot perform below sqls using MERGE when the target table is empty?

    insert into tar values (1, 'a')

    updated tar tNom = 'b' set where tnum = 1

    insert into tar values (2, "c")

    Is - that means that the MERGER will be only works with validated data?

    Right; a MERGE statement will not update a line which has been previously inserted into the same MERGE statement.  All fact tables reference to the data in the tables by the time the MERGER began.

Maybe you are looking for