ICEfaces
  1. ICEfaces
  2. ICE-4159

In Weblogic 9, inputFile and dataExporter broken, unless exploded deployment

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Weblogic 9
    • Workaround Exists:
      Yes
    • Workaround Description:
      With Weblogic 9, if you do an exploded deployment, then these components work properly.

      Description

      Both of these exceptions are because we're trying to build paths, to initialise java.io.File objects, which rely on results from ServletContext.getRealPath(String), which always returns null from a WAR deployment on Weblogic 9.

      java.lang.NullPointerException
              at java.io.File.<init>(File.java:222)
              at com.icesoft.faces.webapp.http.core.UploadServer$2.upload(UploadServer.java:189)
              at com.icesoft.faces.webapp.http.core.UploadServer$2.servlet(UploadServer.java:112)
              at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.detectEnvironment(ServletRequestResponse.java:228)
              at com.icesoft.faces.webapp.http.core.UploadServer.service(UploadServer.java:60)
              at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)


      java.lang.NullPointerException
             at java.io.File.<init>(File.java:194)
             at com.icesoft.faces.component.dataexporter.DataExporterRenderer.createFile(DataExporterRenderer.java:137)
             at com.icesoft.faces.component.dataexporter.DataExporterRenderer.encodeBegin(DataExporterRenderer.java:42)
             at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:703)
             at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:350)
             at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:96)
             at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
             at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:352)
             at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:96)
             at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
             at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:352)
             at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:96)
             at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
             at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:352)
             at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:359)
             at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:96)
             at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
             at com.icesoft.faces.component.util.CustomComponentUtils.renderChild(CustomComponentUtils.java:339)
             at com.icesoft.faces.component.panelstack.PanelStackRenderer.encodeChildren(PanelStackRenderer.java:116)
             at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
             at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:552)
             at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:557)
             at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:557)
             at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:557)
             at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:557)
             at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:557)
             at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:557)
             at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:557)
             at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:557)
             at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:505)
             at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:154)
             at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
             at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
             at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
             at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
             at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:140)
             at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:68)
             at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:26)
             at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
             at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
             at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:30)
             at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
             at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
             at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:50)
             at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:22)
             at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
             at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:95)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
             at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
             at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
             at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
             at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
             at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
             at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)
             at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
             at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
             at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
             at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
             at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
             at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

        Issue Links

          Activity

          There are no subversion log entries for this issue yet.

            People

            • Assignee:
              Unassigned
              Reporter:
              Mark Collette
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: