1.6b3 - Internal Application Error using custom fields
Exploring the patient custom fields facility, I first (successfully) added "Example Custom Fields" to the lookup for species Dog.
I then tried to create a new patient, immediately I selected Dog in the species pull-down, an internal failure occurred. The text for this is below.
Regards, Tim
<error-report>
<version>1.6-beta-3</version>
<revision>4887</revision>
<message>An internal application error has occurred.</message>
<exception>
<type>java.lang.NullPointerException</type>
<stackTrace>
<trace>org.openvpms.web.component.im.layout.AbstractLayoutStrategy.setFocusTraversal(AbstractLayoutStrategy.java:588)</trace>
<trace>org.openvpms.web.component.im.layout.AbstractLayoutStrategy.addTab(AbstractLayoutStrategy.java:430)</trace>
<trace>org.openvpms.web.app.patient.PatientLayoutStrategy.addTab(PatientLayoutStrategy.java:203)</trace>
<trace>org.openvpms.web.app.patient.PatientLayoutStrategy.addCustomFields(PatientLayoutStrategy.java:121)</trace>
<trace>org.openvpms.web.app.patient.PatientEditor.updateCustomFields(PatientEditor.java:166)</trace>
<trace>org.openvpms.web.app.patient.PatientEditor.speciesChanged(PatientEditor.java:175)</trace>
<trace>org.openvpms.web.app.patient.PatientEditor.access$000(PatientEditor.java:56)</trace>
<trace>org.openvpms.web.app.patient.PatientEditor$1.modified(PatientEditor.java:89)</trace>
<trace>org.openvpms.web.component.property.ModifiableListeners.notifyListeners(ModifiableListeners.java:85)</trace>
<trace>org.openvpms.web.component.property.AbstractProperty.refresh(AbstractProperty.java:91)</trace>
<trace>org.openvpms.web.component.property.IMObjectProperty.modified(IMObjectProperty.java:510)</trace>
<trace>org.openvpms.web.component.property.IMObjectProperty.setValue(IMObjectProperty.java:145)</trace>
<trace>org.openvpms.web.component.bound.Binder.setProperty(Binder.java:138)</trace>
<trace>org.openvpms.web.component.bound.Binder.setProperty(Binder.java:95)</trace>
<trace>org.openvpms.web.component.bound.SelectFieldBinder$1.stateChanged(SelectFieldBinder.java:66)</trace>
<trace>nextapp.echo2.app.list.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:76)</trace>
<trace>nextapp.echo2.app.list.DefaultListSelectionModel.setSelectedIndex(DefaultListSelectionModel.java:151)</trace>
<trace>nextapp.echo2.app.list.AbstractListComponent.processInput(AbstractListComponent.java:374)</trace>
<trace>nextapp.echo2.app.update.ClientUpdateManager.process(ClientUpdateManager.java:110)</trace>
<trace>nextapp.echo2.app.update.UpdateManager.processClientUpdates(UpdateManager.java:89)</trace>
<trace>nextapp.echo2.webcontainer.ContainerSynchronizeService.renderUpdate(ContainerSynchronizeService.java:471)</trace>
<trace>nextapp.echo2.webrender.service.SynchronizeService.service(SynchronizeService.java:279)</trace>
<trace>nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:273)</trace>
<trace>org.openvpms.web.servlet.SpringWebContainerServlet.process(SpringWebContainerServlet.java:148)</trace>
<trace>nextapp.echo2.webrender.WebRenderServlet.doPost(WebRenderServlet.java:189)</trace>
<trace>javax.servlet.http.HttpServlet.service(HttpServlet.java:637)</trace>
<trace>javax.servlet.http.HttpServlet.service(HttpServlet.java:717)</trace>
<trace>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)</trace>
<trace>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</trace>
<trace>org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343)</trace>
<trace>org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)</trace>
<trace>org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)</trace>
<trace>org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)</trace>
<trace>org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)</trace>
<trace>org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)</trace>
<trace>org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)</trace>
<trace>org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)</trace>
<trace>org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)</trace>
<trace>org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)</trace>
<trace>org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)</trace>
<trace>org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)</trace>
<trace>org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149)</trace>
<trace>org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)</trace>
<trace>org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)</trace>
<trace>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</trace>
<trace>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</trace>
<trace>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)</trace>
<trace>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)</trace>
<trace>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)</trace>
<trace>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)</trace>
<trace>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)</trace>
<trace>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)</trace>
<trace>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)</trace>
<trace>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)</trace>
<trace>org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)</trace>
<trace>java.lang.Thread.run(Unknown Source)</trace>
</stackTrace>
</exception>
<freeMemory>431243504</freeMemory>
<totalMemory>518979584</totalMemory>
<maxMemory>518979584</maxMemory>
<properties>
<property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
<property name="sun.boot.library.path" value="C:\Program Files\Java\jre7\bin"/>
<property name="java.vm.version" value="23.3-b01"/>
<property name="shared.loader" value=""/>
<property name="java.vm.vendor" value="Oracle Corporation"/>
<property name="java.vendor.url" value="http://java.oracle.com/"/>
<property name="path.separator" value=";"/>
<property name="java.vm.name" value="Java HotSpot(TM) 64-Bit Server VM"/>
<property name="tomcat.util.buf.StringCache.byte.enabled" value="true"/>
<property name="file.encoding.pkg" value="sun.io"/>
<property name="java.util.logging.config.file" value="C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\logging.properties"/>
<property name="user.script" value=""/>
<property name="user.country" value="AU"/>
<property name="sun.os.patch.level" value="Service Pack 1"/>
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
<property name="user.dir" value="C:\Program Files\Apache Software Foundation\Tomcat 6.0"/>
<property name="java.runtime.version" value="1.7.0_07-b10"/>
<property name="java.awt.graphicsenv" value="sun.awt.Win32GraphicsEnvironment"/>
<property name="java.endorsed.dirs" value="C:\Program Files\Apache Software Foundation\Tomcat 6.0\endorsed"/>
<property name="os.arch" value="amd64"/>
<property name="java.io.tmpdir" value="C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp"/>
<property name="line.separator" value="
"/>
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
<property name="user.variant" value=""/>
<property name="java.util.logging.manager" value="org.apache.juli.ClassLoaderLogManager"/>
<property name="java.naming.factory.url.pkgs" value="org.apache.naming"/>
<property name="os.name" value="Windows 7"/>
<property name="sun.jnu.encoding" value="Cp1252"/>
<property name="org.apache.commons.jxpath.JXPathContextFactory" value="org.openvpms.component.system.common.jxpath.OpenVPMSContextFactoryReferenceImpl"/>
<property name="java.library.path" value="C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\Calibre2\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio\OEM\AudioCore\;C:\Program Files (x86)\OpenOffice.org 3\program\;C:\Program Files\MySQL\MySQL Server 5.5\bin\;c:\maven\bin;C:\Program Files\SlikSvn\bin;."/>
<property name="java.specification.name" value="Java Platform API Specification"/>
<property name="java.class.version" value="51.0"/>
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
<property name="os.version" value="6.1"/>
<property name="user.home" value="C:\Users\openvpms"/>
<property name="user.timezone" value="Australia/Sydney"/>
<property name="catalina.useNaming" value="true"/>
<property name="java.awt.printerjob" value="sun.awt.windows.WPrinterJob"/>
<property name="java.specification.version" value="1.7"/>
<property name="file.encoding" value="Cp1252"/>
<property name="catalina.home" value="C:\Program Files\Apache Software Foundation\Tomcat 6.0"/>
<property name="user.name" value="openvpms"/>
<property name="java.class.path" value="C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar;C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\tomcat-juli.jar"/>
<property name="java.naming.factory.initial" value="org.apache.naming.java.javaURLContextFactory"/>
<property name="openvpms" value="C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\openvpms\"/>
<property name="package.definition" value="sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper."/>
<property name="java.vm.specification.version" value="1.7"/>
<property name="sun.arch.data.model" value="64"/>
<property name="java.home" value="C:\Program Files\Java\jre7"/>
<property name="java.specification.vendor" value="Oracle Corporation"/>
<property name="user.language" value="en"/>
<property name="awt.toolkit" value="sun.awt.windows.WToolkit"/>
<property name="java.vm.info" value="mixed mode"/>
<property name="java.version" value="1.7.0_07"/>
<property name="java.ext.dirs" value="C:\Program Files\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext"/>
<property name="sun.boot.class.path" value="C:\Program Files\Java\jre7\lib\resources.jar;C:\Program Files\Java\jre7\lib\rt.jar;C:\Program Files\Java\jre7\lib\sunrsasign.jar;C:\Program Files\Java\jre7\lib\jsse.jar;C:\Program Files\Java\jre7\lib\jce.jar;C:\Program Files\Java\jre7\lib\charsets.jar;C:\Program Files\Java\jre7\lib\jfr.jar;C:\Program Files\Java\jre7\classes"/>
<property name="java.vendor" value="Oracle Corporation"/>
<property name="server.loader" value=""/>
<property name="catalina.base" value="C:\Program Files\Apache Software Foundation\Tomcat 6.0"/>
<property name="file.separator" value="\"/>
<property name="java.vendor.url.bug" value="http://bugreport.sun.com/bugreport/"/>
<property name="common.loader" value="${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar"/>
<property name="sun.cpu.endian" value="little"/>
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
<property name="package.access" value="sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans."/>
<property name="sun.desktop" value="windows"/>
<property name="sun.cpu.isalist" value="amd64"/>
</properties>
</error-report>
Re: 1.6b3 - Internal Application Error using custom fields
Raised as OVPMS-1264
Regards,
Tim