为什么当向页面提供有效输入时会生成 javax.ejb.EJBException?
我目前正在使用 jsp 编写网页,并且还使用 java beans。我已经实现了根据数据库中的值检查输入内容并接受输入并将其存储在数据库中的部分。当我在页面中输入valdi数据时,抛出javax.ejb.EJBException异常。以下是错误页面:
HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.ejb.EJBException
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.1 logs.
有谁知道为什么会产生这种类型的错误,因为我在网上没有找到任何有用的帮助。可能是持久化单元的内容正在生成例外吗?
感谢您的帮助
i'm currently coding webpages using jsp and i'm also using java beans. i've implemented the part where the inpuuted contents are checked against the values in the database and accept the input and store it in the database. hwoever when I input valdi data in the page, the javax.ejb.EJBException exception is thown. The following is the error page:
HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.ejb.EJBException
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.1 logs.
does anyone of you know why this type of error is generated because I did not find any useful help on the net. Could it be maybe the contents of the persistence unit are generating the exception ?
thanks for your help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
EJBException
通常只是 EJB 执行期间发生的真实异常的包装。因此,请查看嵌套异常以了解真正的原因。它甚至有一个方法:getCausedByException()
(JavaDoc 说:获取导致 EJBException 抛出的异常。
)。The
EJBException
is normally just a wrapper for the real exception that happend during execution of an EJB. So have a look at the nested exceptions for the real cause. It even has a method for this:getCausedByException()
(JavaDoc says:Obtain the exception that caused the EJBException to be thrown.
).