This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSF and the fly likes Null Pointer Exception in a4j:commandLink Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Null Pointer Exception in a4j:commandLink" Watch "Null Pointer Exception in a4j:commandLink" New topic

Null Pointer Exception in a4j:commandLink

Avik Mazunder
Ranch Hand

Joined: Jun 27, 2012
Posts: 39

a4j command link

But I am getting the following exception

13:16:02,789 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/Student].[Faces Servlet]] (http-localhost- Servlet.service() for servlet Faces Servlet threw exception: java.lang.NullPointerException
at com.sun.faces.context.PartialViewContextImpl.createPartialResponseWriter( [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.context.PartialViewContextImpl.access$300( [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.context.PartialViewContextImpl$DelayedInitPartialResponseWriter.getWrapped( [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.context.PartialResponseWriter.startDocument( [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at com.sun.faces.context.AjaxExceptionHandlerImpl.handlePartialResponseError( [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.context.AjaxExceptionHandlerImpl.handle( [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.lifecycle.Phase.doPhase( [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase( [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.lifecycle.LifecycleImpl.execute( [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.webapp.FacesServlet.service( [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter( [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke( [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke( [jbossweb-7.0.13.Final.jar:]
at [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke( [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke( [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke( [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service( [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process( [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( [jbossweb-7.0.13.Final.jar:]
at$ [jbossweb-7.0.13.Final.jar:]
at Source) [rt.jar:1.7.0]

What is the problem here?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15629

Since this is apparently running on JBoss, have you checked to make sure that you do not have a JSF-impl.jar in your WEB-INF/lib? JBoss has JSF built into it.

Customer surveys are for companies who didn't pay proper attention to begin with.
Avik Mazunder
Ranch Hand

Joined: Jun 27, 2012
Posts: 39

I dont have jsf-impl in my jar..!
I agree. Here's the link:
subject: Null Pointer Exception in a4j:commandLink
Similar Threads
set a data source in domain mode in JBoss AS7
ClientAbortException throw at the end of REST request
Problem with JTA transactions and OpenJPA
Web service endpoints are not getting listed in JBoss AS 7 [jboss-as-7.1.1.Final]
JBoss AS 7.1.0 CR1b problem with hornetq-ra