VPMS Web Application

Deselecting a product in Charges editor generated application error

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.3
  • Fix Version/s: 1.3
  • Component/s: Customer
  • Labels:
    None

Description

While editing charge items if you remove a selected product and hit edit you get an application error with the following exception.

15:38:57,917 ERROR ErrorHelper,http-8080-Processor40:120 - An internal application error has occurred.
java.lang.NullPointerException
at org.openvpms.archetype.rules.product.ProductPriceRules.findPrice(ProductPriceRules.java:343)
at org.openvpms.archetype.rules.product.ProductPriceRules.getProductPrice(ProductPriceRules.java:308)
at org.openvpms.archetype.rules.product.ProductPriceRules.getProductPrice(ProductPriceRules.java:99)
at org.openvpms.web.component.im.edit.act.ActItemEditor.getProductPrice(ActItemEditor.java:180)
at org.openvpms.web.app.customer.PriceActItemEditor.getDefaultFixedProductPrice(PriceActItemEditor.java:218)
at org.openvpms.web.app.customer.charge.CustomerChargeActItemEditor.productModified(CustomerChargeActItemEditor.java:325)
at org.openvpms.web.component.im.edit.act.ActItemEditor.productModified(ActItemEditor.java:158)
at org.openvpms.web.component.im.edit.act.ActItemEditor$1.modified(ActItemEditor.java:271)
at org.openvpms.web.component.property.ModifiableListeners.notifyListeners(ModifiableListeners.java:75)
at org.openvpms.web.component.edit.Editors.notifyListeners(Editors.java:263)
at org.openvpms.web.component.edit.Editors$1.modified(Editors.java:275)
at org.openvpms.web.component.property.ModifiableListeners.notifyListeners(ModifiableListeners.java:75)
at org.openvpms.web.component.property.AbstractProperty.refresh(AbstractProperty.java:91)
at org.openvpms.web.component.property.IMObjectProperty.modified(IMObjectProperty.java:492)
at org.openvpms.web.component.property.IMObjectProperty.setValue(IMObjectProperty.java:145)
at org.openvpms.web.component.im.edit.AbstractIMObjectReferenceEditor.updateProperty(AbstractIMObjectReferenceEditor.java:352)
at org.openvpms.web.component.im.edit.AbstractIMObjectReferenceEditor.setObject(AbstractIMObjectReferenceEditor.java:154)
at org.openvpms.web.component.im.product.ProductReferenceEditor.setProduct(ProductReferenceEditor.java:168)
at org.openvpms.web.component.im.product.ProductReferenceEditor.onSelected(ProductReferenceEditor.java:93)
at org.openvpms.web.component.im.product.ProductReferenceEditor.onSelected(ProductReferenceEditor.java:60)
at org.openvpms.web.component.im.edit.AbstractIMObjectReferenceEditor$2.selected(AbstractIMObjectReferenceEditor.java:122)
at org.openvpms.web.component.im.select.IMObjectSelector.notifySelected(IMObjectSelector.java:409)
at org.openvpms.web.component.im.select.IMObjectSelector.onTextChanged(IMObjectSelector.java:376)
at org.openvpms.web.component.im.select.IMObjectSelector.access$000(IMObjectSelector.java:54)
at org.openvpms.web.component.im.select.IMObjectSelector$2.documentUpdate(IMObjectSelector.java:149)
at nextapp.echo2.app.text.AbstractDocument.fireDocumentUpdate(AbstractDocument.java:78)
at org.openvpms.web.component.util.TextDocument.setText(TextDocument.java:63)
at nextapp.echo2.app.text.TextComponent.setText(TextComponent.java:514)
at nextapp.echo2.app.text.TextComponent.processInput(TextComponent.java:334)
at nextapp.echo2.app.update.ClientUpdateManager.process(ClientUpdateManager.java:110)
at nextapp.echo2.app.update.UpdateManager.processClientUpdates(UpdateManager.java:89)
at nextapp.echo2.webcontainer.ContainerSynchronizeService.renderUpdate(ContainerSynchronizeService.java:472)
at nextapp.echo2.webrender.service.SynchronizeService.service(SynchronizeService.java:279)
at nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:273)
at org.openvpms.web.servlet.SpringWebContainerServlet.process(SpringWebContainerServlet.java:148)
at nextapp.echo2.webrender.WebRenderServlet.doPost(WebRenderServlet.java:189)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292)
at org.openvpms.web.servlet.SkipLoginFilter.doFilter(SkipLoginFilter.java:111)
at org.openvpms.web.servlet.SkipLoginFilter.doFilter(SkipLoginFilter.java:71)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:108)
at org.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:197)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:143)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)

Activity

Hide
Tim Anderson added a comment -

Fixed in vpms, revision 3156

Show
Tim Anderson added a comment - Fixed in vpms, revision 3156

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
Not Specified
Original Estimate - Not Specified
Remaining:
0h
Remaining Estimate - 0h
Logged:
0.5h
Time Spent - 0.5h