是什么原因导致“无法注册空资源”? ICEfaces 中的错误?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
哦,我明白了。 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!).