ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Smits <pierre.sm...@gmail.com>
Subject Problem(s) with special purpose
Date Tue, 02 Aug 2016 09:30:07 GMT
Hi all,

While working on OFBIZ-7016 (removing dependencies on e-commerce), I tested
also whether it was possible to do a deployment without any of the special
purpose components activated.
First, I tested this by commenting out all components in the
component-load.xml file in the specialpurpose folder.

This generated following error:

2016-08-02 11:18:38,224 |main                 |ComponentContainer
  |I| Auto-Loading component directory :
[/Users/pierre/dev/ofbiz/ofbiz-gradle/specialpurpose]

Exception in thread "main" java.lang.NullPointerException

at
java.util.Collections$UnmodifiableCollection.<init>(Collections.java:1026)

at java.util.Collections$UnmodifiableList.<init>(Collections.java:1302)

at java.util.Collections.unmodifiableList(Collections.java:1287)

at
org.apache.ofbiz.base.component.ComponentLoaderConfig.getComponentsFromConfig(ComponentLoaderConfig.java:105)

at
org.apache.ofbiz.base.container.ComponentContainer.loadComponentDirectory(ComponentContainer.java:144)

at
org.apache.ofbiz.base.container.ComponentContainer.loadComponentFromConfig(ComponentContainer.java:129)

at
org.apache.ofbiz.base.container.ComponentContainer.loadComponents(ComponentContainer.java:95)

at
org.apache.ofbiz.base.container.ComponentContainer.init(ComponentContainer.java:73)

at
org.apache.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:186)

at
org.apache.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:98)

at
org.apache.ofbiz.base.start.StartupControlPanel.loadStartupLoaders(StartupControlPanel.java:249)

at
org.apache.ofbiz.base.start.StartupControlPanel.start(StartupControlPanel.java:72)

at org.apache.ofbiz.base.start.Start.main(Start.java:84)

I also tested with the component-load.xml file removed from the
specialpurpose folder.

This generated the following build error:

FAILURE: Build failed with an exception.


* Where:

Script '/Users/pierre/dev/ofbiz/ofbiz-gradle/common.gradle' line: 22


* What went wrong:

A problem occurred evaluating settings 'ofbiz'.

> /Users/pierre/dev/ofbiz/ofbiz-gradle/specialpurpose/component-load.xml
(No such file or directory)

It seems to me there is - currently - a hard coded requirement on

   1. the existence of component-load.xml in the special purpose folder, and
   2. at least 1 special purpose component listed in the component-load.xml
   file

However, it is very well possible that an adopter decides to *not* use any
of the special purpose components. And also, the discussion of the 'plugin
deployment/activation' solution seems to suggest that it is even possible
to deactivate all special purpose components (remove from
component-load.xml?).

I believe we should more carefully look into this regarding how we deal
with this scenario.

WDYT?

Best regards,

Pierre Smits

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

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message