1 Reply Latest reply on Aug 17, 2017 6:02 AM by Fred

    Openfire 4.1.5, workgroup Form  : NullPointerException

    Fred

      Hi all,

      I' try to use the fastpath plugin, this is pretty good.

       

      But everytime I restart the OpenFIRE server, I have one NPE when i edit the workgroup by its name (page workgroup-queues.jsp?wgID=demo@server) from Fastpath tab.

       

      Exception:

      java.lang.NullPointerException 
           at org.jivesoftware.openfire.plugin.fastpath.workgroup_002dqueues_jsp._jspService(workgroup_002dqueues_jsp.java:486)
           at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
           at org.jivesoftware.openfire.container.PluginServlet.handleJSP(PluginServlet.java:388)
           at org.jivesoftware.openfire.container.PluginServlet.service(PluginServlet.java:103)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
           at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
           at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:226)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
           at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:165)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
           at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
           at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
           at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:76)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
           at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:53)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
           at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:226)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
           at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:165)
           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
           at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
           at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
           at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
           at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
           at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
           at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
           at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
           at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
           at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.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.java:257)
           at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
           at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
           at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
           at java.lang.Thread.run(Unknown Source)

       

      Anyway I can edit the workgroup by using Members link, then follow the link to the group name (page workgroup-properties.jsp?wgID=demo@server).

      Then I follow Form UI, save not change, and now workgroup edition/view is fine.

       

      No other logs from OpenFire server.

      Any idea ?

       

      Regards,

      Fred

        • Re: Openfire 4.1.5, Fastpath 4.4.2  : NullPointerException
          Fred

          Hi all,

           

          Despite this issue is better discovered using Fastpath, this issue is relative to the openfire projet where the org.jivesoftware.openfire.plugin.fastpath.workgroup_002dqueues_jsp is located.

           

          Reason of moving this report from fastpath plugin to main openfire discussion.

           

          DataForm dataForm = formManager.getDataForm(workgroup); returns null leading to NPE.

           

          This happen for any workgroup, including default one after fastpath install, after any server shutdown, at least for the embeded database.

           

          As previouly said, there is a workaround updating the form UI after each openfire restart, a bit boring anyway.

          Didn't succeed yet at running openfire in debug mode to get more information.

           

          Regards,

          Fred