Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Portals and Portlets and the fly likes NullpointerExceptions in portals. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "NullpointerExceptions in portals." Watch "NullpointerExceptions in portals." New topic
Author

NullpointerExceptions in portals.

bharat sripuram
Greenhorn

Joined: Mar 21, 2011
Posts: 6
Hi,

Am using portals. I have given all the required fields in the jsp and clicked continue button. There would be some validations done on the required fields and it is forwarded to next jsp. But am getting the following error. can someone help me in this ? am using weblogic 8.2.

Error opening /pageflows/cf/cfFlows/ComplaintInvestigation.jsp.
The source of this error is java.lang.NullPointerException at
jsp_servlet._pageflows._cf._cfflows.__complaintinvestigation._jspService
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized Method) at
weblogic.servlet.jsp.JspBase.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized Method)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(Optimized Method) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet
(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(Optimized
Method) at weblogic.servlet.internal.TailFilter.doFilter
(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(Optimized Method) at
weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V
(Optimized Method) at com.bea.p13n.servlets.PortalServletFilter.doFilter
(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(Optimized Method) at
weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V
(Optimized Method) at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter
(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(Optimized Method) at
weblogic.servlet.internal.RequestDispatcherImpl.include(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V
(Optimized Method) at com.bea.wlw.netui.pageflow.scoping.internal.ScopedRequestDispatcher.include
(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized Method) at
com.bea.netuix.servlets.controls.content.JspContent.beginRender(Ljava/io/Writer;)Z(Optimized Method) at
com.bea.netuix.servlets.controls.content.NetuiContent.beginRender(Ljava/io/Writer;)Z(Optimized Method) at
com.bea.netuix.nf.ControlLifecycle$1.visit(Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;)Z(Optimized Method) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender
(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;)V(Optimized Method) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender
(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;)V(Optimized Method) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender
(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;)V(Optimized Method) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender
(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;)V(Optimized Method) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender
(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;)V(Optimized Method) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender
(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Ljava/lang/Object;)V(Optimized Method) at
com.bea.netuix.nf.ControlTreeWalker.walk
(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;Lcom/bea/netuix/nf/concurrency/ControlTreeWalkerPool;)
V(Optimized Method) at com.bea.netuix.nf.ControlTreeWalker.walk
(Lcom/bea/netuix/nf/VisitorType;Lcom/bea/netuix/nf/UIControl;)V(Optimized Method) at com.bea.netuix.nf.Lifecycle.run
(Lcom/bea/netuix/nf/UIControl;[Lcom/bea/netuix/nf/VisitorType;)V(Lifecycle.java:356) at
com.bea.netuix.nf.UIControl.render()V(UIControl.java:536) at
com.bea.netuix.servlets.controls.PresentationContext.render(Ljavax/servlet/http/HttpServletRequest;)V
(PresentationContext.java:405) at com.bea.netuix.servlets.util.RenderToolkit.renderChild
(Lcom/bea/netuix/servlets/controls/PresentationContext;Ljavax/servlet/http/HttpServletRequest;)V
(RenderToolkit.java:123) at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag()I(RenderChild.java:58) at
jsp_servlet._framework._skeletons._bci.__gridlayout._jspService
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(Optimized Method) at
weblogic.servlet.jsp.JspBase.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized Method)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(Optimized Method) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet
(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(Optimized
Method) at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(Optimized Method)

Please let me know if you require any thing else.

Regards,
Bharat
Gilbert Tan
Greenhorn

Joined: May 29, 2009
Posts: 5
Well ... May be you have set all required parameters. But before coming to the page, you may definitely do some processing of data (Most probably you are calling the business layer/ data access later).

When, an exception is thrown out from any of those layers, this situation can occur. Because, due to the exception, the objects being accessed in this page are not properly set (in session/ renderRequest).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NullpointerExceptions in portals.
 
Similar Threads
Struts application. Environment variables Problem it seems!
weblogic integration 8.1 urgent
Application running fine on Tomcat 5.0 but failing in the weblogic 8.1
Testing IBM MQ on BEA Weblogic Server
java.lang.NullPointerException