Wai created OFBIZ-5729:
--------------------------
Summary: ofbiz hangs on installing tenant database
Key: OFBIZ-5729
URL: https://issues.apache.org/jira/browse/OFBIZ-5729
Project: OFBiz
Issue Type: Bug
Components: framework
Affects Versions: Trunk
Reporter: Wai
When installing data into a tenant database, ofbiz hangs.
Using the following command line.
$ ant load-tenant -DtenantId=DEMO1
The problem is that ofbiz uses DelegatorFactory.getDelegator() to find/create
the tenant delegator, asynchronously, for the target tenant database using a
single daemon thread. As part of the tenant delegator creation, it needs to
find/create a base delegator. When the base delegator is intially absent,
ofbiz will block trying to create one by using the same daemon thread--which is
already being used. Hence, ofbiz is deadlocked.
The solution is to make sure that a base delegator is always created first
before a find/create tenant delegator is attempted.
--
This message was sent by Atlassian JIRA
(v6.2#6252)