1 Reply Latest reply on Jun 7, 2011 3:20 AM by steux jean-sebastien

    Null pointer exception from Portlet tag.

    febaportal Newbie

      Hi,

       

      I am getting following exception when i use <portlet:defineObjects /> tag in my jsp. This exception occurs only once i.e. during rendering of jsp for first time, but again when i just refresh the browser page the jsp is displayed correctly.Then the next jsps in the flow are displayed without any error.

       

      Exception throwm:

      java.lang.NullPointerException

          at org.jboss.portal.portlet.impl.jsr168.taglib.PortletTag.getDispatchedRequest(PortletTag.java:67)

          at org.jboss.portal.portlet.impl.jsr168.taglib.PortletTag.getPortletRequest(PortletTag.java:72)

          at org.jboss.portal.portlet.impl.jsr168.taglib.PortletTag.getRenderRequest(PortletTag.java:90)

          at org.jboss.portal.portlet.impl.jsr286.taglib.DefineObjects286Tag.doEndTag(DefineObjects286Tag.java:57)

          at org.apache.jsp.jsp.mails.MailFG.MailHomePage_jsp._jspService(MailHomePage_jsp.java:322)

          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)

          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:227)

          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:169)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:656)

          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:556)

          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:477)

          at org.jboss.portal.portlet.impl.jsr168.api.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:142)

          at org.jboss.portal.portlet.impl.jsr168.api.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:79)