You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "BJ Freeman (JIRA)" <ji...@apache.org> on 2010/04/03 01:33:27 UTC

[jira] Commented: (OFBIZ-3582) unable to intialize tenant Database

    [ https://issues.apache.org/jira/browse/OFBIZ-3582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12853003#action_12853003 ] 

BJ Freeman commented on OFBIZ-3582:
-----------------------------------

since david suggestion had nothing to do with the problem.
I  don't see how that has any  bearing on the error.
many thingswill cause the message if yoiu just focus on it.
however this log as to do using the commands specified

As a note: I have had other errors relatied to the getone with an other than defualt delegator.

I am guessing is is a timing issue.
Those are buggers to troubleshoot.

> unable to intialize tenant Database
> -----------------------------------
>
>                 Key: OFBIZ-3582
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3582
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: Release Candidate Branch 10.04, SVN trunk
>         Environment:  SINCE version 927271 using the Tenant login. 
>            Reporter: BJ Freeman
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>
> use the line
> java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install -delegator=default#DEMO1
> when the Delegator is created it looks for a Tenant record with then new delegator for DEMO1, but it has not been loaded yet so get a error.
> log of error.
> 2010-03-28 15:25:31,406 (main) [      EntityEcaUtil.java:128:INFO ] Loaded [1] E
> ntity ECA definitions from C:/projects/java/ofbizf_new/applications/commonext/en
> titydef/eecas.xml in loader main
> 2010-03-28 15:25:31,437 (main) [DelegatorFactoryImpl.java:35 :ERROR]
> ---- exception report ----------------------------------------------------------
> Error creating delegator
> Exception: org.ofbiz.entity.GenericEntityException
> Message: No Tenant record found for delegator [default#DEMO1] with tenantId [DEM
> O1]
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.entity.GenericEntityException: No Tenant record found for delegator [d
> efault#DEMO1] with tenantId [DEMO1]
> org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:230)
> org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33)
> org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25)
> org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:202)
> org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:47)
> org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.j
> ava:230)
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100)
> org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
> org.ofbiz.base.start.Start.startServer(Start.java:322)
> org.ofbiz.base.start.Start.start(Start.java:326)
> org.ofbiz.base.start.Start.main(Start.java:411)
> --------------------------------------------------------------------------------
> Exception in thread "main" java.lang.NullPointerException
> 2010-03-28 15:25:31,437 (main) [   DelegatorFactory.java:49 :ERROR]
> ---- exception report ----------------------------------------------------------
> Exception: java.lang.ClassNotFoundException
> Message: java.lang.Class
> ---- stack trace ---------------------------------------------------------------
> java.lang.ClassNotFoundException: java.lang.Class
> org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:207)
> org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:47)
> org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.j
> ava:230)
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100)
> org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
> org.ofbiz.base.start.Start.startServer(Start.java:322)
> org.ofbiz.base.start.Start.start(Start.java:326)
> org.ofbiz.base.start.Start.main(Start.java:411)
> --------------------------------------------------------------------------------
>         at java.util.concurrent.ConcurrentHashMap.putIfAbsent(Unknown Source)
>         at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:
> 52)
>         at org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoad
> Container.java:230)
>         at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:1
> 00)
>         at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
>         at org.ofbiz.base.start.Start.startServer(Start.java:322)
>         at org.ofbiz.base.start.Start.start(Start.java:326)
>         at org.ofbiz.base.start.Start.main(Start.java:411)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.