• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NullpointerExceptions in portals.

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic