Monday, March 26, 2012

ADF odd error : ADFC-10001: cannot instantiate class

Running one of my adf pages with some code in the construtor O got the following error:

JspServlet error: Servlet unable to dispatch to the following requested page: The following exception occurred:javax.faces.FacesException: javax.faces.FacesException: oracle.adf.controller.ControllerException:
ADFC-10001: cannot instantiate class ''

I was adding a partial target to my page in the constructor which is a no no - remove the line
AdfFacesContext.getCurrentInstance().addPartialTarget(getResultTable()); and all was well again.

Note: this can also be caused by any error in the bean constructor.

1 comment: