为什么当向页面提供有效输入时会生成 javax.ejb.EJBException?

发布于 2024-12-23 17:30:49 字数 578 浏览 1 评论 0原文

我目前正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七堇年 2024-12-30 17:30:49

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.).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文