Hi Rishi,

Hans can do a quick fix. I can tell you the problem, i.e indexing is applied to "infoName" field of NoteData entity. And such field does not exist. May be Hans wanted to apply indexing on "noteInfo". Lets see What Hans says.

Thanks
--
Divesh


Rishi Solanki wrote:
Steps to reproduce :

I tried derby database for installing ofbiz on trunk revision 788950 and
then ran command "ant clean-all && ant run-install".
I observed following error (Same error coming for external db i.e postgres):

[java] 2009-06-27 17:18:27,489 (main) [       DatabaseUtil.java:2754:INFO ]
Created 2 declared indices for entity [MrpEventType]
     [java] 2009-06-27 17:18:27,511 (main) [
DatabaseUtil.java:2754:INFO ] Created 2 declared indices for entity
[NeedType]
     [java] Exception in thread "main" java.lang.NullPointerException
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.makeIndexClause(DatabaseUtil.java:2811)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.createDeclaredIndex(DatabaseUtil.java:2776)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.createDeclaredIndices(DatabaseUtil.java:2742)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:397)
     [java]     at
org.ofbiz.entity.jdbc.DatabaseUtil.checkDb(DatabaseUtil.java:125)
     [java]     at
org.ofbiz.entity.datasource.GenericDAO.checkDb(GenericDAO.java:1090)
     [java]     at
org.ofbiz.entity.datasource.GenericHelperDAO.checkDataSource(GenericHelperDAO.java:195)
     [java]     at
org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:288)
     [java]     at
org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:141)
     [java]     at
org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:227)
     [java]     at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
     [java]     at
org.ofbiz.base.start.Start.startStartLoaders(Start.java:271)
     [java]     at org.ofbiz.base.start.Start.startServer(Start.java:320)
     [java]     at org.ofbiz.base.start.Start.start(Start.java:324)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:407)
     [java] 2009-06-27 17:18:27,658 (OFBiz_Shutdown_Hook) [
ContainerLoader.java:114:INFO ] Shutting down containers
     [java] Java Result: 1


Rishi Solanki
Enterprise Software Developer
HotWax Media Pvt. Ltd.


Reply via email to