0

我正在使用 JDeveloper 创建 ADF,并且使用一种形式出现此错误:

(oracle.jbo.JboException) JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null

详情如下:

(oracle.jbo.JboException) JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
----- LEVEL 1: DETAIL 0 -----
(java.lang.NullPointerException) null

堆栈跟踪是:

oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
    at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:228)
    at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:274)
    at gui.operativniPlan.FormOperativniPlan.setBindingContext(FormOperativniPlan.java:187)
    at gui.operativniPlan.FormOperativniPlan.main(FormOperativniPlan.java:98)
## Detail 0 ##
java.lang.NullPointerException
    at gui.operativniPlan.FormOperativniPlan.jbInit(FormOperativniPlan.java:59)
    at gui.operativniPlan.FormOperativniPlan.setBindingContext(FormOperativniPlan.java:184)
    at gui.operativniPlan.FormOperativniPlan.main(FormOperativniPlan.java:98)

----- LEVEL 1: DETAIL 0 -----
java.lang.NullPointerException
    at gui.operativniPlan.FormOperativniPlan.jbInit(FormOperativniPlan.java:59)
    at gui.operativniPlan.FormOperativniPlan.setBindingContext(FormOperativniPlan.java:184)
    at gui.operativniPlan.FormOperativniPlan.main(FormOperativniPlan.java:98)

知道我应该在哪里寻找问题吗?

4

3 回答 3

1

有时我收到异常,因为我创建了一个 ViewObjectImplementation 并在其中创建或编辑了一个方法,该方法可能会生成无法捕获的异常,因此 ADF 无法编写错误跟踪。

因此,我的建议是,如果您有一些 ADF 类实施,请查看它并用一些 try-catch 包围。

马科斯。

于 2013-03-04T07:54:27.360 回答
0

此错误主要是您的java方法中的SQL错误或编码错误引起的。如果您在 app 模块中公开您的自定义业务逻辑,请确保您在 appmoduleimpl 中创建的方法是正确的。使用 findViewObject 方法时,您必须将视图对象实例而不是实际视图对象('VOI' 而不是 'VO')作为字符串传递。希望这可以帮助 :)

于 2019-05-20T17:20:57.207 回答
-2

您需要添加 Java Options -Duser.timezone=+6:00 并且它会起作用。

于 2013-04-17T12:11:13.490 回答