[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] Created: (OFBIZ-3582) unable to intialize tenant Database

Nicolas Malin (Jira)
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


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)

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

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

I am not sure why, but a second try of the command line and has no errors and the script is sucessful.


> 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
>
> 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] Updated: (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 ]

BJ Freeman updated OFBIZ-3582:
------------------------------

    Priority: Trivial  (was: Major)

> 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
>            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=12850804#action_12850804 ]

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

So, should we not close?

> 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
>            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=12850943#action_12850943 ]

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

ok I will reopen  once I find out what this is
I can reproduce it so I expect others will run into it
I have not run this outside of  derby and probably won't for a while.


> 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
>            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=12850956#action_12850956 ]

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

BJ,

THis is interesting, how to you reproduce? Could you please give the steps used?

> 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
>            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=12850998#action_12850998 ]

David E. Jones commented on OFBIZ-3582:
---------------------------------------

As far as I can tell this is caused what I described before to BJ. The error message "No Tenant record found for delegator [default#DEMO1] with tenantId [DEMO1]" pretty much explains it, ie there is no record in the Tenant entity's table with the ID of DEMO1.

So, to reproduce just make sure there is no record in the database with the ID "DEMO1" and then try to use the tenant.

This isn't an error, it is the expected behavior (ie if the Tenant hasn't been configured, then an error should result when you try to use it).

> 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
>            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=12851004#action_12851004 ]

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

david  please read the log.
This is the install, not the use of the tenant.

> 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
>            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=12851014#action_12851014 ]

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

java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)

Windows XP 1gig Ram 800mb free before running install

ant clean-all
ant
java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install -delegator=default
java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install -delegator=default#DEMO1  <---error shown above




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

Jacques Le Roux closed OFBIZ-3582.
----------------------------------

    Resolution: Fixed
      Assignee: Jacques Le Roux

I can't reproduce in the normal case. If, as suggested David, I remove the DEMO1 line from the Tenant entity I get the same error, ie

2010-04-03 01:09:33,859 (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)
--------------------------------------------------------------------------------

Exception in thread "main" java.lang.NullPointerException2010-04-03 01:09:33,859 (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)
--------------------------------------------------------------------------------


        at java.util.concurrent.ConcurrentHashMap.putIfAbsent(Unknown Source)
        at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:52)
        at org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:230)
        at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100)
        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)


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

Jacques Le Roux closed OFBIZ-3582.
----------------------------------

    Resolution: Not A Problem

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

Jacques Le Roux reopened OFBIZ-3582:
------------------------------------


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

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=12853004#action_12853004 ]

David E. Jones commented on OFBIZ-3582:
---------------------------------------

Actually BJ what I said was the exact cause of the problem: the record was missing.

The problem seems to be that you didn't believe me and so you're looking in the wrong place.

> 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=12853011#action_12853011 ]

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

David:
this is an install.
if the record is missing it has todo with the install process.
that is all I am saying as far as your comment.

your statement
So, to reproduce just make sure there is no record in the database with the ID "DEMO1" and then try to use the tenant.

infers doing something other than the automated install
which is why is is irrelevant to the process that caused it.


> 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=12853023#action_12853023 ]

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

I clean-all
I did the defualt install which I assume loads the DEMO1Id
I did the DEMO1 install and it could not find the ID
Now I agree with yoiu that if it is not in the table it won't be found.
so what happened in the Default install that the data did not get loaded.

Jacques says he can not repoduce it.
 the log I included says I did.
so if we don't have the time or can't come up with a consnesus as to why it happened and all can reporduce it,
instead of closing it is should be put in some long term status and we find out why I can and Jacques can't.


> 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=12853023#action_12853023 ]

BJ Freeman edited comment on OFBIZ-3582 at 4/3/10 12:26 AM:
------------------------------------------------------------

I clean-all
I did the defualt install which I assume loads the DEMO1Id
I did the DEMO1 install and it could not find the ID
Now I agree with yoiu that if it is not in the table it won't be found.
so what happened in the Default install that the data did not get loaded, or was not accessible when the code looked it up?

Jacques says he can not repoduce it.
 the log I included says I did.
so if we don't have the time or can't come up with a consnesus as to why it happened and all can reporduce it,
instead of closing it is should be put in some long term status and we find out why I can and Jacques can't.


      was (Author: bjfreeman):
    I clean-all
I did the defualt install which I assume loads the DEMO1Id
I did the DEMO1 install and it could not find the ID
Now I agree with yoiu that if it is not in the table it won't be found.
so what happened in the Default install that the data did not get loaded.

Jacques says he can not repoduce it.
 the log I included says I did.
so if we don't have the time or can't come up with a consnesus as to why it happened and all can reporduce it,
instead of closing it is should be put in some long term status and we find out why I can and Jacques can't.

 

> 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=12853035#action_12853035 ]

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

I get the same error. Maybe what is needed is an explanation of the correct steps necessary to initialize a tenant database. In other words, some basic documentation on how to use the multi-tenant capability would be helpful.



> 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=12853038#action_12853038 ]

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

http://cwiki.apache.org/confluence/display/OFBIZ/Multitenancy+support
is the begining


> 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=12853058#action_12853058 ]

David E. Jones commented on OFBIZ-3582:
---------------------------------------

Seriously, what's the big deal? If you load the demo data this record will be there. If you don't load the demo data (for example you just load the seed data) then it won't be there. How you want to use it is totally up to you, ie if you want to use the demo data or if you want to setup your own Tenant records.

Is this really that tough?

You guys have experience with OFBiz and should know the difference between seed and demo data, and that demo Tenant records should only go in the demo data. Isn't that what you would expect?

Or, am I totally off base and you are expecting something totally different?

I've already sent some basic information about the tenant stuff, and I'm not going to be goaded or pressured or attacked into doing more. Sorry.

> 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