ICEfaces
  1. ICEfaces
  2. ICE-11067

NPE when using showcase-mobile camcorder or microphone with ios device on Jetty 9.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-4.1.0.GA
    • Fix Version/s: 4.2.BETA, 4.2
    • Labels:
      None
    • Environment:
      Jetty 9.2.17, ICEfaces EE-4.1.0.GA Jenkins build 4, ios ipad 9.3.2
    • Assignee Priority:
      P2

      Description

      NPE when using showcase-mobile camcorder demo with ios - however video can be uploaded and played back.
      Also seen when using microphone...
      2016-06-13 11:59:47.656:WARN:oejs.HttpChannel:qtp254982165-15: /showcase/javax.f
      aces.resource/c983a118-37d0-42a6-8891-5013c83acde8.jsf;jsessionid=15ojm28vqr717m
      25e0fqss12n
      java.lang.NullPointerException
              at org.icefaces.impl.push.servlet.ICEpushResourceHandler$ICEpushResource
      HandlerImpl.handleResourceRequest(ICEpushResourceHandler.java:248)
              at org.icefaces.impl.push.servlet.ICEpushResourceHandler.handleResourceR
      equest(ICEpushResourceHandler.java:142)
              at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(
      ResourceHandlerWrapper.java:153)
              at org.icefaces.impl.application.ClientDescriptorSetup.handleSessionAwar
      eResourceRequest(ClientDescriptorSetup.java:44)
              at org.icefaces.impl.application.SessionAwareResourceHandlerWrapper.hand
      leResourceRequest(SessionAwareResourceHandlerWrapper.java:40)
              at org.icefaces.impl.application.SessionTimeoutMonitor.handleSessionAwar
      eResourceRequest(SessionTimeoutMonitor.java:63)
              at org.icefaces.impl.application.SessionAwareResourceHandlerWrapper.hand
      leResourceRequest(SessionAwareResourceHandlerWrapper.java:40)
              at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(
      ResourceHandlerWrapper.java:153)
              at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(
      ResourceHandlerWrapper.java:153)
              at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(
      ResourceHandlerWrapper.java:153)
              at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(
      ResourceHandlerWrapper.java:153)
              at org.icefaces.ace.component.qrcode.generator.QRCodeResourceHandler.han
      dleResourceRequest(QRCodeResourceHandler.java:67)
              at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(
      ResourceHandlerWrapper.java:153)
              at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(
      ResourceHandlerWrapper.java:153)
              at org.icefaces.mobi.component.geotrack.GeoTrackResourceHandler.handleRe
      sourceRequest(GeoTrackResourceHandler.java:131)
              at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(
      ResourceHandlerWrapper.java:153)
              at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(
      ResourceHandlerWrapper.java:153)
              at org.icefaces.impl.application.AuxUploadResourceHandler.handleResource
      Request(AuxUploadResourceHandler.java:82)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:655)
              at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812
      )
              at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java
      :587)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j
      ava:143)
              at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav
      a:577)
              at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl
      er.java:223)
              at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl
      er.java:1127)
              at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
      515)
              at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle
      r.java:185)
              at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle
      r.java:1061)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j
      ava:141)
              at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(Cont
      extHandlerCollection.java:215)
              at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerColl
      ection.java:110)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper
      .java:97)
              at org.eclipse.jetty.server.Server.handle(Server.java:499)
              at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
              at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.jav
      a:257)
              at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java
      :544)
              at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo
      l.java:635)
              at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool
      .java:555)
              at java.lang.Thread.run(Unknown Source)
      2016-06-13 11:59:47.656:WARN:oejs.HttpChannel:qtp254982165-15: Could not send re
      sponse error 500: java.lang.NullPointerException

      Server warning when using camera on ios -
      2016-06-13 12:02:56.654:WARN:oeju.MultiPartInputStreamParser:qtp254982165-12: Ba
      dly formatted multipart request
      auxMap: cam=org.icefaces.impl.application.PersistentPart@2a7df2f3


        Activity

        Hide
        Mircea Toma added a comment -

        Test for null exception message when IOException is triggered.

        Show
        Mircea Toma added a comment - Test for null exception message when IOException is triggered.
        Hide
        Liana Munroe added a comment -

        Tested with ICEfaces 4 trunk r48973, Jetty 9.2.17, ios 9.3.2, android 6.0.1
        The NPE no longer appears and demos function as expected. There are still server warnings when using the camera, camcorder and microphone demos on ios device. Is this an issue?

        2016-06-23 10:12:34.005:WARN:oeju.MultiPartInputStreamParser:qtp254982165-15: Ba
        dly formatted multipart request
        auxMap: cam=org.icefaces.impl.application.PersistentPart@36e1b8c2
        2016-06-23 10:12:55.844:WARN:oeju.MultiPartInputStreamParser:qtp254982165-13: Ba
        dly formatted multipart request
        auxMap: cc=org.icefaces.impl.application.PersistentPart@97ac7d4
        2016-06-23 10:13:09.700:WARN:oeju.MultiPartInputStreamParser:qtp254982165-11: Ba
        dly formatted multipart request
        auxMap: j_idt143=org.icefaces.impl.application.PersistentPart@64bda41
        
        
        Show
        Liana Munroe added a comment - Tested with ICEfaces 4 trunk r48973, Jetty 9.2.17, ios 9.3.2, android 6.0.1 The NPE no longer appears and demos function as expected. There are still server warnings when using the camera, camcorder and microphone demos on ios device. Is this an issue? 2016-06-23 10:12:34.005:WARN:oeju.MultiPartInputStreamParser:qtp254982165-15: Ba dly formatted multipart request auxMap: cam=org.icefaces.impl.application.PersistentPart@36e1b8c2 2016-06-23 10:12:55.844:WARN:oeju.MultiPartInputStreamParser:qtp254982165-13: Ba dly formatted multipart request auxMap: cc=org.icefaces.impl.application.PersistentPart@97ac7d4 2016-06-23 10:13:09.700:WARN:oeju.MultiPartInputStreamParser:qtp254982165-11: Ba dly formatted multipart request auxMap: j_idt143=org.icefaces.impl.application.PersistentPart@64bda41
        Hide
        Mircea Toma added a comment - - edited

        The NPE is taken care of now, previously the exception handling was handling only Tomcat specific severed connection exceptions.
        I cannot reproduce the new warnings on iOS 9.3.2.

        Show
        Mircea Toma added a comment - - edited The NPE is taken care of now, previously the exception handling was handling only Tomcat specific severed connection exceptions. I cannot reproduce the new warnings on iOS 9.3.2.
        Hide
        Carmen Cristurean added a comment -

        Reproduced the above warnings with ICEfaces4 trunk r.49097 on Jetty9.2.9, non-SSL configuration and iOS7.

        Show
        Carmen Cristurean added a comment - Reproduced the above warnings with ICEfaces4 trunk r.49097 on Jetty9.2.9, non-SSL configuration and iOS7.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Liana Munroe
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: