Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006642Openbravo ERPA. Platformpublic2008-12-18 12:302009-04-21 11:07
jpabloae 
alostale 
urgentcriticalalways
closedfixed 
20Gentoo - 2.6.25
pi 
 
Core
No
0006642: Sampledata import fails
When importing the sample data it fails:

import.sample.data:
     [echo] Importing sample reference data
[importsampledata] 0 [main] ERROR org.openbravo.base.exception.OBException - org.hibernate.PropertyValueException: not-null property references a null or transient value: FinancialMgmtPaymentTerm.fixMonthOffset
[importsampledata] org.openbravo.base.exception.OBException: org.hibernate.PropertyValueException: not-null property references a null or transient value: FinancialMgmtPaymentTerm.fixMonthOffset
[importsampledata] at org.openbravo.service.db.DataImportService.insertObjectGraph(DataImportService.java:335)
[importsampledata] at org.openbravo.service.db.DataImportService.insertObjectGraph(DataImportService.java:328)
[importsampledata] at org.openbravo.service.db.DataImportService.insertObjectGraph(DataImportService.java:328)
[importsampledata] at org.openbravo.service.db.DataImportService.insertObjectGraph(DataImportService.java:328)
[importsampledata] at org.openbravo.service.db.DataImportService.importDataFromXML(DataImportService.java:231)
[importsampledata] at org.openbravo.service.db.DataImportService.importClientData(DataImportService.java:147)
[importsampledata] at org.openbravo.service.db.ImportReferenceDataTask.doExecute(ImportReferenceDataTask.java:54)
[importsampledata] at org.openbravo.dal.core.DalInitializingTask.execute(DalInitializingTask.java:121)
[importsampledata] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[importsampledata] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[importsampledata] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[importsampledata] at java.lang.reflect.Method.invoke(Method.java:597)
[importsampledata] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[importsampledata] at org.apache.tools.ant.Task.perform(Task.java:348)
[importsampledata] at org.apache.tools.ant.Target.execute(Target.java:357)
[importsampledata] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[importsampledata] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
[importsampledata] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[importsampledata] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
[importsampledata] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
[importsampledata] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[importsampledata] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[importsampledata] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[importsampledata] at java.lang.reflect.Method.invoke(Method.java:597)
[importsampledata] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[importsampledata] at org.apache.tools.ant.Task.perform(Task.java:348)
[importsampledata] at org.apache.tools.ant.Target.execute(Target.java:357)
[importsampledata] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[importsampledata] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
[importsampledata] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[importsampledata] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
[importsampledata] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
[importsampledata] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
[importsampledata] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[importsampledata] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[importsampledata] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[importsampledata] at java.lang.reflect.Method.invoke(Method.java:597)
[importsampledata] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[importsampledata] at org.apache.tools.ant.Task.perform(Task.java:348)
[importsampledata] at org.apache.tools.ant.Target.execute(Target.java:357)
[importsampledata] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[importsampledata] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
[importsampledata] at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
[importsampledata] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[importsampledata] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
[importsampledata] at org.apache.tools.ant.Main.runBuild(Main.java:698)
[importsampledata] at org.apache.tools.ant.Main.startAnt(Main.java:199)
[importsampledata] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[importsampledata] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
[importsampledata] Caused by: org.hibernate.PropertyValueException: not-null property references a null or transient value: FinancialMgmtPaymentTerm.fixMonthOffset
[importsampledata] at org.hibernate.engine.Nullability.checkNullability(Nullability.java:72)
[importsampledata] at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:290)
[importsampledata] at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
[importsampledata] at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:121)
[importsampledata] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
[importsampledata] at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
[importsampledata] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
[importsampledata] at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
[importsampledata] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
[importsampledata] at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535)
[importsampledata] at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
[importsampledata] at org.openbravo.dal.core.SessionHandler.save(SessionHandler.java:116)
[importsampledata] at org.openbravo.dal.service.OBDal.save(OBDal.java:113)
[importsampledata] at org.openbravo.service.db.DataImportService.insertObjectGraph(DataImportService.java:333)
[importsampledata] ... 48 more
[importsampledata] 205 [main] ERROR org.openbravo.base.exception.OBException - org.hibernate.PropertyValueException: not-null property references a null or transient value: FinancialMgmtPaymentTerm.fixMonthOffset

1. check out trunk, r11352
2. configure the ERP using the setup-tool
3. run "ant install.source"
platform1_sprint1
related to defect 0006587 closed alostale not all accesses are inserted when database is created 
Issue History
2008-12-18 12:30jpabloaeNew Issue
2008-12-18 12:30jpabloaeAssigned To => mtaal
2008-12-18 12:30jpabloaesf_bug_id0 => 2444989
2008-12-18 12:30jpabloaeRegression testing => No
2008-12-18 12:37alostaleRelationship addedrelated to 0006587
2008-12-18 12:49alostaleAssigned Tomtaal => alostale
2008-12-18 12:49alostaleTag Attached: platform1_sprint1
2008-12-18 12:51svnbotCheckin
2008-12-18 12:51svnbotNote Added: 0011516
2008-12-18 12:51svnbotStatusnew => resolved
2008-12-18 12:51svnbotResolutionopen => fixed
2008-12-18 12:51svnbotsvn_revision => 11357
2009-04-21 11:07psarobeStatusresolved => closed

Notes
(0011516)
svnbot   
2008-12-18 12:51   
Repository: openbravo
Revision: 11357
Author: alostale
Date: 2008-12-18 12:50:49 +0100 (Thu, 18 Dec 2008)

fixed bug 0006642: Sampledata import fails

---
U trunk/referencedata/sampledata/Accounting_Test.xml
U trunk/referencedata/sampledata/BigBazaar.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=11357&sc=1 [^]