[jira] [Created] (OFBIZ-7900) Exception in Multi-Tenant Env - When Using an non existence Tenant ID

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (OFBIZ-7900) Exception in Multi-Tenant Env - When Using an non existence Tenant ID

Nicolas Malin (Jira)
Derek Lew created OFBIZ-7900:
--------------------------------

             Summary: Exception in Multi-Tenant Env - When Using an non existence Tenant ID
                 Key: OFBIZ-7900
                 URL: https://issues.apache.org/jira/browse/OFBIZ-7900
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: Release Branch 14.12
         Environment: Win 10, Derby
            Reporter: Derek Lew
            Priority: Minor


Steps to recreate:

1) Enable Multi-tenant, and using only the default derby DB
2) ant clean-all
3) ant load-demo-multitenant
4) ./tools/startofbiz.bat
5) go to https://localhost:8443/partymgr/control/login
6) login using admin/ofbiz/DEMO3, DEMO3 being the non existence tenant ID.  And you got the following error:

2016-07-19 15:13:59,397 |main                 |UtilXml                       |E| XmlFileLoader: File file:/E:/OfBiz14.12/themes/ecdefault/ofbiz-component.xml process error. Line: 63. Error message: cvc-enumeration-valid: Value 'Themes' is not facet-valid with respect to enumeration '[main, secondary]'. It must be a value from the enumeration.
2016-07-19 15:13:59,397 |main                 |UtilXml                       |E| XmlFileLoader: File file:/E:/OfBiz14.12/themes/ecdefault/ofbiz-component.xml process error. Line: 63. Error message: cvc-attribute.3: The value 'Themes' of attribute 'menu-name' on element 'webapp' is not valid with respect to its type, '#AnonType_menu-nameattlist.webapp'.
2016-07-19 15:13:59,407 |main                 |UtilXml                       |E| XmlFileLoader: File file:/E:/OfBiz14.12/themes/ecdefault/ofbiz-component.xml process error. Line: 63. Error message: cvc-enumeration-valid: Value 'Themes' is not facet-valid with respect to enumeration '[main, secondary]'. It must be a value from the enumeration.
2016-07-19 15:13:59,407 |main                 |UtilXml                       |E| XmlFileLoader: File file:/E:/OfBiz14.12/themes/ecdefault/ofbiz-component.xml process error. Line: 63. Error message: cvc-attribute.3: The value 'Themes' of attribute 'menu-name' on element 'webapp' is not valid with respect to its type, '#AnonType_menu-nameattlist.webapp'.
2016-07-19 15:14:17,357 |delegator-startup-9  |DelegatorFactoryImpl          |E| Error creating delegator
org.ofbiz.entity.GenericEntityException: No Tenant record found for delegator [default#DEMO3] with tenantId [DEMO3]
        at org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:202) ~[ofbiz-entity.jar:?]
        at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33) [ofbiz-entity.jar:?]
        at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25) [ofbiz-entity.jar:?]
        at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:200) [ofbiz-base.jar:?]
        at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83) [ofbiz-entity.jar:?]
        at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74) [ofbiz-entity.jar:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_92]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_92]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
2016-07-19 15:14:17,363 |delegator-startup-9  |DelegatorFactoryImpl          |E| null
java.lang.ClassNotFoundException: java.lang.Class
        at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:205) ~[ofbiz-base.jar:?]
        at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83) [ofbiz-entity.jar:?]
        at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74) [ofbiz-entity.jar:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_92]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_92]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
2016-07-19 15:14:17,363 |ttp-nio-8443-exec-10 |DelegatorFactoryImpl          |E| null
java.util.concurrent.ExecutionException: java.lang.ClassNotFoundException: java.lang.Class
        at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_92]
        at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_92]
        at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:44) [ofbiz-entity.jar:?]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:296) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.ClassNotFoundException: java.lang.Class
        at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:205) ~[ofbiz-base.jar:?]
        at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83) ~[ofbiz-entity.jar:?]
        at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74) ~[ofbiz-entity.jar:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_92]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_92]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_92]
        ... 1 more
2016-07-19 15:14:17,364 |ttp-nio-8443-exec-10 |ContextFilter                 |E| An invalid (null) Security object has been set in the servlet context.
2016-07-19 15:14:17,369 |ttp-nio-8443-exec-10 |DelegatorFactoryImpl          |E| null
java.util.concurrent.ExecutionException: java.lang.ClassNotFoundException: java.lang.Class
        at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_92]
        at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_92]
        at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:44) [ofbiz-entity.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:153) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) [servlet-api-3.1.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api-3.1.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.ClassNotFoundException: java.lang.Class
        at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:205) ~[ofbiz-base.jar:?]
        at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83) ~[ofbiz-entity.jar:?]
        at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74) ~[ofbiz-entity.jar:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_92]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_92]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_92]
        ... 1 more
2016-07-19 15:14:17,369 |ttp-nio-8443-exec-10 |ControlServlet                |E| [ControlServlet] ERROR: security not found in ServletContext
2016-07-19 15:14:17,539 |ttp-nio-8443-exec-10 |DelegatorFactoryImpl          |E| null
java.util.concurrent.ExecutionException: java.lang.ClassNotFoundException: java.lang.Class
        at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_92]
        at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_92]
        at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:44) [ofbiz-entity.jar:?]
        at org.ofbiz.webapp.control.LoginWorker.login(LoginWorker.java:455) [ofbiz-webapp.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_92]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_92]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
        at org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:96) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:80) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:757) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:477) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) [servlet-api-3.1.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api-3.1.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.ClassNotFoundException: java.lang.Class
        at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:205) ~[ofbiz-base.jar:?]
        at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83) ~[ofbiz-entity.jar:?]
        at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74) ~[ofbiz-entity.jar:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_92]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_92]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_92]
        ... 1 more
