Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 16.11.01
    • Component/s: framework/webtools
    • Labels:
      None

      Description

      While working on OFBIZ-7016, I excluded the ecommerce component from the component-load.xml file in the special purpose folder.

      In a clean, up-to-date setup I executed ./gradlew cleanAll loadDefault ofbiz to start up the new setup. And the following error got thrown:

      2016-08-02 11:46:53,805 |0.0.0.0-startStop-1  |[/webtools]                   |E| StandardWrapper.Throwable
      java.lang.ExceptionInInitializerError
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_45]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_45]
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_45]
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:422) ~[?:1.8.0_45]
      	at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_45]
      	at org.apache.ofbiz.base.util.template.FreeMarkerWorker.loadTransforms(FreeMarkerWorker.java:151) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.base.util.template.FreeMarkerWorker.makeConfiguration(FreeMarkerWorker.java:133) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.base.util.template.FreeMarkerWorker.<clinit>(FreeMarkerWorker.java:85) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.webapp.ftl.FreeMarkerViewHandler.<init>(FreeMarkerViewHandler.java:48) ~[ofbiz.jar:?]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_45]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_45]
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_45]
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:422) ~[?:1.8.0_45]
      	at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_45]
      	at org.apache.ofbiz.base.util.ObjectType.getInstance(ObjectType.java:159) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.webapp.view.ViewFactory.<init>(ViewFactory.java:49) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.webapp.control.RequestHandler.<init>(RequestHandler.java:99) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.webapp.control.RequestHandler.getRequestHandler(RequestHandler.java:84) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.webapp.control.ControlServlet.getRequestHandler(ControlServlet.java:329) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.webapp.control.ControlServlet.init(ControlServlet.java:80) ~[ofbiz.jar:?]
      	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1238) [tomcat-catalina-8.0.33.jar:8.0.33]
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1151) [tomcat-catalina-8.0.33.jar:8.0.33]
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1038) [tomcat-catalina-8.0.33.jar:8.0.33]
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4996) [tomcat-catalina-8.0.33.jar:8.0.33]
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) [tomcat-catalina-8.0.33.jar:8.0.33]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) [tomcat-catalina-8.0.33.jar:8.0.33]
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408) [tomcat-catalina-8.0.33.jar:8.0.33]
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398) [tomcat-catalina-8.0.33.jar:8.0.33]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_45]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_45]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_45]
      	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
      Caused by: java.lang.NullPointerException
      	at org.apache.ofbiz.product.category.SeoConfigUtil.init(SeoConfigUtil.java:119) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.product.category.ftl.CatalogUrlSeoTransform.<clinit>(CatalogUrlSeoTransform.java:76) ~[ofbiz.jar:?]
      	... 32 more
      2016-08-02 11:46:53,811 |0.0.0.0-startStop-1  |[/webtools]                   |E| Servlet [ControlServlet] in web application [/webtools] threw load() exception
      java.lang.NullPointerException
      	at org.apache.ofbiz.product.category.SeoConfigUtil.init(SeoConfigUtil.java:119) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.product.category.ftl.CatalogUrlSeoTransform.<clinit>(CatalogUrlSeoTransform.java:76) ~[ofbiz.jar:?]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_45]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_45]
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_45]
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:422) ~[?:1.8.0_45]
      	at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_45]
      	at org.apache.ofbiz.base.util.template.FreeMarkerWorker.loadTransforms(FreeMarkerWorker.java:151) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.base.util.template.FreeMarkerWorker.makeConfiguration(FreeMarkerWorker.java:133) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.base.util.template.FreeMarkerWorker.<clinit>(FreeMarkerWorker.java:85) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.webapp.ftl.FreeMarkerViewHandler.<init>(FreeMarkerViewHandler.java:48) ~[ofbiz.jar:?]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_45]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_45]
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_45]
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:422) ~[?:1.8.0_45]
      	at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_45]
      	at org.apache.ofbiz.base.util.ObjectType.getInstance(ObjectType.java:159) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.webapp.view.ViewFactory.<init>(ViewFactory.java:49) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.webapp.control.RequestHandler.<init>(RequestHandler.java:99) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.webapp.control.RequestHandler.getRequestHandler(RequestHandler.java:84) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.webapp.control.ControlServlet.getRequestHandler(ControlServlet.java:329) ~[ofbiz.jar:?]
      	at org.apache.ofbiz.webapp.control.ControlServlet.init(ControlServlet.java:80) ~[ofbiz.jar:?]
      	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1238) ~[tomcat-catalina-8.0.33.jar:8.0.33]
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1151) ~[tomcat-catalina-8.0.33.jar:8.0.33]
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1038) ~[tomcat-catalina-8.0.33.jar:8.0.33]
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4996) [tomcat-catalina-8.0.33.jar:8.0.33]
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) [tomcat-catalina-8.0.33.jar:8.0.33]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) [tomcat-catalina-8.0.33.jar:8.0.33]
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408) [tomcat-catalina-8.0.33.jar:8.0.33]
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398) [tomcat-catalina-8.0.33.jar:8.0.33]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_45]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_45]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_45]
      	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
      

        Attachments

          Activity

            People

            • Assignee:
              jacques.le.roux Jacques Le Roux
              Reporter:
              pfm.smits Pierre Smits
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: