Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-2900

Cannot parse address layout (fresh installation)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.9.0, 1.9 Beta Sprint, Platform 1.10.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      On a fresh installation of OpenMRS (a new db with no demo data) I tried to create a patient and I got:

      ERROR - AddressSupport.setAddressTemplate(149) |2011-12-01 14:52:05,090| Error in deserializing address template
      org.openmrs.serialization.SerializationException: Unable to deserialize class: org.openmrs.layout.web.address.AddressTemplate
      	at org.openmrs.serialization.SerializationException.fillInStackTrace(SerializationException.java:65531)
      	at java.lang.Throwable.<init>(Throwable.java:218)
      	at java.lang.Exception.<init>(Exception.java:59)
      	at org.openmrs.serialization.SerializationException.<init>(SerializationException.java:49)
      	at org.openmrs.serialization.SimpleXStreamSerializer.deserialize(SimpleXStreamSerializer.java:104)
      	at org.openmrs.layout.web.address.AddressSupport.setAddressTemplate(AddressSupport.java:145)
      	at org.openmrs.layout.web.address.AddressSupport.init(AddressSupport.java:61)
      	at org.openmrs.layout.web.address.AddressSupport.getInstance(AddressSupport.java:50)
      	at org.openmrs.web.controller.layout.AddressLayoutPortletController.getLayoutSupportInstance(AddressLayoutPortletController.java:35)
      	at org.openmrs.web.controller.layout.LayoutPortletController.populateModel(LayoutPortletController.java:37)
      	at org.openmrs.web.controller.PortletController.handleRequest(PortletController.java:432)
      	at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
      	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
      	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
      	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
      	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
      	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      	at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:192)
      	at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:296)
      	at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:161)
      	at org.openmrs.web.taglib.PortletTag.doEndTag(PortletTag.java:115)
      	at org.apache.jsp.WEB_002dINF.view.portlets.patientDemographics_jsp._jspx_meth_openmrs_portlet_1(org.apache.jsp.WEB_002dINF.view.portlets.patientDemographics_jsp:603)
      	at org.apache.jsp.WEB_002dINF.view.portlets.patientDemographics_jsp._jspService(org.apache.jsp.WEB_002dINF.view.portlets.patientDemographics_jsp:245)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
      	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      	at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:192)
      	at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:229)
      	at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
      	at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)
      	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)
      	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
      	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
      	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
      	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      	at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:192)
      	at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:296)
      	at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:161)
      	at org.openmrs.web.taglib.PortletTag.doEndTag(PortletTag.java:115)
      	at org.apache.jsp.WEB_002dINF.view.patientDashboardForm_jsp._jspx_meth_openmrs_portlet_6(org.apache.jsp.WEB_002dINF.view.patientDashboardForm_jsp:6127)
      	at org.apache.jsp.WEB_002dINF.view.patientDashboardForm_jsp._jspx_meth_openmrs_hasPrivilege_19(org.apache.jsp.WEB_002dINF.view.patientDashboardForm_jsp:6074)
      	at org.apache.jsp.WEB_002dINF.view.patientDashboardForm_jsp._jspService(org.apache.jsp.WEB_002dINF.view.patientDashboardForm_jsp:808)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
      	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:285)
      	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
      	at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
      	at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
      	at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)
      	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)
      	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
      	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
      	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
      	at org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:65)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      	at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:76)
      	at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:58)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      	at org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:111)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      	at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      	at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:100)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      	at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:100)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      	at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:100)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
      	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
      	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
      	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      	at org.mortbay.jetty.Server.handle(Server.java:324)
      	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
      	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
      	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
      	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
      	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
      	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
      	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
      Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: addressTemplate : addressTemplate
      	at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:68)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      	at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:71)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      	at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      	at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:86)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      	at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:96)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      	at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:52)
      	at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:136)
      	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
      	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
      	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)
      	at org.openmrs.serialization.SimpleXStreamSerializer.deserialize(SimpleXStreamSerializer.java:101)
      	... 135 more
      

        Attachments

          Activity

            People

            Assignee:
            dkayiwa Daniel Kayiwa
            Reporter:
            raff Rafal Korytkowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: