3 Replies Latest reply: Dec 28, 2012 10:11 AM by Timo Hahn RSS

    null exception when unselect allitem in selectManyListbox

    963230
      Hi, all
      my version is 11.1.2.3.0.

      I am using a selectManyListbox in a popup and this selectManyListbox drage and drop from a VO.

      First time the selectManyListbox is all unselect, it's ok. but when i select some item and then unselect all items.

      It give me null exception.

      the same as using the selectAll box function.

      My logic is set same value to the selectManyListbox when it popup, and get the value of selections.

      Any idea of how to solving the null exception?

      Thanks
        • 1. Re: null exception when unselect allitem in selectManyListbox
          Timo Hahn
          Sorry not enough info to will on.
          You should at least post the stack trace and some of your code...

          Timo
          • 2. Re: null exception when unselect allitem in selectManyListbox
            963230
            Hi,Timo;
            this is jsff code
            <af:selectManyListbox label="MACD Activity" id="sml1" size="12" simple="true" contentStyle="width:320px;"
            binding="#{pageFlowScope.PortTabSaveBean.smlMACDActivity}"
            value="#{bindings.PdLookupDataMacdActivityActionsV1.inputValue}"
            autoSubmit="true">
            <f:selectItems value="#{bindings.PdLookupDataMacdActivityActionsV1.items}" id="si46"/>
            </af:selectManyListbox>
            It just drop from a VO.

            This is the exception

            <RichExceptionHandler> <_logUnhandledException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase PROCESS_VALIDATIONS 3
            java.lang.NullPointerException
                 at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.findObjectFromIndex(FacesCtrlListBinding.java:334)
                 at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.getInputValue(FacesCtrlListBinding.java:199)
                 at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGet(JUCtrlValueBinding.java:2416)
                 at oracle.jbo.uicli.binding.JUCtrlListBinding.internalGet(JUCtrlListBinding.java:3714)
                 at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.internalGet(FacesCtrlListBinding.java:500)
                 at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:749)
                 at javax.el.MapELResolver.getValue(MapELResolver.java:164)
                 at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
                 at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
                 at com.sun.el.parser.AstValue.getValue(Unknown Source)
                 at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
                 at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
                 at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:73)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.getProperty(UIXComponentBase.java:1485)
                 at org.apache.myfaces.trinidad.component.UIXValue.getValue(UIXValue.java:79)
                 at org.apache.myfaces.trinidad.component.UIXEditableValue.validate(UIXEditableValue.java:211)
                 at org.apache.myfaces.trinidad.component.UIXEditableValue._executeValidate(UIXEditableValue.java:721)
                 at org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:337)
                 at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ProcessValidationsCallback.invokeContextCallback(LifecycleImpl.java:1547)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1735)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
                 at org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:1215)
                 at oracle.adf.view.rich.component.rich.data.RichTable.invokeOnComponent(RichTable.java:623)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1693)
                 at org.apache.myfaces.trinidad.component.UIXDecorateCollection.invokeOnComponent(UIXDecorateCollection.java:121)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1693)
                 at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:625)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
                 at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
                 at org.apache.myfaces.trinidad.component.UIXDocument.invokeOnComponent(UIXDocument.java:106)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1321)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
                 at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:382)
                 at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
            • 3. Re: null exception when unselect allitem in selectManyListbox
              Timo Hahn
              Not sure what cause this. Have you checked out samples like
              http://java.net/projects/smuenchadf/pages/ADFSamplesADFFacesUIComponents#SelectManyCheckbox
              http://umeshagarwal24.blogspot.de/2012/05/adf-11g-use-case-of-selectmanylistbox.html


              Timo