Description
I have removed the applications and I am runing a standalone ofbiz. I receive an error message when using webtools:
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)
It appears that /framework/webapp/src/org/ofbiz/webapp/stats/ServerHitBin.java has a dependency on /applications/content/data/ContentTypeData.xml
ServerHitBin.java:
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"};
ContentTypeData.xml
<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"/>
Can we move this seed data to somewhere within the framework folder?
Attachments
Attachments
Issue Links
- is part of
-
OFBIZ-3500 Umbrella issue for components dependency
- Open