Uploaded image for project: 'Openmeetings'
  1. Openmeetings
  2. OPENMEETINGS-2202

NPE while invalidating session

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.10
    • 5.0.0-M4, 4.0.11
    • SOAP/REST API
    • None

    Description

      From mailing lists:

      Hi, second message in a row. Again, OM 4.0.10, openjdk 11, ubuntu 18.04. I'm finding this in the output, I really don't know how to reproduce it, or what effect has in the final user's experience, but it's an exception, so it may cause a wrong behavior:

      DEBUG 03-26 09:12:38.546 o.a.o.w.c.MainPanel:118 [0.0-5453-exec-6] - Sending WebSocket PING
      ERROR 03-26 09:12:38.828 o.a.o.w.a.WebSession:207 [0.0-5453-exec-8] - Unexpected exception while checking hashes
      java.lang.NullPointerException: null
              at org.apache.openmeetings.db.entity.basic.Client.getUserId(Client.java:123)
              at org.apache.openmeetings.web.app.ClientManager.lambda$getByKeys$0(ClientManager.java:296)
              at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:176)
              at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
              at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
              at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
              at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
              at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
              at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
              at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
              at org.apache.openmeetings.web.app.ClientManager.getByKeys(ClientManager.java:297)
              at org.apache.openmeetings.web.app.ClientManager.invalidate(ClientManager.java:301)
              at org.apache.openmeetings.web.app.WebSession.invalidate(WebSession.java:121)
              at org.apache.wicket.Session.invalidateNow(Session.java:520)
              at org.apache.openmeetings.web.app.WebSession.checkHashes(WebSession.java:182)
              at org.apache.openmeetings.web.pages.HashPage.onInitialize(HashPage.java:102)
              at org.apache.wicket.Component.fireInitialize(Component.java:873)
              at org.apache.wicket.MarkupContainer.internalInitialize(MarkupContainer.java:1038)
              at org.apache.wicket.Page.isPageStateless(Page.java:461)
              at org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.getPageInfo(AbstractBookmarkableMapper.java:473)
              at org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.mapHandler(AbstractBookmarkableMapper.java:420)
              at org.apache.wicket.core.request.mapper.MountedMapper.mapHandler(MountedMapper.java:155)
              at org.apache.openmeetings.web.app.Application$NoVersionMapper.mapHandler(Application.java:285)
              at org.apache.wicket.request.mapper.CompoundRequestMapper.mapHandler(CompoundRequestMapper.java:210)
              at org.apache.wicket.request.cycle.RequestCycle.mapUrlFor(RequestCycle.java:451)
              at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:233)
              at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:202)
              at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:914)
              at org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:65)
              at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:282)
              at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:253)
              at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:221)
              at org.apache.wicket.protocol.ws.AbstractUpgradeFilter.processRequestCycle(AbstractUpgradeFilter.java:70)
              at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:206)
              at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:299)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:84)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:643)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
              at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
              at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)
              at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
              at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860)
              at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1682)
              at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
              at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1105)
              at org.apache.tomcat.util.net.SecureNio2Channel$HandshakeWriteCompletionHandler.completed(SecureNio2Channel.java:116)
              at org.apache.tomcat.util.net.SecureNio2Channel$HandshakeWriteCompletionHandler.completed(SecureNio2Channel.java:109)
              at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
              at java.base/sun.nio.ch.Invoker.invokeDirect(Invoker.java:158)
              at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.implWrite(UnixAsynchronousSocketChannelImpl.java:746)
              at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.write(AsynchronousSocketChannelImpl.java:383)
              at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.write(AsynchronousSocketChannelImpl.java:400)
              at org.apache.tomcat.util.net.SecureNio2Channel.handshakeInternal(SecureNio2Channel.java:298)
              at org.apache.tomcat.util.net.SecureNio2Channel.handshake(SecureNio2Channel.java:217)
              at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1660)
              at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
              at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1105)
              at org.apache.tomcat.util.net.SecureNio2Channel$HandshakeReadCompletionHandler.completed(SecureNio2Channel.java:99)
              at org.apache.tomcat.util.net.SecureNio2Channel$HandshakeReadCompletionHandler.completed(SecureNio2Channel.java:92)
              at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
              at java.base/sun.nio.ch.Invoker$2.run(Invoker.java:219)
              at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
              at java.base/java.lang.Thread.run(Thread.java:834)
      

      Attachments

        Issue Links

          Activity

            People

              solomax Maxim Solodovnik
              solomax Maxim Solodovnik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: