Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10342

Service Log screen is broken

    XMLWordPrintableJSON

    Details

      Description

      Service Log screen is broken.

      Steps to regenerate

      1. Navigate to Logging menu under webtools
        https://demo-trunk.ofbiz.apache.org/webtools/control/LogView
      1. Select Service Log menu

      Console Logs

       |T| [[[ServiceLog(Domain:https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
      2018-04-16 16:23:03,482 |jsse-nio-8443-exec-8 |RequestHandler                |I| Rendering View [ServiceLog].  Hidden sessionId by default.
      2018-04-16 16:23:03,483 |jsse-nio-8443-exec-8 |ServiceDispatcher             |T| Sync service [webtools/getUserPreferenceGroup] finished in [1] milliseconds
      2018-04-16 16:23:03,484 |jsse-nio-8443-exec-8 |ScriptUtil                    |W| Error running script at location [component://webtools/groovyScripts/service/Services.groovy]: java.lang.NullPointerException
      java.lang.NullPointerException: null
              at org.apache.ofbiz.service.RunningService.getEndStamp(RunningService.java:63) ~[ofbiz.jar:?]
              at org.apache.ofbiz.service.RunningService$getEndStamp$2.call(Unknown Source) ~[?:?]
              at Services$_run_closure1.doCall(Services.groovy:43) ~[?:?]
              at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source) ~[?:?]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_66]
              at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_66]
              at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) ~[groovy-all-2.4.13.jar:2.4.13]
              at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) ~[groovy-all-2.4.13.jar:2.4.13]
              at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294) ~[groovy-all-2.4.13.jar:2.4.13]
              at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) ~[groovy-all-2.4.13.jar:2.4.13]
              at groovy.lang.Closure.call(Closure.java:414) ~[groovy-all-2.4.13.jar:2.4.13]
              at org.codehaus.groovy.runtime.DefaultGroovyMethods.callClosureForMapEntry(DefaultGroovyMethods.java:5276) ~[groovy-all-2.4.13.jar:2.4.13]
              at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2117) ~[groovy-all-2.4.13.jar:2.4.13]
              at org.codehaus.groovy.runtime.dgm$164.invoke(Unknown Source) ~[groovy-all-2.4.13.jar:2.4.13]
              at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274) ~[groovy-all-2.4.13.jar:2.4.13]
              at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56) ~[groovy-all-2.4.13.jar:2.4.13]
              at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) ~[groovy-all-2.4.13.jar:2.4.13]
              at Services.run(Services.groovy:38) ~[?:?]
              at org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:209) ~[ofbiz.jar:?]
              at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:342) [ofbiz.jar:?]
              at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324) [ofbiz.jar:?]
              at org.apache.ofbiz.widget.model.AbstractModelAction$Script.runAction(AbstractModelAction.java:634) [ofbiz.jar:?]
              at org.apache.ofbiz.widget.model.AbstractModelAction.runSubActions(AbstractModelAction.java:143) [ofbiz.jar:?]
              at org.apache.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:277) [ofbiz.jar:?]
              at org.apache.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz.jar:?]
              at org.apache.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:140) [ofbiz.jar:?]
              at org.apache.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:102) [ofbiz.jar:?]
              at org.apache.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:115) [ofbiz.jar:?]
              at org.apache.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:1014) [ofbiz.jar:?]
              at org.apache.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:660) [ofbiz.jar:?]
              at org.apache.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:213) [ofbiz.jar:?]
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:686) [javax.servlet-api-4.0.0.jar:4.0.0]
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:791) [javax.servlet-api-4.0.0.jar:4.0.0]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [tomcat-catalina-8.5.24.jar:8.5.24]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-catalina-8.5.24.jar:8.5.24]
              at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-embed-websocket-8.5.24.jar:8.5.24]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-catalina-8.5.24.jar:8.5.24]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-catalina-8.5.24.jar:8.5.24]
              at org.apache.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:217) [ofbiz.jar:?]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-catalina-8.5.24.jar:8.5.24]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-catalina-8.5.24.jar:8.5.24]
              at org.apache.ofbiz.webapp.control.ControlFilter.doFilter(ControlFilter.java:157) [ofbiz.jar:?]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-catalina-8.5.24.jar:8.5.24]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-catalina-8.5.24.jar:8.5.24]
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) [tomcat-catalina-8.5.24.jar:8.5.24]
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-catalina-8.5.24.jar:8.5.24]
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) [tomcat-catalina-8.5.24.jar:8.5.24]
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) [tomcat-catalina-8.5.24.jar:8.5.24]
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) [tomcat-catalina-8.5.24.jar:8.5.24]
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-catalina-8.5.24.jar:8.5.24]
              at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650) [tomcat-catalina-8.5.24.jar:8.5.24]
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) [tomcat-catalina-8.5.24.jar:8.5.24]
              at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) [tomcat-coyote-8.5.24.jar:8.5.24]
              at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-coyote-8.5.24.jar:8.5.24]
              at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) [tomcat-coyote-8.5.24.jar:8.5.24]
              at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) [tomcat-coyote-8.5.24.jar:8.5.24]
              at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-coyote-8.5.24.jar:8.5.24]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_66]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_66]
              at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util-8.5.24.jar:8.5.24]
              at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
      2018-04-16 16:23:03,489 |jsse-nio-8443-exec-8 |ControlServlet                |E| Error in request handler: 
      java.lang.IllegalArgumentException: Error running script at location [component://webtools/groovyScripts/service/Services.groovy]: java.lang.NullPointerException
      

        Attachments

        1. OFBIZ-10342.patch
          3 kB
          Jacques Le Roux
        2. serviceLog.png
          34 kB
          Swapnil Mane

          Activity

            People

            • Assignee:
              jleroux Jacques Le Roux
              Reporter:
              swapnilmmane Swapnil Mane
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: