[OpenVPMS Developers] [JIRA] Created: (ARCH-26) NullPointerException merging customers
Key: ARCH-26 URL: https://openvpms.atlassian.net/browse/ARCH-26 Project: Archetypes Issue Type: Bug Affects Versions: 1.4-beta-1 Reporter: Tim Anderson Assignee: Tim Anderson Priority: Minor Fix For: 1.4
From a 1.4-beta-2 error report:
java.lang.NullPointerException at org.openvpms.archetype.rules.party.PartyMerger.exists(PartyMerger.java:291) at org.openvpms.archetype.rules.party.PartyMerger.copyEntityRelationships(PartyMerger.java:171) at org.openvpms.archetype.rules.party.PartyMerger.merge(PartyMerger.java:111) at org.openvpms.archetype.rules.party.CustomerRules.mergeCustomers(CustomerRules.java:79) at org.openvpms.web.app.customer.info.CustomerMergeWorkflow$2.doInTransaction(CustomerMergeWorkflow.java:75) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:114) at org.openvpms.web.app.customer.info.CustomerMergeWorkflow.merge(CustomerMergeWorkflow.java:72) at org.openvpms.web.app.customer.info.CustomerMergeWorkflow.access$000(CustomerMergeWorkflow.java:39) at org.openvpms.web.app.customer.info.CustomerMergeWorkflow$1.execute(CustomerMergeWorkflow.java:59) at org.openvpms.web.component.workflow.SynchronousTask.start(SynchronousTask.java:42) at org.openvpms.web.component.workflow.WorkflowImpl.next(WorkflowImpl.java:166) at org.openvpms.web.component.workflow.WorkflowImpl.onEvent(WorkflowImpl.java:203) at org.openvpms.web.component.workflow.WorkflowImpl$1.taskEvent(WorkflowImpl.java:82) at org.openvpms.web.component.workflow.TaskListeners.taskEvent(TaskListeners.java:71) at org.openvpms.web.component.workflow.AbstractTask.notifyEvent(AbstractTask.java:213) at org.openvpms.web.component.workflow.AbstractTask.notifyCompleted(AbstractTask.java:118) at org.openvpms.web.component.workflow.SelectIMObjectTask$1.onClose(SelectIMObjectTask.java:165) at org.openvpms.web.component.event.WindowPaneListener.windowPaneClosing(WindowPaneListener.java:39) at nextapp.echo2.app.WindowPane.fireWindowClosing(WindowPane.java:154) at org.openvpms.web.component.dialog.PopupWindow.fireWindowClosing(PopupWindow.java:269) at nextapp.echo2.app.WindowPane.userClose(WindowPane.java:792) at org.openvpms.web.component.dialog.PopupWindow.close(PopupWindow.java:193) at org.openvpms.web.component.im.query.BrowserDialog.onSelected(BrowserDialog.java:215) at org.openvpms.web.component.im.query.BrowserDialog$2.selected(BrowserDialog.java:143) at org.openvpms.web.component.im.query.BrowserAdapter$1.selected(BrowserAdapter.java:122) at org.openvpms.web.component.im.query.AbstractBrowser.notifySelected(AbstractBrowser.java:81) at org.openvpms.web.component.im.query.TableBrowser.onSelect(TableBrowser.java:253) at org.openvpms.web.component.im.query.TableBrowser.access$000(TableBrowser.java:45) at org.openvpms.web.component.im.query.TableBrowser$1.onAction(TableBrowser.java:199) at org.openvpms.web.component.event.ActionListener.actionPerformed(ActionListener.java:41) at nextapp.echo2.app.Table.fireActionEvent(Table.java:332) at nextapp.echo2.app.Table.processInput(Table.java:586) at org.openvpms.web.component.table.KeyTable.processInput(KeyTable.java:136) 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: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:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 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:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:636)
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://openvpms.atlassian.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf
[OpenVPMS Developers] [JIRA] Commented: (ARCH-26) NullPointerExc
Tim Anderson commented on ARCH-26: ----------------------------------
The problem arises when one of the customers being merged has a relationship to a patient, but no patient has been selected. In the UI, the relationship appears as inactive, with the name "None". The workaround is edit the customer and delete the relationship. After this, the merge succeeds.
> NullPointerException merging customers > -------------------------------------- > > Key: ARCH-26 > URL: https://openvpms.atlassian.net/browse/ARCH-26 > Project: Archetypes > Issue Type: Bug > Affects Versions: 1.4-beta-1 > Reporter: Tim Anderson > Assignee: Tim Anderson > Priority: Minor > Fix For: 1.4 > > > From a 1.4-beta-2 error report: > java.lang.NullPointerException > at org.openvpms.archetype.rules.party.PartyMerger.exists(PartyMerger.java:291) > at org.openvpms.archetype.rules.party.PartyMerger.copyEntityRelationships(PartyMerger.java:171) > at org.openvpms.archetype.rules.party.PartyMerger.merge(PartyMerger.java:111) > at org.openvpms.archetype.rules.party.CustomerRules.mergeCustomers(CustomerRules.java:79) > at org.openvpms.web.app.customer.info.CustomerMergeWorkflow$2.doInTransaction(CustomerMergeWorkflow.java:75) > at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:114) > at org.openvpms.web.app.customer.info.CustomerMergeWorkflow.merge(CustomerMergeWorkflow.java:72) > at org.openvpms.web.app.customer.info.CustomerMergeWorkflow.access$000(CustomerMergeWorkflow.java:39) > at org.openvpms.web.app.customer.info.CustomerMergeWorkflow$1.execute(CustomerMergeWorkflow.java:59) > at org.openvpms.web.component.workflow.SynchronousTask.start(SynchronousTask.java:42) > at org.openvpms.web.component.workflow.WorkflowImpl.next(WorkflowImpl.java:166) > at org.openvpms.web.component.workflow.WorkflowImpl.onEvent(WorkflowImpl.java:203) > at org.openvpms.web.component.workflow.WorkflowImpl$1.taskEvent(WorkflowImpl.java:82) > at org.openvpms.web.component.workflow.TaskListeners.taskEvent(TaskListeners.java:71) > at org.openvpms.web.component.workflow.AbstractTask.notifyEvent(AbstractTask.java:213) > at org.openvpms.web.component.workflow.AbstractTask.notifyCompleted(AbstractTask.java:118) > at org.openvpms.web.component.workflow.SelectIMObjectTask$1.onClose(SelectIMObjectTask.java:165) > at org.openvpms.web.component.event.WindowPaneListener.windowPaneClosing(WindowPaneListener.java:39) > at nextapp.echo2.app.WindowPane.fireWindowClosing(WindowPane.java:154) > at org.openvpms.web.component.dialog.PopupWindow.fireWindowClosing(PopupWindow.java:269) > at nextapp.echo2.app.WindowPane.userClose(WindowPane.java:792) > at org.openvpms.web.component.dialog.PopupWindow.close(PopupWindow.java:193) > at org.openvpms.web.component.im.query.BrowserDialog.onSelected(BrowserDialog.java:215) > at org.openvpms.web.component.im.query.BrowserDialog$2.selected(BrowserDialog.java:143) > at org.openvpms.web.component.im.query.BrowserAdapter$1.selected(BrowserAdapter.java:122) > at org.openvpms.web.component.im.query.AbstractBrowser.notifySelected(AbstractBrowser.java:81) > at org.openvpms.web.component.im.query.TableBrowser.onSelect(TableBrowser.java:253) > at org.openvpms.web.component.im.query.TableBrowser.access$000(TableBrowser.java:45) > at org.openvpms.web.component.im.query.TableBrowser$1.onAction(TableBrowser.java:199) > at org.openvpms.web.component.event.ActionListener.actionPerformed(ActionListener.java:41) > at nextapp.echo2.app.Table.fireActionEvent(Table.java:332) > at nextapp.echo2.app.Table.processInput(Table.java:586) > at org.openvpms.web.component.table.KeyTable.processInput(KeyTable.java:136) > 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: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:647) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) > 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:215) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) > at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) > at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) > at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) > at java.lang.Thread.run(Thread.java:636)-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://openvpms.atlassian.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf