如何解决 Oracle Adf 中没有消息的错误?
我在 Oracle Adf 中的按钮单击事件上收到一条错误消息,但没有任何消息。它只是在下一行中显示“错误”和“-”符号。控制台中也没有什么显示。如何解决这个问题?
I'm receiving an Error with no message on a button click event in Oracle Adf. It's just showing 'Error' and a '-' symbol in the next line. There's nothing much showing in console also. How to fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否调用该按钮上的方法,或者是否附加了一些操作侦听器?
- 如果您调用一个抛出异常但没有消息的方法,您将收到“错误 - ”消息。如果您有这样的方法,请尝试用 try/catch 块包围它,并确保在相应的 catch 块中打印堆栈跟踪。
-如果您有直接绑定到页面定义中的方法的按钮,请尝试使用选项(右键单击)将操作侦听器转换为调用支持 bean 中新方法的操作
- 如果您有第三种情况,我想我们需要有关您的按钮及其属性的更多详细信息:)
问候
Do you invoke a method on that button , or you have some action listener attached to it?
- If you are invoking a method which throws an exception without a message you'll get "Error - " message. If you have such method, try to surround it with try/catch block and make sure you print the stack trace in corresponding catch block.
-If you have button which is directly bound to a method in a page definition, try to use option (on right click) which converts an action listener to a action which calls a new method in backing bean
- If you have third case, than I suppose we'll need more details about your button and its properties :)
Regards