1 Reply Latest reply: Mar 4, 2013 2:29 AM by Frank Nimphius-Oracle RSS

    Facing Null Pointer in AutoSuggest LOV

    834970
      Hi Team,

      Jdev - 11.1.1.6.0

      I am facing Null Pointer Exception while clicking on down arrow of LOV.

      Scenario:-
      I have One LOV with auto suggest behavior on it.
      Like this:-
      *<af:inputComboboxListOfValues id="inputComboboxListOfValues1"*
      *popupTitle="Search and Select: #{bindings.TR_FULLNAME.hints.label}"*
      *value="#{bindings.TR_FULLNAME.inputValue}"*
      *label="#{actionmemoviewcontrollerBundle.USER_NAME}"*
      *model="#{bindings.TR_FULLNAME.listOfValuesModel}"*
      *required="#{bindings.TR_FULLNAME.hints.mandatory}"*
      *columns="#{bindings.TR_FULLNAME.hints.displayWidth}"*
      *shortDesc="#{bindings.TR_FULLNAME.hints.tooltip}">*
      *<f:validator binding="#{bindings.TR_FULLNAME.validator}"/>*
      *<af:autoSuggestBehavior suggestedItems="#{pageFlowScope.shuttleBean.getResourcesList}"*
      *maxSuggestedItems="10"/>*
      *</af:inputComboboxListOfValues>*

      When I am entering string to get my result with the help of Auto Suggest Behavior and in case if that name is not there in list its return me NO RESULT.
      As my LOV is connect to one view criteria so when I am clicking on down button of LOV to get search box in case user want to search manually, its giving me Null Pointer exception of LOV. Below is the stack trace of exception :-

      *LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5*
      *java.lang.NullPointerException*
      *     at oracle.jbo.uicli.binding.JUCtrlListBinding.findOrCreateLOVDialogIteratorBinding(JUCtrlListBinding.java:5119)*
      *     at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding.getSearchBinding(FacesCtrlLOVBinding.java:202)*
      *     at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ListOfValuesModelImpl.getSearchRegion(FacesCtrlLOVBinding.java:1854)*
      *     at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ListOfValuesModelImpl.getQueryModel(FacesCtrlLOVBinding.java:1466)*
      *     at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase$InternalLaunchPopupListener.processLaunch(SimpleInputListOfValuesRendererBase.java:1485)*
      *     at oracle.adf.view.rich.event.LaunchPopupEvent.processListener(LaunchPopupEvent.java:108)*
      *     at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:675)*
      *     at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:210)*
      *     at oracle.adf.view.rich.component.UIXInputPopup.broadcast(UIXInputPopup.java:158)*
      *     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.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)*
      *     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)*
      *     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)*
      *     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)*
      *     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.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.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)*
      *     at java.security.AccessController.doPrivileged(Native Method)*
      *     at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)*
      *     at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)*
      *     at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)*
      *     at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)*
      *     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:139)*
      *     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:1454)*
      *     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)*
      *     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)*
      *<XmlErrorHandler> <handleError> ADF_FACES-60096:Server Exception during PPR, #6*
      *java.lang.NullPointerException*
      *     at oracle.jbo.uicli.binding.JUCtrlListBinding.findOrCreateLOVDialogIteratorBinding(JUCtrlListBinding.java:5119)*
      *     at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding.getSearchBinding(FacesCtrlLOVBinding.java:202)*
      *     at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ListOfValuesModelImpl.getSearchRegion(FacesCtrlLOVBinding.java:1854)*
      *     at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ListOfValuesModelImpl.getQueryModel(FacesCtrlLOVBinding.java:1466)*
      *     at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase$InternalLaunchPopupListener.processLaunch(SimpleInputListOfValuesRendererBase.java:1485)*
      *     at oracle.adf.view.rich.event.LaunchPopupEvent.processListener(LaunchPopupEvent.java:108)*
      *     at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:675)*
      *     at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:210)*
      *     at oracle.adf.view.rich.component.UIXInputPopup.broadcast(UIXInputPopup.java:158)*
      *     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.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)*
      *     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)*
      *     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)*
      *     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)*
      *     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.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.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)*
      *     at java.security.AccessController.doPrivileged(Native Method)*
      *     at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)*
      *     at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)*
      *     at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)*
      *     at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)*
      *     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:139)*
      *     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:1454)*
      *     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)*
      *     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)*

      I am using custom AutoSuggest.

      Can you please suggest me where i am wrong or i need to add something in it.

      Regrads,
      Ramit Mathur