2016-07-19 15:14:17,540 |ttp-nio-8443-exec-10 |ContextFilter                 |E| [ContextFilter.init] ERROR: delegator not defined.
2016-07-19 15:14:17,543 |ttp-nio-8443-exec-10 |JavaEventHandler              |E| Problems Processing Event
java.lang.NullPointerException
        at org.ofbiz.webapp.control.LoginWorker.login(LoginWorker.java:490) ~[ofbiz-webapp.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_92]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_92]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
        at org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:96) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:80) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:757) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:477) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) [servlet-api-3.1.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api-3.1.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
2016-07-19 15:14:17,624 |ttp-nio-8443-exec-10 |RequestHandler                |E| Request login caused an error with the following message: Error calling event: org.ofbiz.webapp.event.EventHandlerException: Problems processing event: java.lang.NullPointerException (null)
2016-07-19 15:14:22,020 |ttp-nio-8443-exec-10 |runtime                       |E| Error executing FreeMarker template
freemarker.core._TemplateModelException: Java method "static org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security, org.ofbiz.entity.GenericValue, String, String)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
        - Failed at: #assign displayApps = Static["org.ofb...  [in template "component://tomahawk/includes/appbarOpen.ftl" at line 24, column 1]
----
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MethodCall._eval(MethodCall.java:62) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Expression.eval(Expression.java:78) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Assignment.accept(Assignment.java:70) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MixedContent.accept(MixedContent.java:62) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.process(Environment.java:290) [freemarker-2.3.22.jar:2.3.22]
        at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) [ofbiz-base.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157) [ofbiz-widget.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) [servlet-api-3.1.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api-3.1.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.NullPointerException
        at org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102) ~[ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145) ~[ofbiz-webapp.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_92]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_92]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
        at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71) ~[freemarker-2.3.22.jar:2.3.22]
        ... 64 more
2016-07-19 15:14:22,044 |ttp-nio-8443-exec-10 |runtime                       |E| Error executing FreeMarker template
freemarker.core._TemplateModelException: Java method "static org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security, org.ofbiz.entity.GenericValue, String, String)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
        - Failed at: #assign displaySecondaryApps = Static...  [in template "component://tomahawk/includes/appbarOpen.ftl" at line 25, column 1]
----
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MethodCall._eval(MethodCall.java:62) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Expression.eval(Expression.java:78) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Assignment.accept(Assignment.java:70) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MixedContent.accept(MixedContent.java:62) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.process(Environment.java:290) [freemarker-2.3.22.jar:2.3.22]
        at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) [ofbiz-base.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157) [ofbiz-widget.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) [servlet-api-3.1.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api-3.1.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.NullPointerException
        at org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102) ~[ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145) ~[ofbiz-webapp.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_92]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_92]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
        at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71) ~[freemarker-2.3.22.jar:2.3.22]
        ... 64 more
2016-07-19 15:14:29,938 |http-nio-8443-exec-8 |ControlServlet                |E| [ControlServlet] ERROR: security not found in ServletContext
2016-07-19 15:14:30,214 |http-nio-8443-exec-8 |runtime                       |E| Error executing FreeMarker template
freemarker.core._TemplateModelException: Java method "static org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security, org.ofbiz.entity.GenericValue, String, String)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
        - Failed at: #assign displayApps = Static["org.ofb...  [in template "component://tomahawk/includes/appbarOpen.ftl" at line 24, column 1]
----
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MethodCall._eval(MethodCall.java:62) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Expression.eval(Expression.java:78) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Assignment.accept(Assignment.java:70) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MixedContent.accept(MixedContent.java:62) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.process(Environment.java:290) [freemarker-2.3.22.jar:2.3.22]
        at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) [ofbiz-base.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157) [ofbiz-widget.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) [servlet-api-3.1.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api-3.1.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.NullPointerException
        at org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102) ~[ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145) ~[ofbiz-webapp.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_92]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_92]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
        at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71) ~[freemarker-2.3.22.jar:2.3.22]
        ... 63 more
2016-07-19 15:14:30,219 |http-nio-8443-exec-8 |runtime                       |E| Error executing FreeMarker template
freemarker.core._TemplateModelException: Java method "static org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security, org.ofbiz.entity.GenericValue, String, String)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
        - Failed at: #assign displaySecondaryApps = Static...  [in template "component://tomahawk/includes/appbarOpen.ftl" at line 25, column 1]
----
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MethodCall._eval(MethodCall.java:62) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Expression.eval(Expression.java:78) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Assignment.accept(Assignment.java:70) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MixedContent.accept(MixedContent.java:62) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.process(Environment.java:290) [freemarker-2.3.22.jar:2.3.22]
        at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) [ofbiz-base.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157) [ofbiz-widget.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) [servlet-api-3.1.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api-3.1.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.NullPointerException
        at org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102) ~[ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145) ~[ofbiz-webapp.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_92]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_92]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
        at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71) ~[freemarker-2.3.22.jar:2.3.22]
        ... 63 more
2016-07-19 15:14:32,555 |http-nio-8443-exec-2 |ControlServlet                |E| [ControlServlet] ERROR: security not found in ServletContext
2016-07-19 15:14:32,733 |http-nio-8443-exec-2 |runtime                       |E| Error executing FreeMarker template
freemarker.core._TemplateModelException: Java method "static org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security, org.ofbiz.entity.GenericValue, String, String)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
        - Failed at: #assign displayApps = Static["org.ofb...  [in template "component://tomahawk/includes/appbarOpen.ftl" at line 24, column 1]
----
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MethodCall._eval(MethodCall.java:62) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Expression.eval(Expression.java:78) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Assignment.accept(Assignment.java:70) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MixedContent.accept(MixedContent.java:62) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.process(Environment.java:290) [freemarker-2.3.22.jar:2.3.22]
        at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) [ofbiz-base.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157) [ofbiz-widget.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) [servlet-api-3.1.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api-3.1.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.NullPointerException
        at org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102) ~[ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145) ~[ofbiz-webapp.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_92]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_92]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
        at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71) ~[freemarker-2.3.22.jar:2.3.22]
        ... 63 more
