ADF af:panelSplitter binding in threeColumnTemplate NullPointerException

Oracle Fusion ADF - Accessing ADF af:panelSplitter binding in threeColumnTemplate NullPointerException
Hi,
when using the template containing panel splitter binding to backing bean panelSpliterRightShoppingCart a RichPanelSplitter,
when clicking on a command button, the action throws a NullPointerException. Any ideas as to why the component is NULL on
a fully rendered page? I want to be able to set the collapsed attribute to true or false and of course see that state in the browser view, Thanks...
<af:panelSplitter collapsed="false" binding="#{backingBeanScope.backing_jsp_myDetails.panelSpliterRightShoppingCart}"
orientation="horizontal"
splitterPosition="#{attrs.endColumnSize}"
positionedFromEnd="true" id="panelSpliterRightCart">
<f:facet name="first">
<!-- start of main decoration -->
<af:decorativeBox theme="default" id="pt_db2">
<f:facet name="center">
<af:facetRef facetName="center"/>
</f:facet>
</af:decorativeBox>
<!-- end of main decoration -->
</f:facet>
<f:facet name="second">
<af:facetRef facetName="end"/>
</f:facet>
</af:panelSplitter>
Edited by: meet.mrnrg on Sep 1, 2009 12:05 PM

Yes - the problem is with the current limitations on the level of EL expression language capabilities on the EL expression enabled attributes of various tags.
1) The Oracle Fusion Expression - BUILDER - currently only allows the following operations;
#{&&} #{||} #{>} #{<} #{>=} #{<=} #{==} #{!=} #{-} #{!} #{+} #{-} #{*} #{} #{%}
2) The Oracle Fusion Expression - BUILDER - currently DOES NOT allow;
a) access to public methods
b) access to public methods of any return type
c) access to public methods with any parameter lists
-- My Problem --
<af:pageTemplate viewId="/templates/threeColumnTemplate.jspx"> -- This is the template with the following;
The code:
af:panelSplitter collapsed="false" binding="#{backingBeanScope.backing_jsp_myDetails.panelSpliterRightShoppingCart}"
a) This binding attribute as a valid EL expression, the page compiles with no-errors.
b) The backing bean and the field attribute exist
c) The filed attribute of type RichPanelSplitter - it has setter and getter methods.
d) The code: The if check removes the NullPointerException, but does not explain why the field data member is not populated, it show not be NULL, all other Richxxx types are populated with valid page object references.
public void collapseExpandRightCartPanelSplitter() {
System.out.println("collapseExpandRightCartPanelSplitter: " + "collapseExpandRightCartPanelSplitter()");
System.out.println("panelSpliterRightShoppingCart: " + panelSpliterRightShoppingCart);
if (this.panelSpliterRightShoppingCart != null) { //Removes NullPointerException
if (this.panelSpliterRightShoppingCart.isRendered()) {
this.panelSpliterRightShoppingCart.setCollapsed(false);
} else {
this.panelSpliterRightShoppingCart.setCollapsed(true);
e) The main JSPX page calls the template and has a RichCommandButton - this button has an action which invokes the collapseExpandRightCartPanelSplitter() method in the backing bean! But of course as mentioned the field data member is not populated and is always NULL for some reason!

Similar Messages

  • Portlet unavailab: oracle.adf.model.portlet.binding.PortletBindingException

    I've created a webcenter page with a omni portlet on it. Configuring this portlet for the first time is OK. However customizing this same portlet later on will always give me the portlet unavailable error, together with this stacktrace.
    SEVERE: oracle.adf.model.portlet.binding.PortletBindingException: Portletmodus 5 kan niet worden ingesteld voor portletbinding OmniPortlet1_1., Please check the privileges before executing this operation
    at oracle.adfinternal.view.faces.renderkit.html.portlet.ADFPortletServlet.process(ADFPortletServlet.java:473)
    at oracle.adfinternal.view.faces.renderkit.html.portlet.ADFPortletServlet.process(ADFPortletServlet.java:343)
    at oracle.adfinternal.view.faces.renderkit.html.portlet.ADFPortletServlet.doGet(ADFPortletServlet.java:315)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    My OS is Windows XP SP2.
    Help needs.
    Thanks.

    Hi,
    Thanks for the quick reply.
    - is your portlet container running? -- YES
    - do you run your consuming application from JDev? If so, is the proxy setting turned off, or having your localhost and IP as an exception? -- Im consuming it from jdev only and proxy is turned off.
    - if running as a deployed application, is there a firewall between consumer and provider? - It is delployed in my machine only.
    My application is Event Based Calendar, i have 2 dropdowns to select the month, & year also a button. when i click on the button i'm getting the following response in the browser
    "Unable to process portlet action for portlet binding Event4_1"

  • ADF - ViewObject (with Bind Variable) Bind to Table- JDeveloper 10.1.3 EA

    Hi all,
    1.- This is the situation:
    In JDeveloper 10g 10.1.3 EA I have two JSP JSF Pages with bind automatically coponents (backing bean).
    - In the first page I can select a value from a list. Then, when I press the "Accept" ADF Command Button, the selected value is stored in a property called "rutEntidad" of a Session Managed Bean and the Flow Control is passed to the second page.
    - In the second page I have an ADF Table (called tablePolizas) bind to a ViewObject (I drop the ViewObject from the Data Control Palette to the Page - ADF Read-Only Table ). The ViewObject has a Bind Variable called RUT_ENTIDAD. When this page is loaded, value in the rutEntidad property of Session Managed Bean is passed to the ViewObject in order the ADF Table show filtered data . Also in this page there is a "back" ADF Command Button to the first page. The filter mechanism is performed in the getTablePolizas method in the backing bean of the second page, like this:
    //**** The backing bean of the second page *****
    package cl.bicevida.view.backing;
    public class CrearUsuario {
    private CoreTable tablePolizas;
    public CoreTable getTablePolizas() {
    DCBindingContainer dcbc;
    DCControlBinding cb;
    String rutEntidad;
    FacesContext ctx =FacesContext.getCurrentInstance();
    ValueBinding vb =
    ctx.getApplication().createValueBinding("#{SessionManager.rutEntidad}");
    rutEntidad = vb.getValue(ctx).toString();
    dcbc = this.getBindingContainer();
    cb = dcbc.findCtrlBinding("VoPolizasAsociadasEntidadExterna1");
    ViewObject vo = cb.getViewObject();
    vo.setNamedWhereClauseParam("RUT_ENTIDAD", rutEntidad);
    vo.executeQuery();
    return tablePolizas;
    2.- And this is the problem:
    The first time all works fine... then I press the "back" ADF Command Button to the first page (and NOT the back button of the browser). The second time, if the numbers of rows returned by the ViewObject is different than the first time, the application throws this message (but not crash):
    validation - JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[1 ]
    validation - JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[1 ]
    Well, I had read the "Generic Approach for Back-Button-Friendly Web Rowset Paging" article of Steve Muench in http://www.oracle.com/technology/products/jdev/tips/muench/paging/index.html
    but I think here have another problem.
    3.- The questions:
    Which is the cause of this problem?
    How I can solve it?
    What another way I can programmatic pass a parameter to a ViewObject connected to a table?
    Thanks!!!

    Another thing: the used strategy to obtain a binding container is explained by Steve Muench http://www.oracle.com/technology/products/jdev/tips/muench/1013eabinding/index.html:
    Next, you can use JDeveloper's Overview tab of the faces-config.xml file editor to configure a managed property. Define the managed property name as bindingContainer to match the property in your bean, and set the class to the fully-qualified name of the DCBindingContainer class. You can use the (Browse...) button to quickly locate the class using the new JDeveloper 10.1.3 class browser. Just type in the first few letters of the DCBindingContainer name, and then select the class. Edit the new managed property and set its Value to the JSF EL expression: #{bindings}.
    ************************

  • ADF Task Flow Binding - Refresh ifNeeded being invoked even WITHOUT any Parameter change

    Using JDeveloper 11.1.1.6.0
    Issue: Task Flow Binding property "refresh = ifNeeded" seems to be triggered even without the mutation of the input parameter.
    As per definition, "ifNeeded: refresh the ADF Region if the value of a task flow binding parameter changes." (Reference: 17.5 Refreshing an ADF Region)
    Now for the setup which reproduces the issue.
    I'll focus at the fragment bounded task flow level and will skip the jspx side.
    taskflow: main-flow.xml
    contains a single fragment mainFgmt.jsff
    has a managed bean defined SampleBean.java as pageFlow scope.
    taskflow: sub-flow.xml
    contains a single fragment subFgmt.jsff
    has an inputParameter SampleBean.java (because it is an input parameter, by default it will be at pageFlow scope)
    !important - has a nested taskflow (task flow call as defined in the component pallete) called inner-flow (see below)
    the nested taskflow is the default activity
    the nested taskflow has an outcome pointing to subFgmt where outcome = "return"
    taskflow: inner-flow.xml
    contains a single fragment called stop.jsff
    has a return activity without outcome = "return"
    stop.jsff has a navigation pointing to the outcome.
    Finally mainFgmt.jsff has a task flow binding (pageDef)
    with id = "sub-flow.xml"
    refresh = "ifNeeded"
    parameter SampleBean being submitted as sub-flow's input parameter. (id=sampleBean, value=#{pageFlowScope.mainSampleBean})
    Assume that code compiles.
    In this scenario where the only tricky condition is the inner nesting (defined by !important), when the inner nesting decides to invoke its outcome to visit sub-flow's fragment, mainFgmt is restarting its taskflow which makes sub-flow start over again.
    Another way of saying it is, if sub-flow starts a nested activity and that nested activity exits out to utilize sub-flow's view. The high level definition which is mainFgmt's refresh ifNeeded is restarting sub-flow.
    In the above example if you notice, the bean (SampleBean) is not really being utilized except that it is completing the purpose of refresh=ifNeeded. This scenario is only to simplify the setup - in practical use this bean will be mutated to be utilized as a refresh mechanism.
    Now interestingly, if I change the pattern a bit then the issue will not happen:
    Don't use the nested taskflow (inner-flow) as the default activity, let a fragment of sub-flow hold the initial view.
    Navigate to the nested flow.
    Exit nested flow.
    Everything works.
    Now in this scenario, it seems like the sub-flow needs to have a view established first for it to be properly be used.
    So my questions are as follows:
    Can I consider the behavior of the refresh=ifNeeded as a bug in this usecase?
    Would it be better to utilize a different way of refreshing (maybe combination of refresh condition) to get around the issue?
    Is the use of the task flow as defined logical or does it cross any boundary or best practice that might be causing this behavior?

    Hi,
    actually you lost me in your description due to complexity. I lived under assumption that sub-flow already is a region on a view in main flow, but then you sad that
    "!important - has a nested taskflow (task flow call as defined in the component pallete) called inner-flow (see below)"
    which then confused me as to I have no idea if inner flow now is the second level nesting or first level nesting (should be second level nesting). If sub-flow is a region then having "has an inputParameter SampleBean.java (because it is an input parameter, by default it will be at pageFlow scope)"  is an unnecessary broad scope because the region wont live longer than view scope.
    Anyway, it seems that a region refresh is triggered by the lifecycle involved, which can be by design or a bug. I suggest you file a Service Request with support and provide a test case as purely from the description, its hard to parse and understand what is going on.
    Frank

  • Why does this select binding throw a NullPointerException?

    This should be pretty simple.  The javadoc for Bindings#selectString says:
    Creates a binding used to get a member, such as a.b.c. The value of the binding will be c, or "" if c could not be reached (due to b not having a c property, b being null, or c not being a String etc.).
    Running this example:
    import javafx.beans.binding.Bindings;
    import javafx.beans.binding.StringBinding;
    import javafx.beans.property.*;
    public class SelectBindingExample {
        public static void main(String[] args) {
            ParentModel parentModel = new ParentModel();
            StringBinding bindingA = createBinding(parentModel);
            String nameA = bindingA.get(); // NPE while evaluating
            System.out.println("Bound value is " + (nameA != null ? nameA : "null") + ".");
            parentModel.setChildModel(new ChildModel());
            StringBinding bindingB = createBinding(parentModel);
            String nameB = bindingB.get();
            System.out.println("Bound value is " + (nameB != null ? nameB : "null") + ".");
        private static StringBinding createBinding(ParentModel parentModel) {
            return Bindings.selectString(parentModel.childModelProperty(), "name");
        public static class ParentModel {
            private final ObjectProperty<ChildModel> childModel = new SimpleObjectProperty<>();
            public final ReadOnlyObjectProperty<ChildModel> childModelProperty() {return childModel;}
            public final ChildModel getChildModel() {return childModel.get();}
            public final void setChildModel(ChildModel childModel) {this.childModel.set(childModel);}
        public static class ChildModel {
            private final StringProperty name = new SimpleStringProperty("Child Model Name");
            public final ReadOnlyStringProperty nameProperty() {return name;}
            public final String getName() {return name.get();}
            protected final void setName(String name) {this.name.set(name);}
    ..causes a NPE while evaluating the binding:
    WARNING: Exception while evaluating select-binding [name]
    Jan 24, 2014 7:10:57 AM com.sun.javafx.binding.SelectBinding$SelectBindingHelper getObservableValue
    INFO: Property 'name' in ReadOnlyObjectProperty [bean: SelectBindingExample$ParentModel@4437c4, name: childModel, value: null] is null
    java.lang.NullPointerException
      at com.sun.javafx.binding.SelectBinding$SelectBindingHelper.getObservableValue(SelectBinding.java:481)
      at com.sun.javafx.binding.SelectBinding$AsString.computeValue(SelectBinding.java:394)
      at javafx.beans.binding.StringBinding.get(StringBinding.java:152)
      at SelectBindingExample.main(SelectBindingExample.java:9)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
    What's going wrong here?  I've updated the example to work with the Bindings#selectString method from Java 7 and things work as expected.  Is this a bug?
    Slight modification to the example so it works with Java 7.

    An additional thought, though.
    This suggests (implies, I think) that Bindings.selectString(...) is using try-catch structures to process the logic of stepping through the properties and evaluating the result. In pseudocode, something like
    public static StringBinding selectString(ObservableValue<?> root, String... steps) {
       try {
        ObservableValue<?> ov = root ;
        for (String step : steps) {
           ov = findObservableValue(ov, step);
        return (String) ov.getValue();
      } catch (NullPointerException | ClassCastException exc) {
       // display horrible warning
       return "" ;
    Apart from the unnecessary warning (because the state that's being warned about is supported, according to the spec), this is a very inefficient implementation, and it wouldn't be too hard, for example, to come up with scenarios where this made table sorting of the order of 100 times slower than it should be. (See this for a similar example, which is now fixed.) It is probably worth verifying this, and filing a JIRA if true.

  • ADF JSF data binding: why state maintained between requests?

    Dear All,
    i want to know when and how the state of jsf can be maintain automatically by
    adf model.
    i have 2 pages, pageA.jspx and pageB.jspx. in pageA.jspx show some data in
    datatable (bound to methodIterator), when it go to pageB.jspx from pageA.jspx
    and then back to pageA.jspx, the state of the pageA.jspx seems can be stored
    by adf somewhere else.
    i.e. (pageA.jspx -> pageB.jspx -> pageA.jspx)
    ****all the backing beans are request scope.
    according to the adf dev guide, only the the page binding data for the current page will maintain automatically, then why when pageA.jspx's state is stored ?
    do adf store the state in session?? when can i rely on this nature to avoid reload
    pageA.jspx's data?? or how can i clear the state of pageA.jspx (blank page) (return from pageB.jspx)??
    the adf developer guide seems with little information about the page/binding data
    management..where can i found more information about this??
    thank you
    lsp

    Hi,
    i am using EJB + JSF + adf model.
    in this case its the iterator that survives the page navigationdo you mean that all iterator(method/variable..etc) can survive between page navigation??
    You can decide to refresh the iterator on each page load or re-execute the query if
    you don't want this.i want to 'clear' the iterator's data, but not to re-execute/refresh it to get data
    (as this will cause the underlying methodAction be executed once more)..i just want, say
    to display a 'blank' page, say blank pageA.jspx.
    IS THERE ANY REFENENCE document that describe the detail behavior..
    1. when state maintain?
    e.g. case 1 pageA->pageB->pageA->pageB (pageB's state maintained?)
    e.g. case 2 pageA->pageB->pageC->pageA (pageA's state maintained?)
    2. how do the state maintained??
    the iterators are stored in the session or store in the request (e.g. serialized in
    hidden input..etc)? will it lead to large memory usage in server side (until session
    end)?
    i can't find information about the state managementin
    the adf developer guide (not adf bc)..
    could you please point out where can i found these info??
    thank you.
    lsp
    Message was edited by:
    lsp
    Message was edited by:
    lsp
    Message was edited by:
    lsp

  • Bug: ADF BC VO bind variable attr editor control hints

    Hi JDev team
    Under JDev 11g TP, for an ADF BC VO "existing" bind variable in the VO editor, if you double click on the variable, and in the bind variable editor change any of the control hints, press ok, on returning to the bind variable control hints in the editor, your changes have disappeared.
    Regards,
    CM.

    Hi ,
    I like to fill the date properties of a data variable what do I need to do tow make it work , do I need to edit the vo.xml or do I make a resourcebundle
    thanks

  • OBIEE Integration with ADF - Reports with bind variables

    Hi,
    I've managed to integrate obiee with ADF by following the steps described in:
    http://www.oracle.com/technetwork/middleware/bi-publisher/adf-bip-ucm-integration-179699.pdf
    This is all fine and all but what about reports with complex queries where bind variables are needed?
    In short I need to send specific values from ADF application as parameters to the query of the report before building it, then create it and download the file as pdf.
    I don't have problems with building the file and downloading it when the query in the report has no bind variables, but when it does I do not know how to send them to the report.
    I can't seem to find such an implementation or example anywhere and I am stuck.
    Could anyone please point me in the right direction, eighter by providing a solution, or a link to such an example?
    Thank you!
    P.S.
    I'm using OBIEE 11.1.1.6.0 and JDeveloper 11.1.2.1.0
    Mihai Cornean
    Edited by: 885382 on Apr 11, 2013 11:10 PM

    Hi,
    try the BI Publisher forum for question towards this product BI Publisher
    Frank

  • ADF BC / Why bind variables are mandatory in the sql query

    I got this error during view object excecution in the component browser :
    (oracle.jbo.SQLStmtException) JBO-27122: Erreur SQL lors de la préparation d'une instruction. Instruction : SELECT * FROM (Select distinct(socialgroup.socialgroup_i) from socialgroup, socialgroupmember, lodgingallocation, lodge
    where socialgroup.socialgroup_i = socialgroupmember.socialgroup_i and socialgroupmember.t_socialgrouprole_i = t_rolegroup_ipar.fgetflextypologyclassitem_i(t_rolegroup_ipar.fisbeneficiary) and socialgroupmember.datefrom <= :DateTo and nvl(socialgroupmember.dateto, :DateFrom) >= :DateFrom and socialgroupmember.requester_i = lodgingallocation.requester_i and lodgingallocation.datefrom <= :DateTo and nvl(lodgingAllocation.DateTo, :DateFrom) >= :DateFrom and lodgingallocation.lodge_i = lodge.lodge_i) QRSLT ORDER BY "SOCIALGROUP_I"
    ----- LEVEL 1: DETAIL 0-----
    (java.sql.SQLException) Tentative de définition d'un nom de paramètre qui ne se trouve pas dans le SQL: T_SICategory_I
    The bind variables T_SICategory_I is not yet use in the sql query but will be used later so i defined it for the view object.
    Is it a reason that the run time check this ? It would be more convenient to set the bind variables early when defining the view object and add them later during the development iteration.

    Design-time defined named bind variables can be marked as required, or not.
    This is decided by the use in the where clause or in view criteria. In my case the bind variable was not used in where clause neither in view criteria and that causes the error.
    May be i would be nice to add a check box (a flag) that enable or disable the bind variables for this checking so we will be able to let it defined even we removed some part of the query corresponding to the corresponding restriction or we defined it earlier for a part of the query that is not yet defined.
    In my current case i fully defined the bind variables but would refine my query later ... in that cause i would have to remove this bind variable and loose all the definitions to run this view object.
    sorry for my english ...

  • DWR + ADF Bindings get Binding Container at the Filter level

    Hi I'm still pressing on to use DWR with the ADF Bindings.
    To do this, The managed bean method called from javascript needs access to the BindingContainer object or the "#{bindings}" property which is not available out of the box when setting up DWR according to their documentation. So I need to maybe an additional filter or extend the DwrFilter to do this.
    Any ideas how to get or create the bindingContainer object or the "bindings" during the execution of the FacesFilter stage?

    Hi,
    see Duncan Mills article about Ajax auto suggest: http://www.oracle.com/technology/products/jdev/tips/mills/AjaxAutoSuggest/AjaxAutoSuggest.html
    pay an extra attention to the way he configured a pageDef file for the suggest servlet
    Frank

  • ADF 11g:set bind variable

    Hi All,
    Requirement is to set the value of bind variable of the recursive view object(DynamicTreeMenuVO1) on which my af:tree is based at run time. The value of the bind variable is coming from DynamicMenuVO1Iterator view object at run time("#{rows.displayVal}"), when I am iterating the DynamicMenuVO1Iterator using af:forEach.
    Following code is there on my jspx page:-
    <af:panelAccordion id="acc" discloseMany="false" discloseNone="false">
    <af:forEach items="#{data.view_DynamicGalleryTreePageDef.DynamicMenuVO1Iterator.allRowsInRange}" var="rows">
    <af:showDetailItem text="#{rows.displayVal}" id="sdi1">
    <af:tree value="#{bindings.DynamicTreeMenuVO1.treeModel}" var="node"
    selectionListener="#{bindings.DynamicTreeMenuVO1.treeModel.makeCurrent}"
    rowSelection="single" id="t1">
    <f:facet name="nodeStamp">
    <af:outputText value="#{node}" id="ot1"/>
    </f:facet>
    </af:tree>
    </af:showDetailItem>
    </af:forEach>
    </af:panelAccordion>
    Unable to find how to pass the value #{rows.displayVal} to the bind variable of DynamicTreeMenuVO1 at run time. Please help
    Thanks,
    Vikram

    Will using the groovy expression to set the bind variable value by referencing desired attributes in DynamicMenuVO1Iterator work?
    Can any one can give me the grovvy expression to "*Referencing attributes in other view objects*".
    Any inputs please..........................
    Edited by: Vikram K on Feb 25, 2010 7:23 PM

  • Missing code ? in example ADF JClient Data Binding in a Multi-Form APP

    I was reviewing the documnt for concurrent forms and see the statement -
    oracle.jbo.Key masterRowKey ;
    but do not see how it becomes initilized ?
    and then it is used in the statement -
    if (masterRowKey != null && row.getKey().equals(masterRowKey))
    can someone help me here?
    thanks.

    Robert,
    thats a good catch. I checked the sample form that we used to develop the howto document and this doesn't contain the masterRowKey initialization either. So my guess is that the masterRowKey is not needed.
    I'll forward your question to Ralph Gordon, the author of the document.
    thanks
    Frank

  • NullPointerException at oracle.adf.model.binding.DCIteratorBinding.executeQ

    We got the INTERMITTENT NullPointer exception, When creating new Seasonality Group in QuotaManagement.
    Below is the complete Stack trace from server log,
    [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: SALES_ADMIN] [ecid: 0000If7pVM^CWrQRyay0T01CVCDN00014M,0] [APP: EarCrmPerformance#V2.0] Server Exception during PPR, #7[[
    java.lang.NullPointerException
         at oracle.adf.model.binding.DCIteratorBinding.executeQueryIfNeeded(DCIteratorBinding.java:2154)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3182)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2842)
         at oracle.adf.controller.internal.binding.TaskFlowRegionController.doRegionRefresh(TaskFlowRegionController.java:227)
         at oracle.adf.controller.internal.binding.TaskFlowRegionController.refreshRegion(TaskFlowRegionController.java:119)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3140)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2842)
         at oracle.adf.controller.internal.binding.TaskFlowRegionController.doRegionRefresh(TaskFlowRegionController.java:227)
         at oracle.adf.controller.internal.binding.TaskFlowRegionController.refreshRegion(TaskFlowRegionController.java:119)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3140)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2842)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3131)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2842)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:112)
         at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:137)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:192)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:21)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:231)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:269)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:72)
         at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:54)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:364)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         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:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:421)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:421)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.apps.fnd.applcore.common.ApplSessionFilter.doFilter(ApplSessionFilter.java:493)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         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.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.bpel.services.workflow.client.worklist.util.WorkflowFilter.doFilter(WorkflowFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:160)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Let me know if anyone got any clues?

    User,
    Apparently, you are an Oracle developer working on Fusion Apps. It seems to me it would be more appropriate to ask in an internal forum, seeing as that most of us here have no access to the software you're using.
    John

  • Bind the output data (Xml) from BPEL process to ADF SelectOneChoice Control

    Hello,
    My requirement is to invoke a BPEL process from ADF page and display returned results in a select one choice (drop down box).
    I have created a Data Control for the BPEL process through Web service data control and tried to invoke the BPEL process. I could see from the BPEL console that BPEL process is getting invoked. But the ADF doesn't bind any of the output to Select one choice.
    It doesn't even show any error.
    Can you plz help me how to bind the output of the BPEL process to ADF SelectOneChoice control.
    The Xml Which I recieve from BPEL process is
    <outputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload"><DBConnectDemoProcessResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/DBConnectDemo">
    <StatusTrans xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/DBSelect">
    <transId>1</transId>
    <fromStatus>Open</fromStatus>
    <toStatus>Assigned</toStatus>
    </StatusTrans>
    <StatusTrans xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/DBSelect">
    <transId>2</transId>
    <fromStatus>Open</fromStatus>
    <toStatus>Pending</toStatus>
    </StatusTrans>
    <StatusTrans xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/DBSelect">
    <transId>3</transId>
    <fromStatus>Open</fromStatus>
    <toStatus>Closed</toStatus>
    </StatusTrans>
    <StatusTrans xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/DBSelect">
    <transId>4</transId>
    <fromStatus>Open</fromStatus>
    <toStatus>Cancelled</toStatus>
    </StatusTrans>
    </DBConnectDemoProcessResponse>
    </part></outputVariable>
    And the toStatus node values viz, Assigned, Pending, Closed, Cancelled should get binded to the SelectOneChoice control
    Waiting for your valuable inputs,
    Regards,
    babloo.

    I have been still trying for the solution. I have modified the XSD created by the jdeveloper to,
    <schema attributeFormDefault="unqualified"
         elementFormDefault="qualified"
         targetNamespace="http://xmlns.oracle.com/StateTransitions"
         xmlns="http://www.w3.org/2001/XMLSchema">
         <element name="StateTransitionsProcessRequest">
              <complexType>
                   <sequence>
                   <element name="input" type="string"/>
                   </sequence>
              </complexType>
         </element>
         <element name="StateTransitionsProcessResponse">
              <complexType>
                   <sequence maxOccurs="unbounded">
    <element name="stateChanges">
    <complexType>
    <sequence>
    <element name="fromState" type="string" />
    <element name="toState" type = "string" />
    </sequence>
    </complexType>
    </element>
    </sequence>
              </complexType>
         </element>
    </schema>
    And I have given this XSD url while creating the Web Service Data Control by deploying it into the Oracle App server.
    So, I can see the tree structure of "Return" as "StateTransitionsProcessResponse->StateChanges->toState,fromState"
    I have binded the toState field of the Data Control to the SelectOneChoice ADF control in a jspx page by using List binding editor.
    I have selected,
    Base data source as "Variables" (Currently I don't need to update any table),
    List Data source as "process: getStateTransitions.process.StateTransitionsProcessResponse.stateChanges" (Web Service Data Control)
    Base Data source attribute as "process_input"
    List Data Source Attribute as "toState"
    I can initiate the web service (BPEL process) by providing the necessary input value like 'Open' or 'Pending' or 'Assigned' but the SelectOneChoice control doesn't populate with any values.
    Waiting for valuable inputs!
    Thanks and Regards,
    babloo.

  • ADF View Accessor Validation with Bind Variable

    Hi
    I need to solve the following requirement using a view accessors and bind variables;
    1. User can select a value for a attribute from LOV which is unfiltered.
    2. User can manually edit code into the same attribute as in 1 above, which needs to be validated.
    As the data set for the attribute is large, I need to be able to validate 2 using a query with a where clause.
    My approach has been;
    1. I have a view object for the source lookup table, ProductVO.
    2. I have created a view criteria on ProductVO that accepts a bind variable, pProductCode.
    3. On my OrderEO I have a attribute, productCode.
    4. I create a new view accesor on the OrderEO using the view criteria created in point 2.
    5. I have lft the bind variable parameter blank, as I need to be able to dynamically pass a product code at run time.
    6. On my OrderVO for the productCode attribute, I have create a LOV, based on the ProductVO. This will ensure that the user can view and search all products if needed.
    What I am not getting working;
    1. How can I pass the attribute value to the view accessor at runtime when the value is manually captured.
    2. Ensure that if a value is selected from the LOV, that the view accessor validation does not get invoked.
    What I have tried to solve point 1;
    1. I created a validator on the productCode attribute on the OrderEO as a list validator using the view accessor as my list. I am not sure how to get the bind variable populated. Leaving out the bind variable, I assume, would cause the value to be validated against all my products.
    2. I then tried using a method validator and passing in the productCode value and querying the view accessor.
    3. I have not yet tried using Key Exists, is this maybe the missing link/trick?
    All help will be considered a early christmas gift!!

    Hi
    I have found that when using validation type Key Exists and the VO is in the local application, then the bind variable is available in the Create Validation wizard. When I try and create a validator on a VO that is core to all my applications, then I put that VO into an ADF library, the bind variable parameter is not available for mapping to my entity object attribute, even though I can select the VO to create a view accessor from the ADF library.
    Possible bug?

Maybe you are looking for

  • Error in JSPM to try update stack java.

    Hi. sdn team. We have problem with JSPM . The problem it's  . I try to validate error in LOG FILE  "   E:\usr\sap\SME\DVEBMGS01\SDM\program\log\sdmcl20090729210415.log" INTO FILE: Jul 29, 2009 9:04:22 PM  Error: Aborted: development component 'tc/sec

  • Error While Testing the Bean

    Hi All, Can anyone suggest me how to approach for the below error while testing the bean in the Browser :   The requested resource /ClaculatorLgWeb/CalculatorLg.jsp is not available   Details:   File [ClaculatorLgWeb/CalculatorLg.jsp] not found in ap

  • NSAPI [iPlanet 6.0SP1] for WLS6.1 SP1

    Hi, I am trying to integrate iPlanet WebServer 6.0 SP1 with Weblogic6.1 SP1 but am not able to get it up and running. I followed the documentation and able to get the ststic HTML pages but am not able to get the JSP's and Servlets to work. Here are t

  • What is MIDI timeout and how do I get my garageband to function normally?

    What is MIDI timeout and how do I cure my Garageband and Logic Pro from it. Both will not function. It tells me to upgrade my drivers but I know nothing of this? I need help  BAD!

  • Attempt to run automatic update to LightRoom 5.7 fails with error 1402

    When I opened and started to work in LightRoom 5.6 on my Windows 7 64-bit PC a notification was displayed in a popup alerting me that a newer version, version 5.7 was available and asked me if I wanted to install it.  I clicked yes, and was taken to