Thanks for doing that. Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com
o:801.649.6594 f:801.649.6595 ----- "Cimballi" <[email protected]> wrote: > Created : https://issues.apache.org/jira/browse/OFBIZ-2697 > > Cimballi > > > On Fri, Jul 3, 2009 at 9:35 AM, Andrew Zeneski<[email protected]> > wrote: > > Even with a typo, OFBiz should not leave you with stale data. I > think > > this should be corrected. Can you file a JIRA issue for this ? > > > > Andrew > > > > On Fri, Jul 3, 2009 at 9:31 AM, > Cimballi<[email protected]> wrote: > >> Hi, > >> > >> Here is the beginning of the stack trace : > >> 2009-07-03 08:23:39,836 (RMI TCP Connection(5)-192.168.1.33) [ > >> GenericDelegator.java:398:ERROR] > >> ---- exception report > ---------------------------------------------------------- > >> Error getting entity definition from model > >> Exception: org.ofbiz.entity.GenericModelException > >> Message: Could not find definition for entity name ShipGroup > >> ---- stack trace > --------------------------------------------------------------- > >> org.ofbiz.entity.GenericModelException: Could not find definition > for > >> entity name ShipGroup > >> > org.ofbiz.entity.model.ModelReader.getModelEntity(ModelReader.java:451) > >> > org.ofbiz.entity.GenericDelegator.getModelEntity(GenericDelegator.java:396) > >> > org.ofbiz.entity.GenericDelegator.getNextSeqIdLong(GenericDelegator.java:3166) > >> > org.ofbiz.entity.GenericDelegator.getNextSeqId(GenericDelegator.java:3119) > >> > org.ofbiz.entity.GenericDelegator.getNextSeqId(GenericDelegator.java:3109) > >> > >> As you can see my error is because in my service I wrote > "ShipGroup", > >> which is not an existing entity. > >> > >> And I found that the problem for the transaction not being rolled > back > >> comes from here : > >> ofbiz/framework/entity/src/org/ofbiz/entity/GenericDelegator.java > >> public ModelEntity getModelEntity(String entityName) { > >> try { > >> return getModelReader().getModelEntity(entityName); > >> } catch (GenericEntityException e) { > >> Debug.logError(e, "Error getting entity definition from > >> model", module); > >> return null; > >> } > >> } > >> > >> In fact, I suppose you don't care about the exception because you > >> should not have typo error in the name of the entities. > >> > >> Cimballi > >> > > > >