2016-07-19 15:14:32,738 |http-nio-8443-exec-2 |runtime                       |E| Error executing FreeMarker template
freemarker.core._TemplateModelException: Java method "static org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security, org.ofbiz.entity.GenericValue, String, String)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
        - Failed at: #assign displaySecondaryApps = Static...  [in template "component://tomahawk/includes/appbarOpen.ftl" at line 25, column 1]
----
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MethodCall._eval(MethodCall.java:62) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Expression.eval(Expression.java:78) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Assignment.accept(Assignment.java:70) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MixedContent.accept(MixedContent.java:62) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.process(Environment.java:290) [freemarker-2.3.22.jar:2.3.22]
        at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) [ofbiz-base.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157) [ofbiz-widget.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) [servlet-api-3.1.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api-3.1.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.NullPointerException
        at org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102) ~[ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145) ~[ofbiz-webapp.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_92]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_92]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
        at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71) ~[freemarker-2.3.22.jar:2.3.22]
        ... 63 more
2016-07-19 15:14:36,366 |ttp-nio-8443-exec-11 |ControlServlet                |E| [ControlServlet] ERROR: security not found in ServletContext
2016-07-19 15:14:36,443 |ttp-nio-8443-exec-11 |runtime                       |E| Error executing FreeMarker template
freemarker.core._TemplateModelException: Java method "static org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security, org.ofbiz.entity.GenericValue, String, String)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
        - Failed at: #assign displayApps = Static["org.ofb...  [in template "component://tomahawk/includes/appbarOpen.ftl" at line 24, column 1]
----
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MethodCall._eval(MethodCall.java:62) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Expression.eval(Expression.java:78) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Assignment.accept(Assignment.java:70) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MixedContent.accept(MixedContent.java:62) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.process(Environment.java:290) [freemarker-2.3.22.jar:2.3.22]
        at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) [ofbiz-base.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157) [ofbiz-widget.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) [servlet-api-3.1.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api-3.1.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.NullPointerException
        at org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102) ~[ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145) ~[ofbiz-webapp.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_92]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_92]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
        at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71) ~[freemarker-2.3.22.jar:2.3.22]
        ... 63 more
2016-07-19 15:14:36,447 |ttp-nio-8443-exec-11 |runtime                       |E| Error executing FreeMarker template
freemarker.core._TemplateModelException: Java method "static org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security, org.ofbiz.entity.GenericValue, String, String)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
        - Failed at: #assign displaySecondaryApps = Static...  [in template "component://tomahawk/includes/appbarOpen.ftl" at line 25, column 1]
----
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MethodCall._eval(MethodCall.java:62) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Expression.eval(Expression.java:78) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Assignment.accept(Assignment.java:70) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MixedContent.accept(MixedContent.java:62) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.process(Environment.java:290) [freemarker-2.3.22.jar:2.3.22]
        at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) [ofbiz-base.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157) [ofbiz-widget.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) [servlet-api-3.1.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api-3.1.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.NullPointerException
        at org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102) ~[ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145) ~[ofbiz-webapp.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_92]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_92]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
        at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71) ~[freemarker-2.3.22.jar:2.3.22]
        ... 63 more
2016-07-19 15:14:54,789 |http-nio-8443-exec-3 |DelegatorFactoryImpl          |E| null
java.util.concurrent.ExecutionException: java.lang.ClassNotFoundException: java.lang.Class
        at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_92]
        at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_92]
        at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:44) [ofbiz-entity.jar:?]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:296) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.ClassNotFoundException: java.lang.Class
        at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:205) ~[ofbiz-base.jar:?]
        at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83) ~[ofbiz-entity.jar:?]
        at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74) ~[ofbiz-entity.jar:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_92]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_92]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_92]
        ... 1 more
2016-07-19 15:14:54,791 |http-nio-8443-exec-3 |ContextFilter                 |E| An invalid (null) Security object has been set in the servlet context.
2016-07-19 15:14:54,791 |http-nio-8443-exec-3 |DelegatorFactoryImpl          |E| null
java.util.concurrent.ExecutionException: java.lang.ClassNotFoundException: java.lang.Class
        at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_92]
        at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_92]
        at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:44) [ofbiz-entity.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:153) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) [servlet-api-3.1.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api-3.1.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.ClassNotFoundException: java.lang.Class
        at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:205) ~[ofbiz-base.jar:?]
        at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83) ~[ofbiz-entity.jar:?]
        at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74) ~[ofbiz-entity.jar:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_92]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_92]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_92]
        ... 1 more
2016-07-19 15:14:54,792 |http-nio-8443-exec-3 |ControlServlet                |E| [ControlServlet] ERROR: security not found in ServletContext
2016-07-19 15:14:54,901 |http-nio-8443-exec-3 |DelegatorFactoryImpl          |E| null
java.util.concurrent.ExecutionException: java.lang.ClassNotFoundException: java.lang.Class
        at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_92]
        at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_92]
        at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:44) [ofbiz-entity.jar:?]
        at org.ofbiz.webapp.control.LoginWorker.login(LoginWorker.java:455) [ofbiz-webapp.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_92]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_92]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
        at org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:96) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:80) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:757) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:477) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) [servlet-api-3.1.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api-3.1.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.ClassNotFoundException: java.lang.Class
        at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:205) ~[ofbiz-base.jar:?]
        at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83) ~[ofbiz-entity.jar:?]
        at org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74) ~[ofbiz-entity.jar:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_92]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_92]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_92]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_92]
        ... 1 more
