ICEmobile
  1. ICEmobile
  2. MOBI-905

Mobile Simulator throws exception on WebLogic

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE 1.3.0.GA_P01
    • Fix Version/s: EE 1.4
    • Component/s: Faces
    • Labels:
      None
    • Environment:
      n/a

      Description

      The Mobile Simulator tries to load a custom header file. ServletContext.getRealPath() returns null on WebLogic with unexploded deployments. We need to check this before attempting to load the file.

        Activity

        Philip Breau created issue -
        Philip Breau made changes -
        Field Original Value New Value
        Assignee Steve Maryka [ steve.maryka ] Philip Breau [ philip.breau ]
        Hide
        Philip Breau added a comment -

        Revision: 35711
        Author: philip.breau
        Date: October-03-13 12:47:43 PM
        Message:
        MOBI-905 Mobile Simulator throws exception trying to load custom header on WebLogic


        Modified : /icemobile-ee/trunk/icemobile-ee/simulator/src/main/java/org/icemobile/simulator/servlet/SimulatorServlet.java

        Show
        Philip Breau added a comment - Revision: 35711 Author: philip.breau Date: October-03-13 12:47:43 PM Message: MOBI-905 Mobile Simulator throws exception trying to load custom header on WebLogic Modified : /icemobile-ee/trunk/icemobile-ee/simulator/src/main/java/org/icemobile/simulator/servlet/SimulatorServlet.java
        Philip Breau made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.4 EE [ 11176 ]
        Resolution Fixed [ 1 ]
        Hide
        Philip Breau added a comment -

        ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1380814594393> <BEA-000000> <2013-10-03 11:36:34,393 ERROR (cpc-mi-error:105) - Uncaught exception has occurred

        Error code : 7ef6a156

        Referer : null

        Request URI : /cpc-mi/simulator

        Exception :

        java.io.File.<init>(File.java:222)

        org.icemobile.simulator.servlet.SimulatorServlet.loadCustomHeaderContent(SimulatorServlet.java:96)

        org.icemobile.simulator.servlet.SimulatorServlet.init(SimulatorServlet.java:84)

        weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)

        weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

        weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)

        weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)

        weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)

        weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)

        weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:531)

        weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)

        weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

        weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

        weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

        weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

        weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)

        weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

        weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)

        weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)

        weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)

        weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)

        weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)

        weblogic.work.ExecuteThread.run(ExecuteThread.java:173)>

        Show
        Philip Breau added a comment - ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1380814594393> <BEA-000000> <2013-10-03 11:36:34,393 ERROR (cpc-mi-error:105) - Uncaught exception has occurred Error code : 7ef6a156 Referer : null Request URI : /cpc-mi/simulator Exception : java.io.File.<init>(File.java:222) org.icemobile.simulator.servlet.SimulatorServlet.loadCustomHeaderContent(SimulatorServlet.java:96) org.icemobile.simulator.servlet.SimulatorServlet.init(SimulatorServlet.java:84) weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283) weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64) weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58) weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48) weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:531) weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235) weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592) weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202) weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108) weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432) weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) weblogic.work.ExecuteThread.run(ExecuteThread.java:173)>
        Hide
        Philip Breau added a comment -

        000 4 00 0000 2013-11-19 20:39:35.531 (cpc-mi-error:105) Uncaught exception has occurred
        Error code : 7216f16b
        Referer : null
        Request URI : /cpc-mi/simulator
        Exception :
        java.io.File.<init>(File.java:222)
        org.icemobile.simulator.servlet.SimulatorServlet.loadSimulatorConfiguration(SimulatorServlet.java:144)
        org.icemobile.simulator.servlet.SimulatorServlet.init(SimulatorServlet.java:92)
        weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
        weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
        weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
        weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
        weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
        weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:243)
        weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
        weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
        weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
        weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3729)
        weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3695)
        weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2285)
        weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2184)
        weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1459)
        weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

        Show
        Philip Breau added a comment - 000 4 00 0000 2013-11-19 20:39:35.531 (cpc-mi-error:105) Uncaught exception has occurred Error code : 7216f16b Referer : null Request URI : /cpc-mi/simulator Exception : java.io.File.<init>(File.java:222) org.icemobile.simulator.servlet.SimulatorServlet.loadSimulatorConfiguration(SimulatorServlet.java:144) org.icemobile.simulator.servlet.SimulatorServlet.init(SimulatorServlet.java:92) weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283) weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64) weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58) weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48) weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539) weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:243) weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27) weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57) weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57) weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3729) weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3695) weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2285) weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2184) weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1459) weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
        Philip Breau made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Philip Breau made changes -
        Summary Mobile Simulator throws exception trying to load custom header on WebLogic Mobile Simulator throws exception on WebLogic
        Hide
        Philip Breau added a comment -

        Revision: 36274
        Author: philip.breau
        Date: November-21-13 9:29:12 AM
        Message:
        MOBI-905 Simulator throws exception trying to load on weblogic

        • check for null real file path before loading properties on weblogic

          Modified : /icemobile-ee/trunk/icemobile-ee/simulator/src/main/java/org/icemobile/simulator/servlet/SimulatorServlet.java

        Show
        Philip Breau added a comment - Revision: 36274 Author: philip.breau Date: November-21-13 9:29:12 AM Message: MOBI-905 Simulator throws exception trying to load on weblogic check for null real file path before loading properties on weblogic Modified : /icemobile-ee/trunk/icemobile-ee/simulator/src/main/java/org/icemobile/simulator/servlet/SimulatorServlet.java
        Philip Breau made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Philip Breau
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: