是什么原因导致“无法注册空资源”? ICEfaces 中的错误?

发布于 2024-09-17 11:17:08 字数 177 浏览 2 评论 0原文

Java EE 5、带有 Facelets 的 JSF 1.2、ICEfaces 1.8.2

使用ice:outputResource 标记时,什么会导致 ICEfaces 中出现“无法注册空资源”错误?从 ICEfaces 源代码来看,它看起来像是资源为 null 时(废话),但我确信事实并非如此。还有其他可能的原因吗?

Java EE 5, JSF 1.2 with Facelets, ICEfaces 1.8.2

What can cause a "Cannot register a null resource" error in ICEfaces, using an ice:outputResource tag? From the ICEfaces source code, it looks like it's when the resource is null (duh), but I'm positive that it isn't. Are there any other possible causes?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

情泪▽动烟 2024-09-24 11:17:08

哦,我明白了。 Resource 是一个匿名类,我在其中实现的继承方法之一(具体来说,com.icesoft.faces.context.Resource.calculateDigest())有时会导致在堆栈跟踪中看不到的 NullPointerException。

我经常对 Java 技术的错误消息感到沮丧;通过提供详细、有用的错误消息(这是一项功能!),我的工作效率可能会提高 25%。

Oh, I got it. The Resource was an anonymous class, and one of the inherited methods I implemented in it (specifically, com.icesoft.faces.context.Resource.calculateDigest()) sometimes caused a NullPointerException that was nowhere to be seen in the stack trace.

I'm often frustrated with Java technologies' error messages; my productivity could probably be increased by 25% by having detailed, helpful error messages (it's a feature!).

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