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

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

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

Nicolas Malin (Jira)

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

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

my understanding is when you do a -install it includes both seed and demo data.
based on that
what are you talking about?
since the demo is loaded on -install the tenant demo data should be loaded. for some reason it is not.

btw I have only tried to clear the air on what has been said. I am sorry if that was taken in any form than to solve the problem.

However this Jira should stay open till it is fixed.

> 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.

Reply | Threaded
Open this post in threaded view
|

[jira] Issue Comment Edited: (OFBIZ-3582) unable to intialize tenant Database

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

BJ Freeman edited comment on OFBIZ-3582 at 4/3/10 2:49 AM:
-----------------------------------------------------------

my understanding is when you do a -install it includes both seed and demo data.
based on that
what are you talking about?
since the demo is loaded on -install the tenant demo data should be loaded. for some reason it is not, or more what I think is there are other issues.

btw I have only tried to clear the air on what has been said. I am sorry if that was taken in any form than to solve the problem.

However this Jira should stay open till it is fixed.

      was (Author: bjfreeman):
    my understanding is when you do a -install it includes both seed and demo data.
based on that
what are you talking about?
since the demo is loaded on -install the tenant demo data should be loaded. for some reason it is not.

btw I have only tried to clear the air on what has been said. I am sorry if that was taken in any form than to solve the problem.

However this Jira should stay open till it is fixed.
 

> 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.

Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

I do see one difference I did not catch till now


the link instructions say
java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install -readers=seed -delegator=default
java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install -readers=seed -delegator=default#DEMO1

where the instruction in the TenantDemoData.xml
says
java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install -delegator=default#DEMO1

> 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.

Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Adrian Crum commented on OFBIZ-3582:
------------------------------------

David,

There is no need for you to comment. We will work out the problem on our own.

I see part of the problem: BJ is using the command

java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install -delegator=default#DEMO1

and the Wiki page says to use

java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install -readers=seed -delegator=default#DEMO1

but even that command generates the error

2010-04-02 20:08:18,390 (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 [DEMO1]
---- stack trace ---------------------------------------------------------------
org.ofbiz.entity.GenericEntityException: No Tenant record found for delegator [default#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.java: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)
--------------------------------------------------------------------------------

2010-04-02 20:08:18,390 (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.java: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)
--------------------------------------------------------------------------------

So, I tried executing each line on the Wiki page in sequence, in case there was an issue with skipping a command. The fourth command

java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install -readers=seed -delegator=default#DEMO1

generated this error

2010-04-02 20:15:56,750 (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 [DEMO1]
---- stack trace ---------------------------------------------------------------
org.ofbiz.entity.GenericEntityException: No Tenant record found for delegator [default#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.java: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)
--------------------------------------------------------------------------------

2010-04-02 20:15:56,750 (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.java: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)
--------------------------------------------------------------------------------

So, there is information missing somewhere. Something isn't getting loaded.




> 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.

Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Adam Heath commented on OFBIZ-3582:
-----------------------------------

there are multiple databases now in ofbiz.  the base database, and one or more tenant databases.  to access a tenant database, the data loaded into the base database has to have a reference to the tenant database.  the initial seed data loaded into the base database has no tenant records, whatsoever.  when you specify the delegator=default#DEMO1, this doesn't do anything to the base delegator.  since you only installed the seed data in the base delegator, when you specify the #DEMO1 delegator, it can't find the correct tenant record.

This is not a bug.

The command you are trying to run will populate the tenant database, but it will do nothing to add a reference in the base.

> 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.

Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Adam Heath commented on OFBIZ-3582:
-----------------------------------

the wiki page listed earlier does *not*  mention the fact that the base delegator has to have references loaded for each sub tenant database.  I am aware of this requirement, because I did a basic read of the code as it was committed, and I took an educated guess based on how I would implement this feature, and the errors I see.

David, the wiki page needs to be enhanced.  You created this feature; as such, you have different assumptions then others do.  If you follow *just* what is in that wiki page, it will not work.  As you've said, this is because the seed data for the base delegator doesn't  contain a reference to the tenants.  However, the page mentions nothing about how to create those tenant records.


> 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.

Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-3582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Heath reopened OFBIZ-3582:
-------------------------------


As I have commented, this is a bug in the wiki page, one that is valid.  reopening.

> 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.

Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-3582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Crum closed OFBIZ-3582.
------------------------------

    Resolution: Fixed

I found the problem and updated the Wiki page. The multi-tenancy works with the corrected instructions.


> 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.

Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Jacques Le Roux commented on OFBIZ-3582:
----------------------------------------

Also, of course if you don't work with the OOTB DB setting you have to tweak around inside TenantDataSource and eventually create your own DBs before, since, for instance, Posgres and MySql JDBC drivers don't support the create=true syntax in the jdbc-uri

For instance I use "jdbc:postgresql://127.0.0.1/ofbizDEMO1"

I will add a note in the wiki page

> 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.

Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

Thanks for all the help.


> 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.

12