We're updating the issue view to help you get more done. 

Error printing cleared till balance

Description

From a 1.7 error report:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 org.openvpms.component.business.service.ruleengine.RuleEngineException: Failed to execute the business rules for URI archetypeService.save.act.tillBalance.before. at org.openvpms.component.business.service.ruleengine.RuleEngine.executeRules(RuleEngine.java:75) at org.openvpms.component.business.service.archetype.rule.ArchetypeRuleService.executeRules(ArchetypeRuleService.java:594) at org.openvpms.component.business.service.archetype.rule.ArchetypeRuleService.access$100(ArchetypeRuleService.java:57) at org.openvpms.component.business.service.archetype.rule.ArchetypeRuleService$5.doInTransaction(ArchetypeRuleService.java:560) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130) at org.openvpms.component.business.service.archetype.rule.ArchetypeRuleService.execute(ArchetypeRuleService.java:557) at org.openvpms.component.business.service.archetype.rule.ArchetypeRuleService.save(ArchetypeRuleService.java:325) at org.openvpms.component.business.service.archetype.rule.ArchetypeRuleService.save(ArchetypeRuleService.java:290) at org.openvpms.web.component.im.edit.SaveHelper.save(SaveHelper.java:174) at org.openvpms.web.component.im.edit.SaveHelper.save(SaveHelper.java:151) at org.openvpms.web.component.im.edit.SaveHelper.save(SaveHelper.java:119) at org.openvpms.web.component.im.edit.SaveHelper.save(SaveHelper.java:108) at org.openvpms.web.component.im.edit.ActActions.setPrinted(ActActions.java:98) at org.openvpms.web.workspace.reporting.till.TillCRUDWindow$9.printed(TillCRUDWindow.java:335) at org.openvpms.web.component.print.InteractivePrinter.printed(InteractivePrinter.java:482) at org.openvpms.web.component.print.InteractivePrinter.doPrint(InteractivePrinter.java:424) at org.openvpms.web.component.print.InteractivePrinter$2.onClose(InteractivePrinter.java:389) at org.openvpms.web.echo.event.WindowPaneListener.windowPaneClosing(WindowPaneListener.java:37) at nextapp.echo2.app.WindowPane.fireWindowClosing(WindowPane.java:154) at org.openvpms.web.echo.dialog.PopupWindow.fireWindowClosing(PopupWindow.java:215) at nextapp.echo2.app.WindowPane.userClose(WindowPane.java:795) at org.openvpms.web.echo.dialog.PopupDialog.userClose(PopupDialog.java:262) at org.openvpms.web.echo.dialog.PopupWindow.close(PopupWindow.java:142) at org.openvpms.web.echo.dialog.PopupDialog.close(PopupDialog.java:417) at org.openvpms.web.echo.dialog.PopupDialog.onOK(PopupDialog.java:323) at org.openvpms.web.echo.dialog.PopupDialog.onButton(PopupDialog.java:294) at org.openvpms.web.echo.dialog.PopupDialog$3.onAction(PopupDialog.java:448) at org.openvpms.web.echo.event.ActionListener.actionPerformed(ActionListener.java:40) at nextapp.echo2.app.button.AbstractButton.fireActionPerformed(AbstractButton.java:135) at echopointng.ButtonEx$1.actionPerformed(ButtonEx.java:120) at nextapp.echo2.app.button.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:70) at echopointng.model.DefaultButtonModelEx.doAction(DefaultButtonModelEx.java:51) at echopointng.ButtonEx.processInput(ButtonEx.java:202) at nextapp.echo2.app.update.ClientUpdateManager.process(ClientUpdateManager.java:116) at nextapp.echo2.app.update.UpdateManager.processClientUpdates(UpdateManager.java:89) at nextapp.echo2.webcontainer.ContainerSynchronizeService.renderUpdate(ContainerSynchronizeService.java:471) at nextapp.echo2.webrender.service.SynchronizeService.service(SynchronizeService.java:279) at nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:273) at org.openvpms.web.echo.servlet.SpringWebContainerServlet.process(SpringWebContainerServlet.java:174) at nextapp.echo2.webrender.WebRenderServlet.doPost(WebRenderServlet.java:189) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Unknown Source) Caused by: org.springmodules.jsr94.Jsr94InvalidRuleSessionException: org.openvpms.archetype.rules.finance.till.TillRuleException: Cannot modify Cleared till; nested exception is RuleException(javax.rules.InvalidRuleSessionException: org.openvpms.archetype.rules.finance.till.TillRuleException: Cannot modify Cleared till), root cause(org.drools.spi.ConsequenceException: org.openvpms.archetype.rules.finance.till.TillRuleException: Cannot modify Cleared till) at org.springmodules.jsr94.core.Jsr94Template.executeStateless(Jsr94Template.java:149) at org.springmodules.jsr94.core.Jsr94RuleSupport.executeStateless(Jsr94RuleSupport.java:108) at org.springmodules.jsr94.core.Jsr94RuleSupport.executeStateless(Jsr94RuleSupport.java:148) at org.openvpms.component.business.service.ruleengine.RuleEngine.executeRules(RuleEngine.java:73) ... 70 more Caused by: javax.rules.InvalidRuleSessionException: org.openvpms.archetype.rules.finance.till.TillRuleException: Cannot modify Cleared till at org.drools.jsr94.rules.StatelessRuleSessionImpl.executeRules(StatelessRuleSessionImpl.java:169) at org.drools.jsr94.rules.StatelessRuleSessionImpl.executeRules(StatelessRuleSessionImpl.java:126) at org.springmodules.jsr94.core.Jsr94RuleSupport$1.execute(Jsr94RuleSupport.java:115) at org.springmodules.jsr94.core.Jsr94Template.executeStateless(Jsr94Template.java:146) ... 73 more Caused by: org.drools.spi.ConsequenceException: org.openvpms.archetype.rules.finance.till.TillRuleException: Cannot modify Cleared till at org.drools.semantics.java.JavaBlockConsequence.invoke(JavaBlockConsequence.java:150) at org.drools.reteoo.AgendaItem.fire(AgendaItem.java:168) at org.drools.reteoo.Agenda.fireNextItem(Agenda.java:476) at org.drools.reteoo.WorkingMemoryImpl.fireAllRules(WorkingMemoryImpl.java:253) at org.drools.reteoo.WorkingMemoryImpl.fireAllRules(WorkingMemoryImpl.java:268) at org.drools.jsr94.rules.StatelessRuleSessionImpl.executeRules(StatelessRuleSessionImpl.java:165) ... 76 more Caused by: org.openvpms.archetype.rules.finance.till.TillRuleException: Cannot modify Cleared till at org.openvpms.archetype.rules.finance.till.TillBalanceRules.checkCanSaveTillBalance(TillBalanceRules.java:85) at Consequence_0.invoke(ANONYMOUS.java:4) at org.drools.semantics.java.JavaBlockConsequence.invoke(JavaBlockConsequence.java:130) ... 81 more

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Fix versions

Affects versions

1.7

Priority

Minor