[OpenVPMS Developers] [JIRA] Created: (OVPMS-1051) NullPointerException creating customer alerts

Message from Tim Anderson (JIRA) jira@openvpms.org

NullPointerException creating customer alerts ---------------------------------------------

Key: OVPMS-1051 URL: https://openvpms.atlassian.net/browse/OVPMS-1051 Project: VPMS Web Application Issue Type: Bug Components: Customer Affects Versions: 1.5-beta-2 Reporter: Tim Anderson Assignee: Tony De Keizer Priority: Minor Fix For: 1.5

When creating a new customer alert, a NullPointerException is raised: {noformat} java.lang.NullPointerException

org.openvpms.component.business.service.archetype.helper.DescriptorHelper.getArchetypeDescriptor(DescriptorHelper.java:131) org.openvpms.component.business.service.archetype.helper.IMObjectBean.getArchetype(IMObjectBean.java:500) org.openvpms.component.business.service.archetype.helper.IMObjectBean.getDescriptor(IMObjectBean.java:139) org.openvpms.component.business.service.lookup.AbstractLookupService.getLookup(AbstractLookupService.java:223) org.openvpms.component.business.service.lookup.AbstractLookupService.getName(AbstractLookupService.java:244) org.openvpms.web.component.im.util.LookupNameHelper.getName(LookupNameHelper.java:99) org.openvpms.web.app.alert.AlertHelper.getPriorityName(AlertHelper.java:54) org.openvpms.web.app.alert.AlertLayoutStrategy.getPriority(AlertLayoutStrategy.java:126) org.openvpms.web.app.alert.AlertLayoutStrategy.createComponentSet(AlertLayoutStrategy.java:94) org.openvpms.web.component.im.layout.AbstractLayoutStrategy.doGridLayout(AbstractLayoutStrategy.java:310) org.openvpms.web.component.im.layout.AbstractLayoutStrategy.doSimpleLayout(AbstractLayoutStrategy.java:206) org.openvpms.web.component.im.layout.AbstractLayoutStrategy.doLayout(AbstractLayoutStrategy.java:187) org.openvpms.web.component.im.layout.AbstractLayoutStrategy.apply(AbstractLayoutStrategy.java:145) org.openvpms.web.component.im.view.AbstractIMObjectView.createComponent(AbstractIMObjectView.java:161) org.openvpms.web.component.im.edit.AbstractIMObjectEditor$2.createComponent(AbstractIMObjectEditor.java:603) org.openvpms.web.component.im.view.AbstractIMObjectView.getComponent(AbstractIMObjectView.java:107) org.openvpms.web.component.im.edit.AbstractIMObjectEditor.getComponent(AbstractIMObjectEditor.java:421) org.openvpms.web.component.im.edit.AbstractEditDialog.setEditor(AbstractEditDialog.java:236) org.openvpms.web.component.im.edit.AbstractEditDialog.<init>(AbstractEditDialog.java:109) org.openvpms.web.component.im.edit.AbstractEditDialog.<init>(AbstractEditDialog.java:95) org.openvpms.web.component.im.edit.EditDialog.<init>(EditDialog.java:88) org.openvpms.web.component.im.edit.EditDialog.<init>(EditDialog.java:73) org.openvpms.web.component.im.edit.EditDialog.<init>(EditDialog.java:59) org.openvpms.web.component.im.edit.EditDialog.<init>(EditDialog.java:46) org.openvpms.web.component.im.edit.EditDialog.<init>(EditDialog.java:35) org.openvpms.web.component.im.edit.EditDialogFactory.create(EditDialogFactory.java:76) org.openvpms.web.app.subsystem.AbstractCRUDWindow.createEditDialog(AbstractCRUDWindow.java:438) org.openvpms.web.app.subsystem.AbstractCRUDWindow.edit(AbstractCRUDWindow.java:399) org.openvpms.web.app.subsystem.AbstractCRUDWindow.edit(AbstractCRUDWindow.java:383) org.openvpms.web.app.subsystem.AbstractCRUDWindow.onCreated(AbstractCRUDWindow.java:371) org.openvpms.web.app.subsystem.AbstractCRUDWindow$6.created(AbstractCRUDWindow.java:354) org.openvpms.web.component.im.util.IMObjectCreator.create(IMObjectCreator.java:165) org.openvpms.web.component.im.util.IMObjectCreator.create(IMObjectCreator.java:112) org.openvpms.web.app.subsystem.AbstractCRUDWindow.onCreate(AbstractCRUDWindow.java:362) org.openvpms.web.app.subsystem.AbstractCRUDWindow.create(AbstractCRUDWindow.java:194) org.openvpms.web.app.subsystem.AbstractCRUDWindow$3.onAction(AbstractCRUDWindow.java:294) org.openvpms.web.component.event.ActionListener.actionPerformed(ActionListener.java:41) nextapp.echo2.app.button.AbstractButton.fireActionPerformed(AbstractButton.java:135) echopointng.ButtonEx$1.actionPerformed(ButtonEx.java:120) nextapp.echo2.app.button.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:70) echopointng.model.DefaultButtonModelEx.doAction(DefaultButtonModelEx.java:51) echopointng.ButtonEx.processInput(ButtonEx.java:202) nextapp.echo2.app.update.ClientUpdateManager.process(ClientUpdateManager.java:116) nextapp.echo2.app.update.UpdateManager.processClientUpdates(UpdateManager.java:89) nextapp.echo2.webcontainer.ContainerSynchronizeService.renderUpdate(ContainerSynchronizeService.java:471) nextapp.echo2.webrender.service.SynchronizeService.service(SynchronizeService.java:279) nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:275) org.openvpms.web.servlet.SpringWebContainerServlet.process(SpringWebContainerServlet.java:148) nextapp.echo2.webrender.WebRenderServlet.doPost(WebRenderServlet.java:189) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343) org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:662) {noformat}

Workaround is to mark one lookup.customerAlertType as being the default lookup.

-- 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

Syndicate content