-
ofbiz10安装、初始化数据时候出错20
提个问题,希望知道的人能来回答一下,困扰我了一阵子,安装ofbiz的时候,初始化数据ant run-install之后,编译一切OK。初始数据的时候。出现如下错误。访问数据库配置都正确。就剩20分。。
[java] 2012-03-25 03:47:57,973 (main) [ ComponentContainer.java:177:INFO ]
Auto-Loading component directory : [D:/workspace/ofbiz10/hot-deploy]
[java] Loaded ESAPI properties from classpath
[java] ========Master Configuration========
[java] 2012-03-25 03:47:57,988 (main) [ ComponentContainer.java:146:INFO ]
All components loaded
[java] 2012-03-25 03:47:58,113 (main) [ClassLoaderContainer.java:50 :INFO ]
CachedClassLoader created
[java] 2012-03-25 03:47:58,191 (main) [ ContainerLoader.java:95 :INFO ]
[Startup] Starting containers...
[java] 2012-03-25 03:47:58,191 (main) [DelegatorFactoryImpl.java:30 :INFO ]
Creating new delegator [default] (main)
[java] | LogEncodingRequired=false
[java] | LogLevel=ALL
[java] | MaxUploadFileBytes=500000000
[java] | ResponseContentType=text/html; charset=UTF-8
[java] | ValidExtensions=.zip,.pdf,.doc,.docx,.ppt,.pptx,.tar,.gz,.tgz,
.rar,.war,.jar,.ear,.xls,.rtf,.properties,.java,.class,.txt,.xml,.jsp,.jsf,.exe,
.dll
[java] | Validator.AccountName=^[a-zA-Z0-9]{3,20}$
[java] | Validator.CreditCard=^(\d{4}[- ]?){3}\d{4}$
[java] | Validator.DirectoryName=^[a-zA-Z0-9.-\_ ]{0,255}$
[java] | Validator.Email=^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[a-zA-Z]{2,4
}$
[java] | Validator.FileName=^[a-zA-Z0-9.\-_ ]{0,255}$
[java] | Validator.HTTPCookieName=^[a-zA-Z0-9\-_]{0,32}$
[java] | Validator.HTTPCookieValue=^[a-zA-Z0-9\-\/+=_ ]*$
[java] | Validator.HTTPHeaderName=^[a-zA-Z0-9\-_]{0,32}$
[java] | Validator.HTTPHeaderValue=^[a-zA-Z0-9()\-=\*\.\?;,+\/:&_ ]*$
[java] | Validator.HTTPParameterName=^[a-zA-Z0-9_]{0,32}$
[java] | Validator.HTTPParameterValue=^[a-zA-Z0-9.\-\/+=_ ]*$
[java] | Validator.IPAddress=^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]
?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
[java] | Validator.Redirect=^\/test.*$
[java] | Validator.RoleName=^[a-z]{1,20}$
[java] | Validator.SSN=^(?!000)([0-6]\d{2}|7([0-6]\d|7[012]))([ -]?)(?!
00)\d\d\3(?!0000)\d{4}$
[java] | Validator.SafeString=^[p{L}p{N}.]{0,1024}$
[java] | Validator.SystemCommand=^[a-zA-Z\-\/]{0,64}$
[java] | Validator.URL=^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z
])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\:\'\/\\\+=&%\$#_]*)?$
[java] | event.test.actions=disable,log
[java] | event.test.count=2
[java] | event.test.interval=10
[java] | org.owasp.esapi.errors.IntegrityException.actions=log,disable,
logout
[java] | org.owasp.esapi.errors.IntegrityException.count=10
[java] | org.owasp.esapi.errors.IntegrityException.interval=5
[java] | org.owasp.esapi.errors.IntrusionException.actions=log,disable,
logout
[java] | org.owasp.esapi.errors.IntrusionException.count=1
[java] | org.owasp.esapi.errors.IntrusionException.interval=1
[java] 2012-03-25 03:48:02,746 (main) [ ModelViewEntity.java:532:WARN ]
Conversion for complex-alias needs to be implemented for cache and in-memory eva
l stuff to work correctly, will not work for alias: statusDelay of view-entity E
xampleStatusDetail
[java] 2012-03-25 03:48:02,777 (main) [ ModelViewEntity.java:690:INFO ]
Throwing out field alias in view entity WorkEffortAssocFromView because one alre
ady exists with the alias name [sequenceNum] and field name [WEFROM(WorkEffort).
sequenceNum], existing field name is [WEA.sequenceNum]
[java] 2012-03-25 03:48:02,777 (main) [ ModelViewEntity.java:690:INFO ]
Throwing out field alias in view entity WorkEffortAssocToView because one alread
y exists with the alias name [sequenceNum] and field name [WETO(WorkEffort).sequ
enceNum], existing field name is [WEA.sequenceNum]
[java] 2012-03-25 03:48:02,777 (main) [ ModelViewEntity.java:690:INFO ]
Throwing out field alias in view entity WorkEffortProductGoods because one alrea
dy exists with the alias name [facilityId] and field name [PROD(Product).facilit
yId], existing field name is [WE.facilityId]
[java] 2012-03-25 03:48:02,777 (main) [ ModelViewEntity.java:690:INFO ]
Throwing out field alias in view entity WorkEffortProductGoods because one alrea
dy exists with the alias name [description] and field name [PROD(Product).descri
ption], existing field name is [WE.description]
[java] 2012-03-25 03:48:02,777 (main) [ ModelViewEntity.java:690:INFO ]
Throwing out field alias in view entity WorkEffortProductGoods because one alrea
dy exists with the alias name [reserv2ndPPPerc] and field name [PROD(Product).re
serv2ndPPPerc], existing field name is [WE.reserv2ndPPPerc]
[java] 2012-03-25 03:48:02,777 (main) [ ModelViewEntity.java:690:INFO ]
Throwing out field alias in view entity WorkEffortProductGoods because one alrea
dy exists with the alias name [reservNthPPPerc] and field name [PROD(Product).re
servNthPPPerc], existing field name is [WE.reservNthPPPerc]
[java] 2012-03-25 03:48:02,777 (main) [ ModelViewEntity.java:690:INFO ]
Throwing out field alias in view entity WorkEffortProductGoods because one alrea
dy exists with the alias name [createdDate] and field name [PROD(Product).create
dDate], existing field name is [WE.createdDate]
[java] 2012-03-25 03:48:02,777 (main) [ ModelViewEntity.java:690:INFO ]
Throwing out field alias in view entity WorkEffortProductGoods because one alrea
dy exists with the alias name [createdByUserLogin] and field name [PROD(Product)
.createdByUserLogin], existing field name is [WE.createdByUserLogin]
[java] 2012-03-25 03:48:02,777 (main) [ ModelViewEntity.java:690:INFO ]
Throwing out field alias in view entity WorkEffortProductGoods because one alrea
dy exists with the alias name [lastModifiedDate] and field name [PROD(Product).l
astModifiedDate], existing field name is [WE.lastModifiedDate]
[java] 2012-03-25 03:48:02,777 (main) [ ModelViewEntity.java:690:INFO ]
Throwing out field alias in view entity WorkEffortProductGoods because one alrea
dy exists with the alias name [lastModifiedByUserLogin] and field name [PROD(Pro
duct).lastModifiedByUserLogin], existing field name is [WE.lastModifiedByUserLog
in]
[java] 2012-03-25 03:48:02,809 (main) [ ModelViewEntity.java:532:WARN ]
Conversion for complex-alias needs to be implemented for cache and in-memory eva
l stuff to work correctly, will not work for alias: quantityOrdered of view-enti
ty OrderItemQuantityReportGroupByItem
[java] 2012-03-25 03:48:02,809 (main) [ ModelViewEntity.java:532:WARN ]
Conversion for complex-alias needs to be implemented for cache and in-memory eva
l stuff to work correctly, will not work for alias: quantityOpen of view-entity
OrderItemQuantityReportGroupByItem
[java] 2012-03-25 03:48:02,809 (main) [ ModelViewEntity.java:532:WARN ]
Conversion for complex-alias needs to be implemented for cache and in-memory eva
l stuff to work correctly, will not work for alias: quantityOrdered of view-enti
ty OrderItemQuantityReportGroupByProduct
[java] 2012-03-25 03:48:02,809 (main) [ ModelViewEntity.java:532:WARN ]
Conversion for complex-alias needs to be implemented for cache and in-memory eva
l stuff to work correctly, will not work for alias: quantityOpen of view-entity
OrderItemQuantityReportGroupByProduct
[java] 2012-03-25 03:48:02,809 (main) [ ModelViewEntity.java:532:WARN ]
Conversion for complex-alias needs to be implemented for cache and in-memory eva
l stuff to work correctly, will not work for alias: quantityOrdered of view-enti
ty OrderReportSalesGroupByProduct
[java] 2012-03-25 03:48:02,809 (main) [ ModelViewEntity.java:532:WARN ]
Conversion for complex-alias needs to be implemented for cache and in-memory eva
l stuff to work correctly, will not work for alias: quantityOrdered of view-enti
ty OrderItemAndShipGrpInvResAndItemSum
[java] 2012-03-25 03:48:02,809 (main) [ ModelViewEntity.java:532:WARN ]
Conversion for complex-alias needs to be implemented for cache and in-memory eva
l stuff to work correctly, will not work for alias: totQuantityAvailable of view
-entity OrderItemAndShipGrpInvResAndItemSum
[java] 2012-03-25 03:48:02,933 (main) [ ModelReader.java:389:INFO ]
FINISHED LOADING ENTITIES - ALL FILES; #Entities=849 #ViewEntities=267 #Fields=8
870 #Relationships=2925 #AutoRelationships=2157
[java] 2012-03-25 03:48:02,949 (main) [ GenericDelegator.java:244:INFO ]
Doing entity definition check...
[java] 2012-03-25 03:48:02,965 (main) [ ModelEntityChecker.java:502:INFO ]
[initReservedWords] array length=1023
[java] Exception in thread "main" java.lang.NullPointerException
[java] at org.ofbiz.entity.GenericDelegator.getEntityFieldType(GenericD
elegator.java:548)
[java] at org.ofbiz.entity.model.ModelEntityChecker.checkEntities(Model
EntityChecker.java:101)
[java] at org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.jav
a:245)
[java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFa
ctoryImpl.java:33)
[java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFa
ctoryImpl.java:25)
[java] at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObjec
t.java:202)
[java] at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFacto
ry.java:47)
[java] at org.ofbiz.entityext.data.EntityDataLoadContainer.start(Entity
DataLoadContainer.java:230)
[java] 2012-03-25 03:48:02,996 (OFBiz_Shutdown_Hook) [ ContainerLoader.j
ava:113:INFO ] Shutting down containers
[java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoade
r.java:100)
[java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
[java] at org.ofbiz.base.start.Start.startServer(Start.java:322)
[java] at org.ofbiz.base.start.Start.start(Start.java:326)
[java] at org.ofbiz.base.start.Start.main(Start.java:411)
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 54 seconds
D:\workspace\ofbiz10>
本人找到问题所在,此问题已经解决。因为配置entityengine.xml里面的字符集编码跟mysql数据库里面的没有对应,一个是utf8,一个是GBK,虽然gbk包含了utf8的所有字符。但还是两种不同的编码。包括entityengine.xml排序也要对应起来。。2012年3月25日 04:45
目前还没有答案
相关推荐
Ofbiz 安装与配置指南 Ofbiz 是一个基于 Java 的开源企业级电子商务平台,提供了强大的电子商务解决方案。为了帮助初学者快速上手 Ofbiz,我们将详细介绍 Ofbiz 的安装与配置过程。 环境搭建 在开始安装 Ofbiz ...
《Ofbiz数据模型查询手册》详细记录了开源企业资源规划系统(ERP)Apache OFBiz的数据库模型,该系统使用了Apache Derby数据库。Apache OFBiz是一个用于构建企业应用程序的框架,它提供了一套丰富的功能,包括订单...
这些模型文件通常为XML格式,比如`entityengine.xml`,它们定义了数据库表的字段、类型、约束等,并且可以通过Ofbiz的数据导入导出工具进行数据迁移和备份。开发者可以根据需要修改这些模型,以适应特定的业务需求或...
在OFBiz中,权限数据模型是管理用户访问控制的核心组件,确保只有授权的用户才能访问特定资源或执行特定操作。以下是关于OFBiz权限数据模型的详细解析。 1. **X509_ISSUER_PROVISION 数据模型**: 这个模型用于...
通过灵活的实体模型、高效的实体引擎、丰富的服务层、流程化的业务处理、智能的缓存策略、适应性的数据分区以及严谨的安全机制,OFBiz提供了强大且灵活的数据管理能力,为企业信息化建设提供了有力支撑。在实际项目...
2. 创建名为 `ofbiz10` 的数据库,这将作为 Ofbiz 的数据存储。 **步骤2:添加 MySQL 驱动** 1. 将 MySQL 的 JDBC 驱动 JAR 文件(通常为 `mysql-connector-java.jar`)复制到 `framework/entity/lib/jdbc` 目录下...
OFBiz 概貌包括 OFBiz 的核心架构、数据访问层、业务逻辑层、表示层等组件。OFBiz 概貌的了解将有助于开发者更好地理解 OFBiz 的工作机制和实现原理。 OFBiz 应用开发 OFBiz 应用开发是指使用 OFBiz 平台开发电商...
ofbiz数据模型中文手册详细介绍了OFBiz(Open For Business)项目的数据模型结构,它是用Apache License发布的开源电子商务套件的一部分。在OFBiz项目中,数据模型是其业务逻辑的基础,其中定义了大量的数据库表以及...
在本文中,我们将详细介绍如何在Windows 7操作系统上安装OFBiz企业应用框架,并配置PostgreSQL作为其数据库。OFBiz是一个开源的企业级应用平台,而PostgreSQL是一个强大的对象关系型数据库管理系统,它们共同为企业...
2. "ofbiz-pdm.pdm":这可能是PowerDesigner创建的数据模型文件,PowerDesigner是一款强大的数据库设计工具,可以用来创建、维护和可视化数据模型。 3. "ofbiz10.04Workspace.sws":这可能是一个工作空间文件,可能...
1. OFBiz介绍与安装:OFBiz是一个开源的企业自动化软件套件,它提供了构建企业应用程序所需的各种功能,比如电子商务、订单处理等。文件中提到了2008年的版本,这意味着可能有较新的版本替代。安装OFBiz涉及到获取源...
### OFBiz数据模型详解 #### 一、概述 在OFBiz框架中,数据模型是所有应用程序的核心组成部分之一,它定义了应用程序如何与数据库交互以及如何存储数据。本篇文档将详细解析“OFBiz数据模型”中的关键部分,尤其是...
ofbiz 国际化,非常简单的例子ofbiz-component.xml
标题中的"ofbiz10.04表结构"指的是OFBiz 10.04版本的数据模型设计,这是企业级开源应用框架OFBiz的一个重要组成部分。OFBiz全称为Open For Business Project,它是一个用于构建企业应用程序的全面业务解决方案,涵盖...
- **数据加载部分**:描述如何初始化数据库并填充测试数据。 - **验证安装过程**:确保所有步骤正确无误,避免后续运行中出现问题。 - **运行OFBiz**: - **分配内存给OFBiz**:根据系统配置合理调整内存大小。 ...
通过这个OFBiz完整示例,你可以了解到OFBiz中涉及的主要组件和流程,包括实体定义、数据初始化、UI设计、服务实现以及URL映射。理解并掌握这些知识,将有助于你在实际开发中更好地运用OFBiz进行企业级应用的构建。
1. **安装与配置**:压缩包可能包含了安装指南和配置文件,帮助用户快速设置本地开发环境或服务器环境,了解如何启动和运行OfBiz系统。 2. **功能模块**:OfBiz的各个模块如电子商务商店、库存管理、订单处理等可能...
4. **业务实体(Entity)管理**:学习Ofbiz的实体引擎,如何定义数据模型,创建和操作数据库表。 5. **服务(Service)开发**:理解Ofbiz的服务组件,如何编写和调用服务,实现业务逻辑。 6. **Web界面(GUI)设计...
通过上述章节的学习,读者不仅能够掌握 OFBiz 的基本安装和配置过程,还能够了解如何根据业务需求对 OFBiz 进行定制化开发。此外,还学习了如何管理数据、优化用户界面以及实现自动化流程等功能。这些知识对于构建...