Leaf node Hierarchy based on tree position

Hi All,
I need to find the Hierarchy of given leaf node. Can you please help me. Here are details
create table t_rk_4 (child_id number, parent_id number, treenum varchar2(100));
insert into t_rk_4 values (2,1,'1');
insert into t_rk_4 values (3,1,'1');
insert into t_rk_4 values (6,2,'1.2');
insert into t_rk_4 values (7,6,'1.2.6');
insert into t_rk_4 values (4,3,'1.3');
insert into t_rk_4 values (5,4,'1.3.4');
insert into t_rk_4 values (7,5,'1.3.4.5');
insert into t_rk_4 values (8,7,'1.2.6.7');
insert into t_rk_4 values (4,9,'1.9');
insert into t_rk_4 values (9,1,'1');
In the above date, child 8's parent is 7 only in case if tree context 1.2.6.7
select child_id,parent_id connect_by_isleaf,level,lpad(' ',level*3)||a.child_id
from t_rk_4 a
start with child_id = 8 connect by child_id = prior parent_id ORDER SIBLINGS BY child_id;
when I run the above query I am getting all tree contexts,
Is there a way I can only get tree positins thru 1.2.6.7 ?
In real table I have more than 1 million records..
Any help would be helpful..
Thanks
ay.

Hi,
Welcome to the forum!
Thanks for posting the CREATE TABLE and INSERT statements! It clarifies things a lot and makes it much easier to reply.
Another very helpful thing is to post the results you want from the data you posted. In this case, I think you want:
. CHILD_ID  PARENT_ID CONNECT_BY_ISLEAF      LEVEL INDENTED
         8          7                 0          1    8
         7          6                 0          2       7
         6          2                 0          3          6
         2          1                 1          4             2Is that right?
Notice how multiple spaces are not compressed in the section above. That's because I typed {code} (all small letters, in curly brackets) before and after that section.
To get those results, I just added one line to your CONNECT BY clause, saying that the parent's treenum has to be the first part of the child's treenum:
SELECT     child_id
,     parent_id
,     CONNECT_BY_ISLEAF
,     LEVEL
,     LPAD (' ', LEVEL * 3) || a.child_id     AS indented
FROM     t_rk_4     a
START WITH     child_id = 8
CONNECT BY     PRIOR parent_id     = child_id
AND          PRIOR treenum     LIKE treenum || '.%'     -- *** NEW CONDITION ***
ORDER SIBLINGS BY     child_id;What do you want to do if the node you're starting with has two (or more) parents?
If we START WITH child_id = 7, the query above produces this output:
. CHILD_ID  PARENT_ID CONNECT_BY_ISLEAF      LEVEL INDENTED
         7          5                 0          1    7
         5          4                 0          2       5
         4          3                 0          3          4
         3          1                 1          4             3
         7          6                 0          1    7
         6          2                 0          2       6
         2          1                 1          3          2That is, there are two rows in the table with child_id = 7, so the query shows two lines of ascent. The alternate route, going through the node with child_id = 9, is not shown. Is that what you want?

