Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NullpointerExceptions in portals.

 
bharat sripuram
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic