Uploaded image for project: 'Address Hierarchy Module'
  1. Address Hierarchy Module
  2. ADDR-64

The Manage Address Hierarchy Page throws BeanInstantiationException: Could not instantiate bean class [java.util.List]

    XMLWordPrintable

Details

    Description

      The Manage Address Hierarchy Page (openmrs/module/addresshierarchy/admin/manageAddressHierarchy.form) throws the below error. This failure happens occasionally.

      org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [java.util.List]: Specified class is an interface
      org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:101)
      org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveModelAttribute(HandlerMethodInvoker.java:762)
      org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:356)
      org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:153)
      org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)
      org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)
      org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
      org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
      org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
      org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:65)
      org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:76)
      org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:58)
      org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:111)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:109)
      org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:109)
      org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:109)
      org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      note The full stack trace of the root cause is available in the Apache Tomcat/7.0.22 logs.

      I am using openmrs 1.9.7, Java 7.

      There has been few similar issues reported in other modules in the past:

      https://tickets.openmrs.org/browse/AM-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
      https://tickets.openmrs.org/browse/TRUNK-3485?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel
      https://answers.openmrs.org/questions/785/how-can-i-fix-a-specified-class-is-an-interface-error

      Gliffy Diagrams

        Attachments

          Activity

            People

              endeepak Deepak N
              endeepak Deepak N
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: