ServerHitBin.java has a dependency on content component -------------------------------------------------------
Key: OFBIZ-3501 URL: https://issues.apache.org/jira/browse/OFBIZ-3501 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: SVN trunk Reporter: chris snow I have removed the applications and I am runing a standalone ofbiz. I receive an error message when using webtools: {code} 2010-02-24 10:22:36,827 (http-0.0.0.0-8443-6) [ ServerHitBin.java:606:WARN ] The datamodel data has not been loaded; cannot find hitTypeId 'REQUEST not storing ServerHit. 2010-02-24 10:22:36,832 (http-0.0.0.0-8443-6) [ GenericDelegator.java:767:ERROR] ---- exception report ---------------------------------------------------------- Failure in create operation for entity [ServerHitBin]: org.ofbiz.entity.GenericEntityNotFoundException: Result set was empty for entity: [GenericEntity:ServerHitBin][serverHitBinId,10025(java.lang.String)]. Rolling back transaction. Exception: org.ofbiz.entity.GenericEntityNotFoundException Message: Result set was empty for entity: [GenericEntity:ServerHitBin][serverHitBinId,10025(java.lang.String)] ---- stack trace --------------------------------------------------------------- org.ofbiz.entity.GenericEntityNotFoundException: Result set was empty for entity: [GenericEntity:ServerHitBin][serverHitBinId,10025(java.lang.String)] org.ofbiz.entity.datasource.GenericDAO.select(GenericDAO.java:538) org.ofbiz.entity.datasource.GenericDAO.select(GenericDAO.java:493) {code} It appears that /framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java has a dependency on /applications/content/data/ContentTypeData.xml ServerHitBin.java: {code} public static final int REQUEST = 1; public static final int EVENT = 2; public static final int VIEW = 3; public static final int ENTITY = 4; public static final int SERVICE = 5; public static final String[] typeNames = {"", "Request", "Event", "View", "Entity", "Service"}; public static final String[] typeIds = {"", "REQUEST", "EVENT", "VIEW", "ENTITY", "SERVICE"}; {code} ContentTypeData.xml {code} <ServerHitType description="Request" hitTypeId="REQUEST"/> <ServerHitType description="Event" hitTypeId="EVENT"/> <ServerHitType description="View" hitTypeId="VIEW"/> <ServerHitType description="Entity" hitTypeId="ENTITY"/> <ServerHitType description="Service" hitTypeId="SERVICE"/> {code} Can we move this seed data to somewhere within the framework folder? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.