Forum Stats

  • 3,750,457 Users
  • 2,250,181 Discussions
  • 7,866,986 Comments

Discussions

Null pointer exception in WebLogic 14.1.1.0

User_7CI4Y
User_7CI4Y Member Posts: 1 Red Ribbon
edited Dec 2, 2020 8:42PM in WebLogic Portal

My Application is working properly in 12.2.1.3. But the same is failing with null pointer exception on 14.1.1.0

Unable to get the root cause for the error.

Stack trace:

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 sun.reflect.GeneratedMethodAccessor194.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:215)

at org.springframework.security.web.header.writers.CacheControlHeadersWriter.hasHeader(CacheControlHeadersWriter.java:72)

at org.springframework.security.web.header.writers.CacheControlHeadersWriter.writeHeaders(CacheControlHeadersWriter.java:61)

at org.springframework.security.web.header.HeaderWriterFilter$HeaderWriterResponse.writeHeaders(HeaderWriterFilter.java:101)

at org.springframework.security.web.header.HeaderWriterFilter$HeaderWriterResponse.onResponseCommitted(HeaderWriterFilter.java:92)

at org.springframework.security.web.util.OnCommittedResponseWrapper.doOnResponseCommitted(OnCommittedResponseWrapper.java:246)

at org.springframework.security.web.util.OnCommittedResponseWrapper.checkContentLength(OnCommittedResponseWrapper.java:236)

at org.springframework.security.web.util.OnCommittedResponseWrapper.access$200(OnCommittedResponseWrapper.java:34)

at org.springframework.security.web.util.OnCommittedResponseWrapper$SaveContextServletOutputStream.write(OnCommittedResponseWrapper.java:638)

at weblogic.servlet.internal.WLOutputStreamWriter.writeBytes(WLOutputStreamWriter.java:204)

at weblogic.servlet.internal.WLOutputStreamWriter.flushBuffer(WLOutputStreamWriter.java:247)

at weblogic.servlet.internal.WLOutputStreamWriter.write(WLOutputStreamWriter.java:164)

at weblogic.servlet.internal.WLOutputStreamWriter.write(WLOutputStreamWriter.java:136)

at weblogic.servlet.internal.DelegateChunkWriter.print(DelegateChunkWriter.java:119)

at weblogic.servlet.internal.ChunkOutputWrapper.print(ChunkOutputWrapper.java:190)

at weblogic.servlet.jsp.JspWriterImpl.write(JspWriterImpl.java:260)

at jsp_servlet._web_45_inf._jsp._apihelp.__subscriptionapi._jspService(__subscriptionapi.java:154)

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 weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:182)

at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:103)

at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:96)

at org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write(TemplateAttributeRenderer.java:44)

at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106)

at org.apache.tiles.renderer.impl.ChainedDelegateAttributeRenderer.write(ChainedDelegateAttributeRenderer.java:76)

at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:670)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:336)

at org.apache.tiles.template.InsertAttributeModel.renderAttribute(InsertAttributeModel.java:210)

at org.apache.tiles.template.InsertAttributeModel.end(InsertAttributeModel.java:126)

at org.apache.tiles.jsp.taglib.InsertAttributeTag.doTag(InsertAttributeTag.java:311)

at jsp_servlet._web_45_inf._jsp._apihelp.__apihelplayout._jsp__tag16(__apihelplayout.java:911)

at jsp_servlet._web_45_inf._jsp._apihelp.__apihelplayout._jspService(__apihelplayout.java:245)

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.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:241)

at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:222)

at org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write(TemplateAttributeRenderer.java:44)

at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:670)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:690)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:644)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:627)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:321)

at org.apache.tiles.renderer.impl.DefinitionAttributeRenderer.write(DefinitionAttributeRenderer.java:56)

at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106)

at org.apache.tiles.renderer.impl.ChainedDelegateAttributeRenderer.write(ChainedDelegateAttributeRenderer.java:76)

at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:670)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:336)

at org.springframework.js.ajax.tiles2.AjaxTilesView.renderMergedOutputModel(AjaxTilesView.java:126)

at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:304)

at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1286)

at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1041)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:984)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)

at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)

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

at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)

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 com.sample.test.web.filters.testConcurrentSessionFilter.doFilterCore(testConcurrentSessionFilter.java:70)

at com.sample.test.web.filters.BasetestFilter.doFilter(BasetestFilter.java:26)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:82)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317)

at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)

at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214)

at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177)

at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)

at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)

at com.sample.test.web.filters.TenantIdentificationSecurityFilter.doFilter(TenantIdentificationSecurityFilter.java:82)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:82)

at com.sample.test.web.filters.LoggingFilter.doFilterCore(LoggingFilter.java:49)

at com.sample.test.web.filters.BasetestFilter.doFilter(BasetestFilter.java:26)

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)

Tagged:

Answers

  • User_1YILZ
    User_1YILZ Member Posts: 0 Green Ribbon

    I have a similiar problem, I have upgrade a spring 3.05 application to spring 4.3 and after change a lot of things, it can work on Oracle weblogic 12C< but when deploy to Oracle weblogic 14C, it got problem of


    [Loaded org.springframework.web.servlet.tags.UrlTag$UrlType from file:/D:/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AIMS/tmp/_WL_user/aims/ea5g1a/war/WEB-INF/lib/spring-w

    ebmvc-4.3.5.RELEASE.jar]

    <Apr 6, 2021 3:12:24,455 PM SGT> <Error> <HTTP> <BEA-101017> <[[email protected][app:aims module:aims path:null spec-version:4.0]] Root cause of ServletException.

    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 sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        Truncated. see log file for complete stacktrace

    >