trouble populating database

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

trouble populating database

Piotr
I want to install ofbiz into postgres/mysql but I'm continously getting that error, can enybody help me, plese

[java] 2011-04-28 10:53:32,032 (main) [ ModelEntityChecker.java:502:INFO ] [initReservedWords] array length=1023
     [java] Exception in thread "main" java.lang.NullPointerException
     [java] at org.ofbiz.entity.GenericDelegator.getEntityFieldType(GenericDelegator.java:548)
     [java] at org.ofbiz.entity.model.ModelEntityChecker.checkEntities(ModelEntityChecker.java:101)
     [java] at org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:245)
     [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33)
     [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25)
     [java] at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:202)
     [java] at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:47)
     [java] at org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:230)
     [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100)
     [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
     [java] at org.ofbiz.base.start.Start.startServer(Start.java:322)
     [java] at org.ofbiz.base.start.Start.start(Start.java:326)
     [java] at org.ofbiz.base.start.Start.main(Start.java:411)
     [java] 2011-04-28 10:53:33,781 (OFBiz_Shutdown_Hook) [    ContainerLoader.java:113:INFO ] Shutting down containers
     [java] Java Result: 1
Reply | Threaded
Open this post in threaded view
|

Re: trouble populating database

Paul Foxworthy
Hi Piotr,

Which version of Ofbiz?

Please double-check your framework/entity/config/entityengine.xml file. I think there's a good chance that's where the problem is.

Cheers

Paul Foxworthy

Piotr wrote
I want to install ofbiz into postgres/mysql but I'm continously getting that error, can enybody help me, plese

[java] 2011-04-28 10:53:32,032 (main) [ ModelEntityChecker.java:502:INFO ] [initReservedWords] array length=1023
     [java] Exception in thread "main" java.lang.NullPointerException
     [java] at org.ofbiz.entity.GenericDelegator.getEntityFieldType(GenericDelegator.java:548)
     [java] at org.ofbiz.entity.model.ModelEntityChecker.checkEntities(ModelEntityChecker.java:101)
     [java] at org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:245)
     [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33)
     [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25)
     [java] at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:202)
     [java] at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:47)
     [java] at org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:230)
     [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100)
     [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
     [java] at org.ofbiz.base.start.Start.startServer(Start.java:322)
     [java] at org.ofbiz.base.start.Start.start(Start.java:326)
     [java] at org.ofbiz.base.start.Start.main(Start.java:411)
     [java] 2011-04-28 10:53:33,781 (OFBiz_Shutdown_Hook) [    ContainerLoader.java:113:INFO ] Shutting down containers
     [java] Java Result: 1
--
Coherent Software Australia Pty Ltd
http://www.coherentsoftware.com.au/

Bonsai ERP, the all-inclusive ERP system
http://www.bonsaierp.com.au/
Reply | Threaded
Open this post in threaded view
|

Re: trouble populating database

Manoj
Did someone got solution for it.
I am facing the same issue. Looking for any help on this please.
Reply | Threaded
Open this post in threaded view
|

Re: trouble populating database

Robert
In reply to this post by Piotr
I had this problem!  I solved it!

My entityengine.xml was like this for the error:
    <delegator name="default" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" distributed-cache-clear-enabled="false">
           <group-map group-name="org.ofbiz" datasource-name="localpostnew"/>
    </delegator>

I solved it by changing it like this:
    <delegator name="default" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" distributed-cache-clear-enabled="false">
           <group-map group-name="org.ofbiz" datasource-name="localpostnew"/>
           <group-map group-name="org.ofbiz.olap" datasource-name="localpostnew"/>
        <group-map group-name="org.ofbiz.tenant" datasource-name="localpostnew"/>
    </delegator>

It seems that function doesn't handle only 1 group correctly?