jdon-j2ee教程疑问

nakata2004 04-06-17

按教程部署EAR到JBOSS后,运行testEJB.jsp文件,抛出如下EXCEPTION

org.apache.jasper.JasperException: java.lang.Exception: javax.ejb.TransactionRolledbackLocalException: createBeanClassInstanceCommand == null; CausedByException is:
createBeanClassInstanceCommand == null
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service

请告知可能的错误,谢谢!

nakata2004
2004-06-17 11:17

org.apache.jasper.JasperException: java.lang.Exception: javax.ejb.CreateException: Could not create entity:java.sql.SQLException: General error message from server: "Column 'grade' cannot be null"
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)

以上EXCEPTION,可能是什么文件出错呢?

wwlhp@jdon
2004-06-17 14:16

实体bean的create方法传入的参数有问题,对应的表的grade字段不能为NULL。

nakata2004
2004-06-17 14:25

谢谢,调出来了