在呈现以下视图状态时,我遇到了 Web 流异常。如果我直接打开此视图状态,它工作正常,但是当我来自不同的流程时,它会引发 webflow 异常。
我还观察到,如果我不在屏幕上执行任何操作并长时间连续打开我的屏幕,它也会引发相同的异常。
我的流文件:
<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()" />
例外:
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方法:
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();
}
请就此向我提出建议。在此先感谢!
维卡斯·索尼