This has been an exception day. I received two new exceptions, one mentioned in previous post and next is below:
oracle.jbo.InvalidOperException: JBO-25221: Method AppModuleDataControl.EmployeeView1.getRowStatus() not supported
at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:491)
at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:2134)
at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:3020)
at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:257)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1625)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2141)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:730)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:394)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252) at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
at BackingBeanClass.onCancel_CancelButtonApp3(BackingBeanClass.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
I was getting this error while calling a method defined in viewobjectimpl class from backing bean. When i tried system.out.print in the viewobjectimpl method, i found that the method is not even called.
So the reason of this exception was that, the view controller project that i was using was not build at the time i created the application. I created a new ADF Viewcontroller Project later. So the problem was, this view controller project was not dependent on model project in the application. That why when the method in viewobjectimpl was never called. To resolve this, open the view controller project properties and add model.jpr Build Output under the Dependencies.
No comments:
Post a Comment