Menu

WebLogic 14 + ART = javax.servlet.jsp.JspException: java.lang.NullPointerException

ART Help
olegf
2021-09-20
2023-02-09
  • olegf

    olegf - 2021-09-20

    Hello
    I am getting the next error when try to create my report:

    1) Deploy art.war on WebLogic 14
    2) Configure ART-database
    3) Create my report
    4) In order to get report (when parameters' list has to appear) I get the next error:

    javax.servlet.jsp.JspException: java.lang.NullPointerException
    at jsp_servlet._web_45_inf._jsp.__selectreportparameters$JspFragmentHelper.invoke(__selectreportparameters.java:188)
    at jsp_servlet._tags.__mainpage_tag$JspFragmentHelper.invoke6(__mainpage_tag.java:346)
    at jsp_servlet._tags.__mainpage_tag$JspFragmentHelper.invoke(__mainpage_tag.java:378)
    at jsp_servlet._tags.__genericpage_tag.doTag(__genericpage_tag.java:243)
    at jsp_servlet._tags.__mainpage_tag._jsp__tag0(__mainpage_tag.java:238)
    at jsp_servlet._tags.__mainpage_tag.doTag(__mainpage_tag.java:191)
    at jsp_servlet._web_45_inf._jsp.__selectreportparameters._jsp__tag0(__selectreportparameters.java:127)
    at jsp_servlet._web_45_inf._jsp.__selectreportparameters._jspService(__selectreportparameters.java:97)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:35)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:295)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:260)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:137)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:353)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:490)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:379)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:250)
    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:649)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:290)
    at org.springframework.security.web.header.HeaderWriterFilter$HeaderWriterRequestDispatcher.forward(HeaderWriterFilter.java:171)
    at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:171)
    at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:316)
    at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1396)
    at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1141)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1080)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:645)
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:295)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:260)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:137)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:353)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:82)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:327)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:115)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:81)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:121)
    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:115)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
    at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:126)
    at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:81)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
    at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:105)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
    at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:149)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
    at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
    at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:91)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
    at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:90)
    at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:75)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
    at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110)
    at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
    at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:55)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:211)
    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183)
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358)
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:82)
    at org.springframework.web.multipart.support.MultipartFilter.doFilterInternal(MultipartFilter.java:125)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:82)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:82)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3866)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3829)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:344)
    at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197)
    at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)
    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)
    at weblogic.servlet.internal.WebAppServletContext.processSecuredExecute(WebAppServletContext.java:2502)
    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2351)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2326)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2304)
    at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1779)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1733)
    at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:272)
    at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
    at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
    at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
    at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
    at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:651)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:420)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:360)
    Caused by: java.lang.NullPointerException
    at weblogic.servlet.internal.ServletResponseImpl.getHeader(ServletResponseImpl.java:1222)
    at javax.servlet.http.HttpServletResponseWrapper.getHeader(HttpServletResponseWrapper.java:249)
    at javax.servlet.http.HttpServletResponseWrapper.getHeader(HttpServletResponseWrapper.java:249)
    at org.springframework.security.web.header.writers.CacheControlHeadersWriter.hasHeader(CacheControlHeadersWriter.java:68)
    at org.springframework.security.web.header.writers.CacheControlHeadersWriter.writeHeaders(CacheControlHeadersWriter.java:60)
    at org.springframework.security.web.header.HeaderWriterFilter.writeHeaders(HeaderWriterFilter.java:99)
    at org.springframework.security.web.header.HeaderWriterFilter$HeaderWriterResponse.writeHeaders(HeaderWriterFilter.java:133)
    at org.springframework.security.web.header.HeaderWriterFilter$HeaderWriterResponse.onResponseCommitted(HeaderWriterFilter.java:125)
    at org.springframework.security.web.util.OnCommittedResponseWrapper.doOnResponseCommitted(OnCommittedResponseWrapper.java:251)
    at org.springframework.security.web.util.OnCommittedResponseWrapper.checkContentLength(OnCommittedResponseWrapper.java:241)
    at org.springframework.security.web.util.OnCommittedResponseWrapper.access$200(OnCommittedResponseWrapper.java:35)
    at org.springframework.security.web.util.OnCommittedResponseWrapper$SaveContextServletOutputStream.write(OnCommittedResponseWrapper.java:637)
    at weblogic.servlet.internal.DelegateChunkWriter.write(DelegateChunkWriter.java:109)
    at weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:165)
    at weblogic.servlet.jsp.JspWriterImpl.write(JspWriterImpl.java:276)
    at jsp_servlet._web_45_inf._jsp.__selectreportparametersbody._jspService(__selectreportparametersbody.java:524)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:35)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:295)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:260)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:137)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:353)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:490)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:379)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:250)
    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:649)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:518)
    at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:161)
    at jsp_servlet._web_45_inf._jsp.__selectreportparameters$JspFragmentHelper.invoke0(__selectreportparameters.java:168)
    at jsp_servlet._web_45_inf._jsp.__selectreportparameters$JspFragmentHelper.invoke(__selectreportparameters.java:182)
    ... 95 more

     
  • olegf

    olegf - 2021-09-21

    It is worth mentioning here that this case has not reproduced on WebLogic 12c

     
  • Timothy Anyona

    Timothy Anyona - 2021-09-21

    Which version of ART are you using?

     
  • olegf

    olegf - 2021-09-21
     
  • Timothy Anyona

    Timothy Anyona - 2021-09-21

    Does it happen with all reports, or only certain parameter types.

     
  • olegf

    olegf - 2021-09-21

    I have just tried to create a simple tabular report without any parameters with primitive SQL (select 1). As result: the report has been created but I can not launch it due the same error.

     
  • Timothy Anyona

    Timothy Anyona - 2021-09-21

    Could you check on weblogic where jsp class files are located and upload the __selectreportparameters.java file here.

     
  • olegf

    olegf - 2021-09-21

    This file is here:
    <<weblogic_domain_path>>\servers\AdminServer\tmp_WL_user\art\al0vx6\jsp_servlet_web_45_inf_jsp__selectreportparameters.java</weblogic_domain_path>

    The file is in attachment:

     
  • olegf

    olegf - 2021-09-21

    This file is here:
    <<weblogic_domain_path>>\servers\AdminServer\tmp_WL_user\art\al0vx6\jsp_servlet_web_45_inf_jsp__selectreportparameters.java</weblogic_domain_path>

    The file is in attachment:

     
  • Timothy Anyona

    Timothy Anyona - 2021-09-21

    Could you also upload __selectreportparametersbody.java.

     
  • olegf

    olegf - 2021-09-21

    I collected catalog
    <<weblogic_domain_path>>\servers\AdminServer\tmp_WL_user\art\al0vx6\jsp_servlet*.*</weblogic_domain_path>

    Files are in attachment:

     
  • Timothy Anyona

    Timothy Anyona - 2023-02-09

    Hi,
    Do you still have this error, or you abandoned art on weblogic 14?

     
  • olegf

    olegf - 2023-02-09

    BTW
    I managed to resolve this issue.
    Right now I am not ready to tell you what was reason for this issue.
    That was a lot of investigation of code.
    Anyway Thanks for you help and ideas.

     
  • Timothy Anyona

    Timothy Anyona - 2023-02-09

    It's ok. Thanks.

     

Log in to post a comment.