Runtime Exception in Oracle ADF application with Oracle BAM Data Control - Failed handling event FirstGetOnDataProvider on QueryConfigured
We may receive the following exception while running the Oracle ADF application
with Oracle BAM Data Control configured into that.
<Dec 19, 2012 3:07:06 AM
PST> <Error> <oracle.tip.tools.ide.bam.dc.rt.fsm.StateMachine>
<BEA-000000> <Failed handling event FirstGetOnDataProvider on QueryConfigured>
<Dec 19, 2012 3:07:06 AM
PST> <Warning> <oracle.adf.controller.faces.lifecycle.Utils>
<BEA-000000> <ADF: Adding the following JSF error message: Failed
handling event FirstGetOnDataProvider on QueryConfigured
oracle.tip.tools.ide.bam.dc.rt.fsm.exception.TransitionFailureException:
Failed handling event FirstGetOnDataProvider on QueryConfigured
at
oracle.tip.tools.ide.bam.dc.rt.fsm.StateMachine.internalHandle(StateMachine.java:249)
at
oracle.tip.tools.ide.bam.dc.rt.fsm.StateMachine.handle(StateMachine.java:151)
at
oracle.tip.tools.ide.bam.dc.rt.provider.paging.PagingCollection$PagingIterator.<init>(PagingCollection.java:272)
at
oracle.tip.tools.ide.bam.dc.rt.provider.paging.PagingCollection$PagingIterator.<init>(PagingCollection.java:234)
at
oracle.tip.tools.ide.bam.dc.rt.provider.paging.PagingCollection.iterator(PagingCollection.java:152)
at
oracle.adf.model.bean.DCDataVO.buildProviderIterator(DCDataVO.java:1319)
at oracle.adf.model.bean.DCDataVO.access$100(DCDataVO.java:86)
at
oracle.adf.model.bean.DCDataVO$DCObjectAdapter.refreshIterator(DCDataVO.java:2923)
at
oracle.adf.model.bean.DCDataVO.executeQueryForCollection(DCDataVO.java:404)
at
oracle.tip.tools.ide.bam.dc.dt.adapter.BAMDataControlDataVO.executeQueryForCollection(BAMDataControlDataVO.java:83)
at
oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1217)
at
oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1397)
at
oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1303)
at
oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1288)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:7107)
at
oracle.adf.model.bean.DCBeanDataControl.executeIteratorBindingIfNeeded(DCBeanDataControl.java:990)
at
oracle.tip.tools.ide.bam.dc.dt.adapter.BAMAdapterDCService.executeIteratorBindingIfNeeded(BAMAdapterDCService.java:235)
at
oracle.adf.model.binding.DCIteratorBinding.executeQueryIfNeeded(DCIteratorBinding.java:2160)
at
oracle.jbo.uicli.binding.JUCtrlHierBinding.getRootNodeBinding(JUCtrlHierBinding.java:95)
at oracle.adfinternal.view.faces.model.binding.RowDataManager.getParent(RowDataManager.java:251)
at oracle.adfinternal.view.faces.model.
The issue is because of the BAM
connection details are not configured in the EM console after the deployment of
the application.
If we are deploying the application
to the stand alone server, the Oracle BAM connection must be re-created in
Oracle Fusion Middleware Control Console after the deployment of the
application.
Also application must be deployed
using MDS enabled otherwise the connection details will not be persisted.
Steps to resolve this issue:
Enable the MDS for the
Application:
- Right click on the project and
Select Project Properties.