I'm getting web flow exception while rendering of the below view state. Its working fine if i directly open this view state but when i come from different flow it throws webflow exception.
I also observed that If i don't perform any action on screen and continuously open my screen for a long time, than it also throws the same exception.
My Flow file:
<view-state id="eftBatchRejection">
<on-entry>
<set name="conversationScope.currentState" value="'eftBatchRejection'" />
<set name="conversationScope.errorState" value="'eftBatchRejection'" />
<set name="flowScope.flowValidator" value="'true'" />
<!-- Set HELP link -->
<evaluate expression="utilities.handleHelpUrl(conversationScope.currentState)" result="flowScope.helpURL" />
<evaluate expression="paymentEntryBean.setEFTRejectionBatchLayer()" />
Exception:
Attempting to handle [org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@15aad3e targetAction = [EvaluateAction@13e5dec expression = paymentEntryBean.setEFTRejectionBatchLayer(), resultExpression = [null]], attributes = map[[empty]]] in state 'eftBatchRejection' of flow 'billing/paymentEntry' -- action execution attributes were 'map[[empty]]'] with root cause [java.lang.NullPointerException]
2013-09-13 16:48:08 ERROR WebflowExceptionHandlerBean:90 - HANDLING FLOW EXECUTION EXCEPTION: org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@15aad3e targetAction = [EvaluateAction@13e5dec expression = paymentEntryBean.setEFTRejectionBatchLayer(), resultExpression = [null]], attributes = map[[empty]]] in state 'eftBatchRejection' of flow 'billing/paymentEntry' -- action execution attributes were 'map[[empty]]'
org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@15aad3e targetAction = [EvaluateAction@13e5dec expression = paymentEntryBean.setEFTRejectionBatchLayer(), resultExpression = [null]], attributes = map[[empty]]] in state 'eftBatchRejection' of flow 'billing/paymentEntry' -- action execution attributes were 'map[[empty]]'
at org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:60)
at org.springframework.webflow.engine.ActionList.execute(ActionList.java:155)
Java Method:
public void setEFTRejectionBatchLayer() {
if (initializeObjects == null || !(initializeObjects.equalsIgnoreCase(Constants.NO_IND))) {
EftRejectionBatchDTO eftRejectionBatchDTO = (EftRejectionBatchDTO) UXTools.getBean(EFT_REJECTION_BATCH_DTO);
BatchPayment batchPayment = new BatchPayment();
MiscParty miscParty = new MiscParty();
}
Please advise me on this.Thanks in Advance!
Vikas Soni