Similar Messages

  • How to make the leaf node of the APEX tree downloadable

    Hi All,
    I am trying to build a "library" page for my application, with the documents as the leaf nodes of the tree. The documents come from a database table, and each document is a BLOB.
    My question is, how should I write the "link" part of the APEX tree query to make the lead node document downloadable for the end users?
    Thanks,
    Christine

    Hilary helped me out of this by creating a new form page with two new items there corresponding to the PK and BLOB column, then in the tree query use apex_util.get_blob_file_src function as the link. Below is the email from Hilary:
    1. Created Form, page 13, based upon your table storing the documents as BLOBs. The form page has just two associated items: P13_DOC and P13_DOC_ID. The item P13_DOC is of type FILE and contains a source type of DB column, which is the first required parameters of the function get_blob_file_src. NOTE: I could have created a form region on the same page as your tree, but chose to generate a separate page. You may choose to change this yourself.
    2. Updated the Tree query on pg 12 to use the following link for tree nodes of level 4:
    apex_util.get_blob_file_src('P13_DOC',v.attr3)
    ...where P13_DOC is the application page item mentioned in step 1 above, and v.attr3 should hold the unique ID associated with the document. Your tree now allows users to download the listed documents.

  • Displaying leaf nodes at the bottom of a tree that has parent nodes

    I have a problem in that - leaf nodes added to the tree at the bottom appear with big spaces (vertically) between them. It looks as if the nodes are somehow expanded by default!
    Is this a known issue with leaf nodes that are added in below parent nodes?
    I notice in the normal hierarchy the leaf nodes are displayed fine. Also if I return false on isleaf() it displays the last 3 nodes as expandable icons but they're still lage gaps between them.
    this is an example of what i'm getting
    Main �
    +Parent Node(expandable)
    |
    +Parent Node(expandable)
    |
    +Parent Node(expandable)
    |
    |
    |_leaf node (not expandable)
    |
    |
    |_leaf node (not expandable)
    |
    |
    |_leaf node (not expandable)

    You got my interest with your topic subject as I'm working on a library which simplifies the development with Swing trees. However everyone here except you knows nothing about your "anormal hierarchy" which creates you problem.
    Denis Krukovsky
    http://sourceforge.net/projects/dotuseful/

  • af:tree leaf nodes

    Is there a way to display leaf nodes in an <af:tree> differently, so that they don't look like they can be expanded?
    I'm using an <af:tree> component with an ADF tree binding. There's just one source collection, with a self-join (that is, the single accessor rule returns different elements from that collection).
    The problem is that every node in the tree is expandable, including the leaf nodes (that is, the ones with no children). When the user expands them, nothing happens except a change in the icon (as you might expect), but I'd rather not provide the icon at all, or provide a different icon, to discourage expansion.
    I actually have an attribute in my collection that can act as a discriminator--I happen to know that all and only rows with TypeIndicator="W" will have children. But my attempts to use the "polymorphic rule" functionality in the tree binding editor don't seem to work--it simply doesn't show any children of the top-level nodes at all.
    Help would be much appreciated.

    Mmm...sorta. Here's what I've done so far.
    I've created a class, let's call it CustomTreeModel, that extends the (abstract) class TreeModel. I've given it a private field:
    private final TreeModel mTree;and a constructor:
    public CustomTreeModel(TreeModel tree) {
        mTree = tree;
    }Then, I've overridden every method but one in TreeModel to delegate to mTree. For example:
    public void setRowIndex(int i) {
        mTree.setRowIndex(i);
    }The one exception is the method isContainer, which I've implemented this way:
    public boolean isContainer() {
        return (mTree.isContainer() && (! mTree.isContainerEmpty()));
    }The idea here is that the class wraps a tree, except that it claims that empty containers aren't containers at all (so they should be treated as leaves).
    Then, rather than bind my <af:tree> to #{bindings.MyTreeBinding.treeModel}, I bound it to #{myBackingBean.treeModelWrapper}, and created a backing bean with bean name myBackingBean. Here's what I did in the backing bean:
    1) Added a managed property, bindings, of type BindingContainer and value #{bindings}, and added a BindingContainer field, bindings, to the backing bean class.
    2) In the bean class, added a TreeModel field, treeModelWrapper.
    3) Changed the getter for treeModelWrapper so it looked like this (this is inexact, I don't have access to my code right now).
    public TreeModel getTreeModelWrapper() {
        Map myTreeBinding = (Map) getBindings().getControlBinding("MyTreeBinding");
        TreeModel oldTreeModel = (TreeModel) myTreeBinding.get("treeModel");
        return new CustomTreeModel(oldTreeModel);
    }That worked, inasmuch as the general structure of the tree looked about right, and leaf nodes showed up as leaf nodes.
    There are two problems with it. A little one and a big one.
    Little: It degrades performance significantly. Not surprising, since I assume isContainerEmpty() is a more resource-intensive method than isContainer(), and we're calling it a lot more often now. There's probably no way around this.
    Big: The data seems...a bit messed up. Most of it looks right, but I'm getting weird occasional spurious child nodes (meaning that occasionally a copy of a node is showing up in a container where it doesn't belong). Since the tree is based on a self-referential relationship, that occasionally leads to infinite loops (node A and node B show up inside one another, so you can just keep expanding downwards for ever). I can't for the life of me figure out why this is.

  • Hierarchy VIewer - Card only on Leaf nodes

    I am using version 11.1.2.3.0.
    Is there a way to show a Card only on the leaf nodes of the Hierarchy VIewer?
    I have information that only applies to the nodes on the very bottom of the tree.
    Thanks in advance.

    This should be possible.
    I've not tested this but you can use the rendered property of the panelCard component and set it to an EL which evaluates to false is the node has children (node.hasChildren? or some other data which lets you know if you want to show the card).
    If this does not work you leaf the rendered property as is and use the visible or rendered property of the component which holds the information you only want to show in leaf nodes.
    Timo

  • Hierarchy Leaf node does not display in F4 functionality

    Hello,
    Scenario:
    - profit center based hierarchy
    - user has access to only leaf nodes in that hierarchy.
    - authorisation works perfectly and displays only the correct values
    Problem:
    When we run the query in the portal and use the F4 functionality to select the profit center value nothing is displayed.
    This is ok for the particular case where one profit center needs to be accessed by the user since it is automatically filled out, but if that user has access to more than one profit centers this is a problem.
    System:
    BI7 BCS
    Support Package Stack 10 ABAP+Java
    SAP_BW is on SP11
    Please note that the profit center field is also not greyed out.  We raised an oss about this and SAP responded with "this is working as intended".  Thus the use is able to type the values into the profit center hierarchy box.

    Check whether you are filtering any level of the hierarchy when running this query? or you are using a hierarchy variable and defaulting it to certain level which doesnot show what you are looking at.
    Hope this helps you.

  • How to Find the node or leaf node selected in Tree UI element:

    Hi All,
    I have a tree structure with three level design. We have a button, which will perform some operation on the specific node or leaf node on every level.
    When we select any node or leaf node, we have action Onction getting called.  But what we want is that, after we select the node or leaf node,  we press a button below the tree design and perform some operation on the node selected.
    But how to get information that on Application , which node or leaf node has been slected ?
    Thanks
    PG

    Hi,
    Found the solution.
    Juts keep on reading all the nodes, system gives the complete path of the tree by using Lead selection and then we can use this path to peform the update operation on tree structure.
    Thanks alot for the hint.
    Regards
    PG

  • 'Hierarchy Based Login' and 'Direct Reports' field in Dim - Position table

    Hello -
    I am trying to build a "My Team's" report, which basically shows the logged in Managers ( and his subordinates) revenues rolled up by default. Then the manager needs to drilldown on his name and see revenues grouped by his direct reports. I am using OBIEE 10G. In the out of the box RPD, there are two fields in the BMM layer called 'Hierarchy Based Login' and 'Direct Reports'.
    1. The 'Hierarchy based Login' field uses the INDEXCOL method to get relevant column from the W_POSITION_DH table based on the the Logged in users hierarchy level (the hierarchy level is stored in a session variable (HIER_LEVEL). This session variable works fine and i have tested the SQL)
    2. The 'Direct Reports' is using the same INDEXCOL method, just that it uses the formula HIER_LEVEL - 1. This works fine as well.
    The issue i am facing is neither of these out-of-the-box fields are assigned to the Position dimension (the position dimension also exists OOTB).
    So basically, i am able to create a manager and his direct subordinate report, but without any drill functionality.
    I am trying to get the report to drill all the way down to the bottom most level of the heirarchy.
    Any help to get this working is much appreciated

    What i meant was neither of these out-of-the box fields are assigned to a Dimension Hierarchy ( there is a hierarchy called 'Position' that already exists out-of-the box). Other fields in the 'Dim-Position' table are assigned to a level in this position hierarchy, except these two. I guess what i am trying to achieve is to dynamically assign the hierarchy level based on the users Hierachy level in W_POSITION_DH table.
    Thanks for spending time to look into my issue

  • Copy Top node of a hierarchy to the leaf node of another - within dimension

    Hi,
    Scenario is, user uploads monthly data in the respective leaf nodes of Monthly Input hierarchy. But at a later stage user might want to adjust figures directly on the Annual level.
    For that matter I've got 2 hierarchies in Time Dimension, which look like as below:
    Monthly Input
    2007.TOTAL
    2007.Q4
    2007.Dec
    2007.Nov
    2007.Oct
    2007.Sep
    2006.TOTAL
    Annual Input
    xxxx.ANL
    2009.ANL
    2008.ANL
    2007.ANL
    I could think of two solutions:
    1- To upload monthly data directly into .ANL leaf nodes and add signed data values w.r.t. key dimensions and YEAR. Problem is Append functionality isn't available if you loading/importing data from flat file. Can guide me if, somehow, it is workable or not? 
    2- To copy the .TOTAL nodes to the respective member of  .ANL nodes (e.g. 2007.TOTAL to 2007.ANL). I'm not sure if it is possible or not?
    Many thanks in advance for more suggestions and earliest reply.
    Regards,
    Shabbar
    Edited by: Ali Shabbar on Jun 30, 2009 1:00 PM

    Hi Shabbar,
    If I was faced with the requirement to provide a means for allowing both monthly inputs and annual adjustments, I would use one hierarchy, rather than trying to sync signdata values between two hierarchies.  With the structure I've shown below, users could report on unadjusted values with 2007.YEAR, annual adjustments with 2007.ADJ or both with 2007.TOTAL.
    2007.TOTAL
    |
    |--2007.ADJ
       |--2007.ANL
    |
    |--2007.YEAR
       |--Q4
           |--2007.DEC
           |--2007.NOV
           |--2007.OCT
    Best regards,
    [Jeffrey Holdeman|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/jeffrey+holdeman]
    SAP BusinessObjects
    Enterprise Performance Management
    Regional Implementation Group

  • Regarding Leaf node indentation in tree

    Hi All,
    I need solution for indenting leaf nodes alone  in  Tree.
    regards,
    karthik

    Hi,
    Found the solution.
    Juts keep on reading all the nodes, system gives the complete path of the tree by using Lead selection and then we can use this path to peform the update operation on tree structure.
    Thanks alot for the hint.
    Regards
    PG

  • Alternate hierarchy with only the Leaf nodes

    Hi,
    I have an account hierarchy with multiple levels in it. Now I want to make an alternative hierarchy with only the leaf nodes of that hierarchy with using the same nodes. Can anyone please explain the steps how to do it.

    Unless you have any special requirements it will be straight forward, get an export of all the leaf members in an action script format and execute the INSERT action on your alternate hierarchy, you can create your alternate hierarchy with only the TOP node and insert the leaf members under it, in case you have thousands of them, you can split them by introducing dummy parents, also if you wish to maintain any local properties, please have them updated accordingly.

  • Retrieve Hierarchy Leaf Node using API.

    Hello All,
      Is there a way to search in the Hierarchy Lookup table only on it leaf node.
    Example.
    I have a Hierarchy structure
    Americas
       I
       ___ North America
                        I
                        _____ United States and Virgin Island
                                                          I
                                                          ______ United States,US,USA.
    For the above structure if i search by "United States" and put in CONTAINS as a constrain then, i need to retrieve only "United Stated,US,USA". Is there a Java API, to do this search.
    Thanks,
    Priya.

    Hi Priya,
    yes there is API Command available for retrieving the Hierarchy elements.
    All you need is the Record ID of the selected innermost leaf noe that you can get by performing a search.
    Once you get his record ID for the innermost leaf node, you need to use the RetrieveHierAncestors Command to get the Values for the parent of the leaf node.
    Documentation is avaible at: [http://help.sap.com/javadocs/MDM/SP06/com/sap/mdm/data/commands/RetrieveHierAncestorsCommand.html]
    Hope his helps!!
    Cheers,
    Arafat

  • APEX Tree.  Keep focus on expanded leaf node.

    How do I prevent my tree from jumping back to the top when I expand a leav node that is below the screen scroll. I have a single parent of CORP with about 30 leaf nodes as its direct children. I have to scroll down to expand a node towards the bottom of the list. When I scroll down and expand, the page refreshes and jumps back to the top so now I have to scroll down again to expand the next node, etc. My current Tree Qurey is like
    select CHILD_ID id,
    PARENT_ID pid,
    CASE WHEN CHILD_ID = :P23_TARGET THEN
    CASE WHEN :P23_STATUS = 'Target Up' THEN
    '<span styl="color:green;">' || ITEM_NAME || '</span>'
    ELSE ITEM_NAME
    END
    ELSE
    ITEM_NAME
    END name,
    'f?p=&APP_ID.:23:'||:SESSION||'::NO::P23_TARGET:'||CHILD_ID link,
    null a1,
    null a2
    from CORP_SVR_HRCHY_VW

    Hi,
    You have to use the Anchor ID functionality of a browser - this allows you to add #id to the end of the url where id refers to the id attribute of the item that should receive the focus when the page is reloaded.
    As an example: [http://apex.oracle.com/pls/otn/f?p=33642:200]
    This, of course, requires a bit of setting up, but is easily doable.
    For this example, my SQL statement for the tree is:
    SELECT 1 ID, NULL PID, 'Top' NAME, NULL LINK, NULL A1, NULL A2 FROM DUAL
    UNION ALL
    select "EMPNO" id,
           1 pid,
           "ENAME" name,
           'f?p=' || :APP_ID || ':200:' || :APP_SESSION || '::::P200_EMPNO:' || EMPNO || '#node' || EMPNO link,
           'node' || EMPNO a1,
           null a2
    from "#OWNER#"."EMP"You will note that the URL contains *'#node' || EMPNO* at the end of the link - for an EMPNO of 1234, this would add *#node1234* to the end of the URL. You will also note that I've added *'node' || EMPNO* to the A1 column - whatever I add into this column becomes available for use in the output by referencing it as #A1# in the template. On the tree's template definition, wherever there is an A tag, I've included:
    ID="#A1#"as an attribute of the tag. For example, on the "Name Link Anchor Tag" setting, I have:
    &lt;a href="#LINK#" ID="#A1#"&gt;#NAME#&lt;/a&gt;and, wherever #A1# appeared outside of an A tag, I have removed it (otherwise, the "node1234" text would appear at that point in the page).
    Andy

  • Populate a canvas when a tree-leaf node is clicked

    I'm trying to populate a canvas or a list container with
    images when a tree-leaf node is clicked. I got the tree control
    working alright so far (populated via an external XML) but I'm
    having a hard time figuring out how to populate the adjacent
    container when a leaf node from a tree is clicked by a user. I know
    I'm supposed to code this in the 'change' event but am having a
    difficult time trying to figure out how to do this. I looked at the
    source code in some of the sample apps but I couldn't find anything
    that resemble what I'm trying to do.
    Since each leaf node would be unique, each one of them would
    trigger an external load of images (via http service) ... and so
    the url would be unique as well for each.
    'Appreciate the help from anyone who could help.
    Thanks.

    Thanks for the quick response Tracy ...
    Actually, I don't have mage load part coded yet :) ... I do
    have a somewhat general idea on how it should be coded though (i
    think, hehe). I'm thinking the selected item in the leaf node would
    have the data for the 'url' or 'folder location' of the images that
    would have to be retrieved and displayed in the canvas. I'm just
    not sure how to go about diplaying them in the canvas. Do I have to
    load them in some sort of array first and then datasourced it for
    my canvas? Not really sure how to go about doing it ... 'am totally
    newbie with Flex and just learning it by going through the online
    help and looking at the codes on some of the sample apps.
    Thanks again.
    pixelflip

  • Tree's leaf node as commandLink throws up error

    Hello,
    I have a tree component in a .jsff. This tree has its leaf node as a af:commandlink. The command link component has an actionListener and action methods configured. When a leaf node is clicked for the first time we are seeing an ADF Faces message that there is a NPE turning up. The messages in the logs are
    WARNING: ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase APPLY_REQUEST_VALUES 2
    Throwable occurred: javax.el.ELException: java.lang.NullPointerException
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
    Caused by: java.lang.NullPointerException
         at oracle.adf.model.binding.DCBindingContainer.callAfterRowNavigated(DCBindingContainer.java:2542)
         at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.internalSetCurrentRow(JUCtrlHierNodeBinding.java:591)
         at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.internalSetCurrentRow(JUCtrlHierNodeBinding.java:558)
    Upon clicking the OK button, the navigation continues fine; indicating that the actionListener and the action methods are fine. I have confirmed this with diagnostic messages in the server logs(thanks ADF Logging!)
    Subsequent clicks on the same or other leaf nodes do not throw this error.
    Has anyone seen this kind of behaviour or could anyone help me understand what is going wrong.
    Thanks in advance.
    Nachi

    Just an update, enabled logging on the adfinternal classes to see the following in the log files.
    [2013-03-20T13:47:28.983+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: popContextChange] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] Context change about to be be popped. Current stack size: 1
    [2013-03-20T13:47:28.983+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.controller.util.LogUtils] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: stopCurrentEvent] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.util.LogUtils] TimedEvent Stack is empty!
    [2013-03-20T13:47:28.984+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: pushContextChange] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] Context change about to be pushed. Current stack size: 0
    [2013-03-20T13:47:28.984+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: pushContextChange] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] Context change about to be pushed. Current stack size: 1
    [2013-03-20T13:47:28.984+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: popContextChange] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] Context change about to be be popped. Current stack size: 2
    [2013-03-20T13:47:28.985+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: popContextChange] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] Context change about to be be popped. Current stack size: 1
    [2013-03-20T13:47:28.985+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for public listener 'oracle.adf.controller.internal.debug.AdfLifecycleBreakpointFacadeFwk'.
    [2013-03-20T13:47:28.985+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.view.faces.activedata.FacesBindingRewiringListener'.
    [2013-03-20T13:47:28.986+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.controller.application.model.SaveStateTokenListener'.
    [2013-03-20T13:47:28.986+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.controller.application.model.DispatchContextualEventListener'.
    [2013-03-20T13:47:28.986+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.controller.application.model.UpdateBindingListener'.
    [2013-03-20T13:47:28.986+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.controller.debug.ActivityBreakpointFacadeImpl'.
    [2013-03-20T13:47:28.987+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.controller.application.SaveStateListener'.
    [2013-03-20T13:47:28.987+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.controller.application.NewWindowStateListener'.
    [2013-03-20T13:47:28.987+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.controller.application.PageParameterPagePhaseListener'.
    [2013-03-20T13:47:28.988+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.controller.application.SyncNavigationStateListener'.
    [2013-03-20T13:47:28.988+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.controller.util.LogUtils] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: stopCurrentEvent] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.util.LogUtils] TimedEvent Stack is empty!
    [2013-03-20T13:47:28.988+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.controller.engine.ControlFlowEngine] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: handleException] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.engine.ControlFlowEngine] ADFc: Handling exception [java.lang.NullPointerException]
    [2013-03-20T13:47:28.988+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.controller.engine.ControlFlowEngine] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: handleException] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.engine.ControlFlowEngine] ADFc: No exception handler found.
    [2013-03-20T13:47:28.989+00:00] [WC_CustomPortal_2] [WARNING] [] [oracle.adfinternal.view.faces.lifecycle.LifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [URI: /jlpportal/faces/navigator] ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase APPLY_REQUEST_VALUES 2[[
    javax.el.ELException: java.lang.NullPointerException
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1300)
         at org.apache.myfaces.trinidad.component.UIXTree.broadcast(UIXTree.java:225)
         at oracle.adf.view.rich.component.rich.data.RichTree.broadcast(RichTree.java:248)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
         at org.apache.myfaces.trinidad.component.UIXTree.broadcast(UIXTree.java:232)
         at oracle.adf.view.rich.component.rich.data.RichTree.broadcast(RichTree.java:248)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:902)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:357)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.wls.filter.SSOSessionSynchronizationFilter.doFilter(SSOSessionSynchronizationFilter.java:276)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:75)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at xxjlp.oracle.apps.por.portal.filter.XXJLPIECompatibilityOverrideFilter.doFilter(XXJLPIECompatibilityOverrideFilter.java:39)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at xxjlp.oracle.apps.por.portal.filter.XXJLPCustomFacesFilter.doFilter(XXJLPCustomFacesFilter.java:424)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:151)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(AccessController.java:284)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1459)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.NullPointerException
         at oracle.adf.model.binding.DCBindingContainer.callAfterRowNavigated(DCBindingContainer.java:2542)
         at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.internalSetCurrentRow(JUCtrlHierNodeBinding.java:591)
         at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.internalSetCurrentRow(JUCtrlHierNodeBinding.java:558)
         at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.syncCurrentRow(JUCtrlHierNodeBinding.java:529)
         at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.setRowAsCurrentOnTargetIterator(JUCtrlHierNodeBinding.java:543)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding.setRowAsCurrentOnTargetIterator(FacesCtrlHierNodeBinding.java:129)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.makeCurrent(FacesCtrlHierBinding.java:488)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
         at java.lang.reflect.Method.invoke(Method.java:611)
         ... 75 more
    Appreciate any help on this one. thanks!

Maybe you are looking for