2016-07-19 15:14:54,902 |http-nio-8443-exec-3 |ContextFilter                 |E| [ContextFilter.init] ERROR: delegator not defined.
2016-07-19 15:14:54,902 |http-nio-8443-exec-3 |JavaEventHandler              |E| Problems Processing Event
java.lang.NullPointerException
        at org.ofbiz.webapp.control.LoginWorker.login(LoginWorker.java:490) ~[ofbiz-webapp.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_92]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_92]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
        at org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:96) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:80) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:757) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:477) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) [servlet-api-3.1.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api-3.1.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
2016-07-19 15:14:54,903 |http-nio-8443-exec-3 |RequestHandler                |E| Request login caused an error with the following message: Error calling event: org.ofbiz.webapp.event.EventHandlerException: Problems processing event: java.lang.NullPointerException (null)
2016-07-19 15:14:55,227 |http-nio-8443-exec-3 |runtime                       |E| Error executing FreeMarker template
freemarker.core._TemplateModelException: Java method "static org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security, org.ofbiz.entity.GenericValue, String, String)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
        - Failed at: #assign displayApps = Static["org.ofb...  [in template "component://tomahawk/includes/appbarOpen.ftl" at line 24, column 1]
----
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MethodCall._eval(MethodCall.java:62) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Expression.eval(Expression.java:78) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Assignment.accept(Assignment.java:70) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MixedContent.accept(MixedContent.java:62) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.process(Environment.java:290) [freemarker-2.3.22.jar:2.3.22]
        at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) [ofbiz-base.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157) [ofbiz-widget.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) [servlet-api-3.1.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api-3.1.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.NullPointerException
        at org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102) ~[ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145) ~[ofbiz-webapp.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_92]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_92]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
        at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71) ~[freemarker-2.3.22.jar:2.3.22]
        ... 64 more
2016-07-19 15:14:55,233 |http-nio-8443-exec-3 |runtime                       |E| Error executing FreeMarker template
freemarker.core._TemplateModelException: Java method "static org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security, org.ofbiz.entity.GenericValue, String, String)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
        - Failed at: #assign displaySecondaryApps = Static...  [in template "component://tomahawk/includes/appbarOpen.ftl" at line 25, column 1]
----
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MethodCall._eval(MethodCall.java:62) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Expression.eval(Expression.java:78) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Assignment.accept(Assignment.java:70) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MixedContent.accept(MixedContent.java:62) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.process(Environment.java:290) [freemarker-2.3.22.jar:2.3.22]
        at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) [ofbiz-base.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157) [ofbiz-widget.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89) [ofbiz-webapp.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) [servlet-api-3.1.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api-3.1.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326) [ofbiz-webapp.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [tomcat-8.0.33-catalina.jar:8.0.33]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-8.0.33-tomcat-util.jar:8.0.33]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
Caused by: java.lang.NullPointerException
        at org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102) ~[ofbiz-webapp.jar:?]
        at org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145) ~[ofbiz-webapp.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_92]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_92]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
        at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71) ~[freemarker-2.3.22.jar:2.3.22]
        ... 64 more




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Reply | Threaded
Open this post in threaded view
|

Re: [jira] [Created] (OFBIZ-7900) Exception in Multi-Tenant Env - When Using an non existence Tenant ID

Pierre Smits
Hi Derek,

FWIW, I regard ant load-demo-multitenant as a deprecated set of
functionalities.

The best process to setup tenant is to use the ./ant create-tenant task.

Best regards,


Pierre Smits

ORRTIZ.COM <http://www.orrtiz.com>
OFBiz based solutions & services

OFBiz Extensions Marketplace
http://oem.ofbizci.net/oci-2/

On Tue, Jul 19, 2016 at 9:18 AM, Derek Lew (JIRA) <[hidden email]> wrote:

