Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.lang.NullPointerException at org.apache.myfaces.custom.updateactionlistener.UpdateActionListene  RSS feed

 
ranjinie Nama
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my jsp page I am using <t:updateActionListener value="#{lexicon}" property="#{adminViewBean.currentLexicon}" />

I deployed the project into OC4J server. when I view a page which has the reference to <t:updateActionListener thowing
java.lang.NullPointerException
at org.apache.myfaces.custom.updateactionlistener.UpdateActionListener.processAction(UpdateActionListener.java:137).

the same code works in development server. only in QA server it is failing.

What should I do?

part of the code:

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>

<f:view>.....
<h:commandButton styleClass="btn btn-sm" value="#{TRS['btn.edit']}" action="#{adminViewBean.editLexicon}" immediate="true">
<t:updateActionListener value="#{lexicon}" property="#{adminViewBean.currentLexicon}" />
</h:commandButton>

</f:view>


Exception I am getting:

java.lang.NullPointerException

at org.apache.myfaces.custom.updateactionlistener.UpdateActionListener.processAction(UpdateActionListener.java:137)

at javax.faces.event.ActionEvent.processListener(ActionEvent.java:51)

at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:487)

at javax.faces.component.UICommand.broadcast(UICommand.java:78)

at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)

at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)

at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)

at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)

at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)

at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)

at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java
:64)

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!