有关搭建ofbiz-tomcat-2001.09.29,出现的错误!请指教!

03-02-17 myid

搭建ofbiz-tomcat-2001.09.29的过程中,有个别页面不能正常运行,如在下页中:

点击创建,报错信息如下:

A Servlet Exception Has Occurred

java.lang.IllegalArgumentException: [GenericDelegator.findByPrimaryKey] Passed primary key is not a valid primary key: [GenericEntity:AccoutingPeriod]

at org.ofbiz.core.entity.GenericDelegator.findByPrimaryKey(Unknown Source)

at org.apache.jsp.ViewGeneric$jsp._jspService(ViewGeneric$jsp.java:1083)

at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)

at org.apache.jasper.servlet.JspServlet.service(Unknown Source)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source)

at org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown Source)

at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown Source)

at org.ofbiz.core.control.ControlServlet.doGet(Unknown Source)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)

at org.ofbiz.core.control.ContextSecurityFilter.doFilter(Unknown Source)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)

at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)

at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)

at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)

at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)

at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)

at org.apache.catalina.core.StandardContext.invoke(Unknown Source)

at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)

at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)

at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)

at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)

at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)

at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)

at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)

at java.lang.Thread.run(Thread.java:536)

请指教!多谢了!

hxz
2003-02-18 10:04

我安装时也出错了!虽然是参考奖湖的网站上的方法,希望将糊写一个

"how to...."!

myid
2003-02-18 10:46

ViewGeneric.jsp第一次运行时,fval的值为空,所以无法执行:

curFindString = curFindString + "&" + field.name + "=" + fval;

findByPK.setString(field.name, fval);

所以我将if(fval != null && fval.length() > 0)条件注掉:代码如下:

else

{

String fval = request.getParameter(field.name);

out.println("fval:"+fval);

//if(fval != null && fval.length() > 0)

//{

curFindString = curFindString + "&" + field.name + "=" + fval;

findByPK.setString(field.name, fval);

//}

}

创建页可显示,但有一些链接出错,另外,查找页显示后,输出查找条件,报错信息如下:

A Servlet Exception Has Occurred

java.lang.IllegalStateException: [GenericEntity.getDelegator] delegator not set

at org.ofbiz.core.entity.GenericEntity.getDelegator(Unknown Source)

at org.ofbiz.core.entity.GenericEntity.setString(Unknown Source)

at org.apache.jsp.FindGeneric$jsp._jspService(FindGeneric$jsp.java:1075)

at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)

at org.apache.jasper.servlet.JspServlet.service(Unknown Source)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source)

at org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown Source)

at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown Source)

at org.ofbiz.core.control.ControlServlet.doGet(Unknown Source)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)

at org.ofbiz.core.control.ContextSecurityFilter.doFilter(Unknown Source)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)

at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)

at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)

at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)

at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)

at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)

at org.apache.catalina.core.StandardContext.invoke(Unknown Source)

at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)

at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)

at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)

at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)

at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)

at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)

at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)

at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)

at java.lang.Thread.run(Thread.java:536)

请指教!多谢了!

wys1978
2003-02-18 12:51

你用的版本是老版本, 你可以从这里下载到OFBiz的最新版本.

http://sourceforge.net/projects/ofbiz

目前最新的是2.0

http://prdownloads.sourceforge.net/ofbiz/ofbiz-2.0.0-apps.zip?download

浆糊
2003-02-24 22:54

是的,ofbiz已经正式发布了2。0,你门可以用最新的版本试试

2Go 1 2 下一页