> Derek Lew created OFBIZ-7900:
> --------------------------------
>
>              Summary: Exception in Multi-Tenant Env - When Using an non
> existence Tenant ID
>                  Key: OFBIZ-7900
>                  URL: https://issues.apache.org/jira/browse/OFBIZ-7900
>              Project: OFBiz
>           Issue Type: Bug
>           Components: framework
>     Affects Versions: Release Branch 14.12
>          Environment: Win 10, Derby
>             Reporter: Derek Lew
>             Priority: Minor
>
>
> Steps to recreate:
>
> 1) Enable Multi-tenant, and using only the default derby DB
> 2) ant clean-all
> 3) ant load-demo-multitenant
> 4) ./tools/startofbiz.bat
> 5) go to https://localhost:8443/partymgr/control/login
> 6) login using admin/ofbiz/DEMO3, DEMO3 being the non existence tenant
> ID.  And you got the following error:
>
> 2016-07-19 15:13:59,397 |main                 |UtilXml
>    |E| XmlFileLoader: File
> file:/E:/OfBiz14.12/themes/ecdefault/ofbiz-component.xml process error.
> Line: 63. Error message: cvc-enumeration-valid: Value 'Themes' is not
> facet-valid with respect to enumeration '[main, secondary]'. It must be a
> value from the enumeration.
> 2016-07-19 15:13:59,397 |main                 |UtilXml
>    |E| XmlFileLoader: File
> file:/E:/OfBiz14.12/themes/ecdefault/ofbiz-component.xml process error.
> Line: 63. Error message: cvc-attribute.3: The value 'Themes' of attribute
> 'menu-name' on element 'webapp' is not valid with respect to its type,
> '#AnonType_menu-nameattlist.webapp'.
> 2016-07-19 15:13:59,407 |main                 |UtilXml
>    |E| XmlFileLoader: File
> file:/E:/OfBiz14.12/themes/ecdefault/ofbiz-component.xml process error.
> Line: 63. Error message: cvc-enumeration-valid: Value 'Themes' is not
> facet-valid with respect to enumeration '[main, secondary]'. It must be a
> value from the enumeration.
> 2016-07-19 15:13:59,407 |main                 |UtilXml
>    |E| XmlFileLoader: File
> file:/E:/OfBiz14.12/themes/ecdefault/ofbiz-component.xml process error.
> Line: 63. Error message: cvc-attribute.3: The value 'Themes' of attribute
> 'menu-name' on element 'webapp' is not valid with respect to its type,
> '#AnonType_menu-nameattlist.webapp'.
> 2016-07-19 15:14:17,357 |delegator-startup-9  |DelegatorFactoryImpl
>   |E| Error creating delegator
> org.ofbiz.entity.GenericEntityException: No Tenant record found for
> delegator [default#DEMO3] with tenantId [DEMO3]
>         at
> org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:202)
> ~[ofbiz-entity.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33)
> [ofbiz-entity.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25)
> [ofbiz-entity.jar:?]
>         at
> org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:200)
> [ofbiz-base.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83)
> [ofbiz-entity.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74)
> [ofbiz-entity.jar:?]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> [?:1.8.0_92]
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> [?:1.8.0_92]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> 2016-07-19 15:14:17,363 |delegator-startup-9  |DelegatorFactoryImpl
>   |E| null
> java.lang.ClassNotFoundException: java.lang.Class
>         at
> org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:205)
> ~[ofbiz-base.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83)
> [ofbiz-entity.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74)
> [ofbiz-entity.jar:?]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> [?:1.8.0_92]
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> [?:1.8.0_92]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> 2016-07-19 15:14:17,363 |ttp-nio-8443-exec-10 |DelegatorFactoryImpl
>   |E| null
> java.util.concurrent.ExecutionException: java.lang.ClassNotFoundException:
> java.lang.Class
>         at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> ~[?:1.8.0_92]
>         at java.util.concurrent.FutureTask.get(FutureTask.java:192)
> ~[?:1.8.0_92]
>         at
> org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:44)
> [ofbiz-entity.jar:?]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:296)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> Caused by: java.lang.ClassNotFoundException: java.lang.Class
>         at
> org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:205)
> ~[ofbiz-base.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83)
> ~[ofbiz-entity.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74)
> ~[ofbiz-entity.jar:?]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> ~[?:1.8.0_92]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> ~[?:1.8.0_92]
>         ... 1 more
> 2016-07-19 15:14:17,364 |ttp-nio-8443-exec-10 |ContextFilter
>    |E| An invalid (null) Security object has been set in the servlet
> context.
> 2016-07-19 15:14:17,369 |ttp-nio-8443-exec-10 |DelegatorFactoryImpl
>   |E| null
> java.util.concurrent.ExecutionException: java.lang.ClassNotFoundException:
> java.lang.Class
>         at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> ~[?:1.8.0_92]
>         at java.util.concurrent.FutureTask.get(FutureTask.java:192)
> ~[?:1.8.0_92]
>         at
> org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:44)
> [ofbiz-entity.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:153)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89)
> [ofbiz-webapp.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
> [servlet-api-3.1.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api-3.1.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> Caused by: java.lang.ClassNotFoundException: java.lang.Class
>         at
> org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:205)
> ~[ofbiz-base.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83)
> ~[ofbiz-entity.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74)
> ~[ofbiz-entity.jar:?]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> ~[?:1.8.0_92]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> ~[?:1.8.0_92]
>         ... 1 more
> 2016-07-19 15:14:17,369 |ttp-nio-8443-exec-10 |ControlServlet
>   |E| [ControlServlet] ERROR: security not found in ServletContext
> 2016-07-19 15:14:17,539 |ttp-nio-8443-exec-10 |DelegatorFactoryImpl
>   |E| null
> java.util.concurrent.ExecutionException: java.lang.ClassNotFoundException:
> java.lang.Class
>         at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> ~[?:1.8.0_92]
>         at java.util.concurrent.FutureTask.get(FutureTask.java:192)
> ~[?:1.8.0_92]
>         at
> org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:44)
> [ofbiz-entity.jar:?]
>         at
> org.ofbiz.webapp.control.LoginWorker.login(LoginWorker.java:455)
> [ofbiz-webapp.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_92]
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_92]
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_92]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
>         at
> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:96)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:80)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:757)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:477)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89)
> [ofbiz-webapp.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
> [servlet-api-3.1.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api-3.1.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> Caused by: java.lang.ClassNotFoundException: java.lang.Class
>         at
> org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:205)
> ~[ofbiz-base.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83)
> ~[ofbiz-entity.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74)
> ~[ofbiz-entity.jar:?]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> ~[?:1.8.0_92]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> ~[?:1.8.0_92]
>         ... 1 more
> 2016-07-19 15:14:17,540 |ttp-nio-8443-exec-10 |ContextFilter
>    |E| [ContextFilter.init] ERROR: delegator not defined.
> 2016-07-19 15:14:17,543 |ttp-nio-8443-exec-10 |JavaEventHandler
>   |E| Problems Processing Event
> java.lang.NullPointerException
>         at
> org.ofbiz.webapp.control.LoginWorker.login(LoginWorker.java:490)
> ~[ofbiz-webapp.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_92]
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_92]
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_92]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
>         at
> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:96)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:80)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:757)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:477)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89)
> [ofbiz-webapp.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
> [servlet-api-3.1.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api-3.1.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> 2016-07-19 15:14:17,624 |ttp-nio-8443-exec-10 |RequestHandler
>   |E| Request login caused an error with the following message: Error
> calling event: org.ofbiz.webapp.event.EventHandlerException: Problems
> processing event: java.lang.NullPointerException (null)
> 2016-07-19 15:14:22,020 |ttp-nio-8443-exec-10 |runtime
>    |E| Error executing FreeMarker template
> freemarker.core._TemplateModelException: Java method "static
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security,
> org.ofbiz.entity.GenericValue, String, String)" threw an exception; see
> cause exception in the Java stack trace.
>
> ----
> FTL stack trace ("~" means nesting-related):
>         - Failed at: #assign displayApps = Static["org.ofb...  [in
> template "component://tomahawk/includes/appbarOpen.ftl" at line 24, column
> 1]
> ----
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MethodCall._eval(MethodCall.java:62)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Expression.eval(Expression.java:78)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Assignment.accept(Assignment.java:70)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MixedContent.accept(MixedContent.java:62)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.process(Environment.java:290)
> [freemarker-2.3.22.jar:2.3.22]
>         at
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257)
> [ofbiz-base.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89)
> [ofbiz-webapp.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
> [servlet-api-3.1.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api-3.1.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> Caused by: java.lang.NullPointerException
>         at
> org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102)
> ~[ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145)
> ~[ofbiz-webapp.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_92]
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_92]
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_92]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
>         at
> freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71)
> ~[freemarker-2.3.22.jar:2.3.22]
>         ... 64 more
> 2016-07-19 15:14:22,044 |ttp-nio-8443-exec-10 |runtime
>    |E| Error executing FreeMarker template
> freemarker.core._TemplateModelException: Java method "static
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security,
> org.ofbiz.entity.GenericValue, String, String)" threw an exception; see
> cause exception in the Java stack trace.
>
> ----
> FTL stack trace ("~" means nesting-related):
>         - Failed at: #assign displaySecondaryApps = Static...  [in
> template "component://tomahawk/includes/appbarOpen.ftl" at line 25, column
> 1]
> ----
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MethodCall._eval(MethodCall.java:62)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Expression.eval(Expression.java:78)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Assignment.accept(Assignment.java:70)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MixedContent.accept(MixedContent.java:62)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.process(Environment.java:290)
> [freemarker-2.3.22.jar:2.3.22]
>         at
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257)
> [ofbiz-base.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89)
> [ofbiz-webapp.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
> [servlet-api-3.1.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api-3.1.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> Caused by: java.lang.NullPointerException
>         at
> org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102)
> ~[ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145)
> ~[ofbiz-webapp.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_92]
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_92]
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_92]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
>         at
> freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71)
> ~[freemarker-2.3.22.jar:2.3.22]
>         ... 64 more
> 2016-07-19 15:14:29,938 |http-nio-8443-exec-8 |ControlServlet
>   |E| [ControlServlet] ERROR: security not found in ServletContext
> 2016-07-19 15:14:30,214 |http-nio-8443-exec-8 |runtime
>    |E| Error executing FreeMarker template
> freemarker.core._TemplateModelException: Java method "static
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security,
> org.ofbiz.entity.GenericValue, String, String)" threw an exception; see
> cause exception in the Java stack trace.
>
> ----
> FTL stack trace ("~" means nesting-related):
>         - Failed at: #assign displayApps = Static["org.ofb...  [in
> template "component://tomahawk/includes/appbarOpen.ftl" at line 24, column
> 1]
> ----
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MethodCall._eval(MethodCall.java:62)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Expression.eval(Expression.java:78)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Assignment.accept(Assignment.java:70)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MixedContent.accept(MixedContent.java:62)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.process(Environment.java:290)
> [freemarker-2.3.22.jar:2.3.22]
>         at
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257)
> [ofbiz-base.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210)
> [ofbiz-webapp.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
> [servlet-api-3.1.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api-3.1.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> Caused by: java.lang.NullPointerException
>         at
> org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102)
> ~[ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145)
> ~[ofbiz-webapp.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_92]
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_92]
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_92]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
>         at
> freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71)
> ~[freemarker-2.3.22.jar:2.3.22]
>         ... 63 more
> 2016-07-19 15:14:30,219 |http-nio-8443-exec-8 |runtime
>    |E| Error executing FreeMarker template
> freemarker.core._TemplateModelException: Java method "static
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security,
> org.ofbiz.entity.GenericValue, String, String)" threw an exception; see
> cause exception in the Java stack trace.
>
> ----
> FTL stack trace ("~" means nesting-related):
>         - Failed at: #assign displaySecondaryApps = Static...  [in
> template "component://tomahawk/includes/appbarOpen.ftl" at line 25, column
> 1]
> ----
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MethodCall._eval(MethodCall.java:62)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Expression.eval(Expression.java:78)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Assignment.accept(Assignment.java:70)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MixedContent.accept(MixedContent.java:62)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.process(Environment.java:290)
> [freemarker-2.3.22.jar:2.3.22]
>         at
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257)
> [ofbiz-base.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210)
> [ofbiz-webapp.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
> [servlet-api-3.1.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api-3.1.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> Caused by: java.lang.NullPointerException
>         at
> org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102)
> ~[ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145)
> ~[ofbiz-webapp.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_92]
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_92]
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_92]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
>         at
> freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71)
> ~[freemarker-2.3.22.jar:2.3.22]
>         ... 63 more
> 2016-07-19 15:14:32,555 |http-nio-8443-exec-2 |ControlServlet
>   |E| [ControlServlet] ERROR: security not found in ServletContext
> 2016-07-19 15:14:32,733 |http-nio-8443-exec-2 |runtime
>    |E| Error executing FreeMarker template
> freemarker.core._TemplateModelException: Java method "static
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security,
> org.ofbiz.entity.GenericValue, String, String)" threw an exception; see
> cause exception in the Java stack trace.
>
> ----
> FTL stack trace ("~" means nesting-related):
>         - Failed at: #assign displayApps = Static["org.ofb...  [in
> template "component://tomahawk/includes/appbarOpen.ftl" at line 24, column
> 1]
> ----
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MethodCall._eval(MethodCall.java:62)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Expression.eval(Expression.java:78)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Assignment.accept(Assignment.java:70)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MixedContent.accept(MixedContent.java:62)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.process(Environment.java:290)
> [freemarker-2.3.22.jar:2.3.22]
>         at
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257)
> [ofbiz-base.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210)
> [ofbiz-webapp.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
> [servlet-api-3.1.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api-3.1.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> Caused by: java.lang.NullPointerException
>         at
> org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102)
> ~[ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145)
> ~[ofbiz-webapp.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_92]
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_92]
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_92]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
>         at
> freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71)
> ~[freemarker-2.3.22.jar:2.3.22]
>         ... 63 more
> 2016-07-19 15:14:32,738 |http-nio-8443-exec-2 |runtime
>    |E| Error executing FreeMarker template
> freemarker.core._TemplateModelException: Java method "static
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security,
> org.ofbiz.entity.GenericValue, String, String)" threw an exception; see
> cause exception in the Java stack trace.
>
> ----
> FTL stack trace ("~" means nesting-related):
>         - Failed at: #assign displaySecondaryApps = Static...  [in
> template "component://tomahawk/includes/appbarOpen.ftl" at line 25, column
> 1]
> ----
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MethodCall._eval(MethodCall.java:62)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Expression.eval(Expression.java:78)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Assignment.accept(Assignment.java:70)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MixedContent.accept(MixedContent.java:62)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.process(Environment.java:290)
> [freemarker-2.3.22.jar:2.3.22]
>         at
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257)
> [ofbiz-base.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210)
> [ofbiz-webapp.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
> [servlet-api-3.1.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api-3.1.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> Caused by: java.lang.NullPointerException
>         at
> org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102)
> ~[ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145)
> ~[ofbiz-webapp.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_92]
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_92]
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_92]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
>         at
> freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71)
> ~[freemarker-2.3.22.jar:2.3.22]
>         ... 63 more
> 2016-07-19 15:14:36,366 |ttp-nio-8443-exec-11 |ControlServlet
>   |E| [ControlServlet] ERROR: security not found in ServletContext
> 2016-07-19 15:14:36,443 |ttp-nio-8443-exec-11 |runtime
>    |E| Error executing FreeMarker template
> freemarker.core._TemplateModelException: Java method "static
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security,
> org.ofbiz.entity.GenericValue, String, String)" threw an exception; see
> cause exception in the Java stack trace.
>
> ----
> FTL stack trace ("~" means nesting-related):
>         - Failed at: #assign displayApps = Static["org.ofb...  [in
> template "component://tomahawk/includes/appbarOpen.ftl" at line 24, column
> 1]
> ----
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MethodCall._eval(MethodCall.java:62)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Expression.eval(Expression.java:78)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Assignment.accept(Assignment.java:70)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MixedContent.accept(MixedContent.java:62)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.process(Environment.java:290)
> [freemarker-2.3.22.jar:2.3.22]
>         at
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257)
> [ofbiz-base.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210)
> [ofbiz-webapp.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
> [servlet-api-3.1.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api-3.1.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> Caused by: java.lang.NullPointerException
>         at
> org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102)
> ~[ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145)
> ~[ofbiz-webapp.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_92]
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_92]
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_92]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
>         at
> freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71)
> ~[freemarker-2.3.22.jar:2.3.22]
>         ... 63 more
> 2016-07-19 15:14:36,447 |ttp-nio-8443-exec-11 |runtime
>    |E| Error executing FreeMarker template
> freemarker.core._TemplateModelException: Java method "static
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security,
> org.ofbiz.entity.GenericValue, String, String)" threw an exception; see
> cause exception in the Java stack trace.
>
> ----
> FTL stack trace ("~" means nesting-related):
>         - Failed at: #assign displaySecondaryApps = Static...  [in
> template "component://tomahawk/includes/appbarOpen.ftl" at line 25, column
> 1]
> ----
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MethodCall._eval(MethodCall.java:62)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Expression.eval(Expression.java:78)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Assignment.accept(Assignment.java:70)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MixedContent.accept(MixedContent.java:62)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.process(Environment.java:290)
> [freemarker-2.3.22.jar:2.3.22]
>         at
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257)
> [ofbiz-base.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210)
> [ofbiz-webapp.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
> [servlet-api-3.1.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api-3.1.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> Caused by: java.lang.NullPointerException
>         at
> org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102)
> ~[ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145)
> ~[ofbiz-webapp.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_92]
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_92]
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_92]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
>         at
> freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71)
> ~[freemarker-2.3.22.jar:2.3.22]
>         ... 63 more
> 2016-07-19 15:14:54,789 |http-nio-8443-exec-3 |DelegatorFactoryImpl
>   |E| null
> java.util.concurrent.ExecutionException: java.lang.ClassNotFoundException:
> java.lang.Class
>         at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> ~[?:1.8.0_92]
>         at java.util.concurrent.FutureTask.get(FutureTask.java:192)
> ~[?:1.8.0_92]
>         at
> org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:44)
> [ofbiz-entity.jar:?]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:296)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> Caused by: java.lang.ClassNotFoundException: java.lang.Class
>         at
> org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:205)
> ~[ofbiz-base.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83)
> ~[ofbiz-entity.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74)
> ~[ofbiz-entity.jar:?]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> ~[?:1.8.0_92]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> ~[?:1.8.0_92]
>         ... 1 more
> 2016-07-19 15:14:54,791 |http-nio-8443-exec-3 |ContextFilter
>    |E| An invalid (null) Security object has been set in the servlet
> context.
> 2016-07-19 15:14:54,791 |http-nio-8443-exec-3 |DelegatorFactoryImpl
>   |E| null
> java.util.concurrent.ExecutionException: java.lang.ClassNotFoundException:
> java.lang.Class
>         at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> ~[?:1.8.0_92]
>         at java.util.concurrent.FutureTask.get(FutureTask.java:192)
> ~[?:1.8.0_92]
>         at
> org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:44)
> [ofbiz-entity.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:153)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89)
> [ofbiz-webapp.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
> [servlet-api-3.1.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api-3.1.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> Caused by: java.lang.ClassNotFoundException: java.lang.Class
>         at
> org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:205)
> ~[ofbiz-base.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83)
> ~[ofbiz-entity.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74)
> ~[ofbiz-entity.jar:?]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> ~[?:1.8.0_92]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> ~[?:1.8.0_92]
>         ... 1 more
> 2016-07-19 15:14:54,792 |http-nio-8443-exec-3 |ControlServlet
>   |E| [ControlServlet] ERROR: security not found in ServletContext
> 2016-07-19 15:14:54,901 |http-nio-8443-exec-3 |DelegatorFactoryImpl
>   |E| null
> java.util.concurrent.ExecutionException: java.lang.ClassNotFoundException:
> java.lang.Class
>         at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> ~[?:1.8.0_92]
>         at java.util.concurrent.FutureTask.get(FutureTask.java:192)
> ~[?:1.8.0_92]
>         at
> org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:44)
> [ofbiz-entity.jar:?]
>         at
> org.ofbiz.webapp.control.LoginWorker.login(LoginWorker.java:455)
> [ofbiz-webapp.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_92]
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_92]
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_92]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
>         at
> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:96)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:80)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:757)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:477)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89)
> [ofbiz-webapp.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
> [servlet-api-3.1.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api-3.1.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> Caused by: java.lang.ClassNotFoundException: java.lang.Class
>         at
> org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:205)
> ~[ofbiz-base.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:83)
> ~[ofbiz-entity.jar:?]
>         at
> org.ofbiz.entity.DelegatorFactory$DelegatorConfigurable.call(DelegatorFactory.java:74)
> ~[ofbiz-entity.jar:?]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> ~[?:1.8.0_92]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> ~[?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> ~[?:1.8.0_92]
>         ... 1 more
> 2016-07-19 15:14:54,902 |http-nio-8443-exec-3 |ContextFilter
>    |E| [ContextFilter.init] ERROR: delegator not defined.
> 2016-07-19 15:14:54,902 |http-nio-8443-exec-3 |JavaEventHandler
>   |E| Problems Processing Event
> java.lang.NullPointerException
>         at
> org.ofbiz.webapp.control.LoginWorker.login(LoginWorker.java:490)
> ~[ofbiz-webapp.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_92]
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_92]
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_92]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
>         at
> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:96)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:80)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:757)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:477)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89)
> [ofbiz-webapp.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
> [servlet-api-3.1.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api-3.1.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> 2016-07-19 15:14:54,903 |http-nio-8443-exec-3 |RequestHandler
>   |E| Request login caused an error with the following message: Error
> calling event: org.ofbiz.webapp.event.EventHandlerException: Problems
> processing event: java.lang.NullPointerException (null)
> 2016-07-19 15:14:55,227 |http-nio-8443-exec-3 |runtime
>    |E| Error executing FreeMarker template
> freemarker.core._TemplateModelException: Java method "static
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security,
> org.ofbiz.entity.GenericValue, String, String)" threw an exception; see
> cause exception in the Java stack trace.
>
> ----
> FTL stack trace ("~" means nesting-related):
>         - Failed at: #assign displayApps = Static["org.ofb...  [in
> template "component://tomahawk/includes/appbarOpen.ftl" at line 24, column
> 1]
> ----
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MethodCall._eval(MethodCall.java:62)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Expression.eval(Expression.java:78)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Assignment.accept(Assignment.java:70)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MixedContent.accept(MixedContent.java:62)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.process(Environment.java:290)
> [freemarker-2.3.22.jar:2.3.22]
>         at
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257)
> [ofbiz-base.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89)
> [ofbiz-webapp.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
> [servlet-api-3.1.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api-3.1.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> Caused by: java.lang.NullPointerException
>         at
> org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102)
> ~[ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145)
> ~[ofbiz-webapp.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_92]
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_92]
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_92]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
>         at
> freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71)
> ~[freemarker-2.3.22.jar:2.3.22]
>         ... 64 more
> 2016-07-19 15:14:55,233 |http-nio-8443-exec-3 |runtime
>    |E| Error executing FreeMarker template
> freemarker.core._TemplateModelException: Java method "static
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(org.ofbiz.security.Security,
> org.ofbiz.entity.GenericValue, String, String)" threw an exception; see
> cause exception in the Java stack trace.
>
> ----
> FTL stack trace ("~" means nesting-related):
>         - Failed at: #assign displaySecondaryApps = Static...  [in
> template "component://tomahawk/includes/appbarOpen.ftl" at line 25, column
> 1]
> ----
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:275)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:80)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MethodCall._eval(MethodCall.java:62)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Expression.eval(Expression.java:78)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Assignment.accept(Assignment.java:70)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.MixedContent.accept(MixedContent.java:62)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.visit(Environment.java:312)
> [freemarker-2.3.22.jar:2.3.22]
>         at freemarker.core.Environment.process(Environment.java:290)
> [freemarker-2.3.22.jar:2.3.22]
>         at
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257)
> [ofbiz-base.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:211)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:860)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157)
> [ofbiz-widget.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:990)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210)
> [ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:89)
> [ofbiz-webapp.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
> [servlet-api-3.1.jar:?]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api-3.1.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:326)
> [ofbiz-webapp.jar:?]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
> [tomcat-8.0.33-catalina.jar:8.0.33]
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> [tomcat-8.0.33-tomcat-coyote.jar:8.0.33]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_92]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_92]
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-8.0.33-tomcat-util.jar:8.0.33]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
> Caused by: java.lang.NullPointerException
>         at
> org.ofbiz.webapp.control.LoginWorker.hasApplicationPermission(LoginWorker.java:1102)
> ~[ofbiz-webapp.jar:?]
>         at
> org.ofbiz.webapp.control.LoginWorker.getAppBarWebInfos(LoginWorker.java:1145)
> ~[ofbiz-webapp.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_92]
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_92]
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_92]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
>         at
> freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
> ~[freemarker-2.3.22.jar:2.3.22]
>         at
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71)
> ~[freemarker-2.3.22.jar:2.3.22]
>         ... 64 more
>
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
>