I am building application using Jdeveloper 11.1.1.7.0. This application will run by a scheduler based on the time interval specified in the application. The main purpose of this application is to do online transaction using Online Web Services.
- FacesContext context = FacesContext.getCurrentInstance();
- ValueExpression ve = context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(), "#{data}", BindingContext.class);
- BindingContext bc = (BindingContext) ve.getValue(context.getELContext());
- DCDataControl dc = bc.findDataControl("someAppDataControl");
- someAppImpl someApp= (someAppImpl )dc.getDataProvider();
But I am getting Null value for context. Basically, there is no JSF pages at all since the application is not built for user interaction and most likely that's why I am getting Null Pointer Exception. But how to solve this issue?