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

Error opening Proposed Concept page in 1.4-1.5.x

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: OpenMRS 1.4.7, OpenMRS 1.5.0
    • Component/s: None
    • Labels:
      None

      Description

      You can fix it now by making sure that all your users have at least one
      person name. (select * from users where user_id not in (select
      person_id from person_name)

      It looks like this only effects 1.4.x and 1.5.x. In 1.6+ we changed
      User.toString() to just return the username instead of trying to figure
      out the person's name.

      Ben

      On Tue, 2010-03-23 at 20:43 -0400, Andrew Kanter wrote:
      > I went to check this on my server which is now running 1.4.5 and
      > 1.4.6, I now realize that I can't open the page! Any ideas anyone?
      > Error from the page source...
      >
      >
      > <!--
      > javax.servlet.jsp.el.ELException: An object of type "org.openmrs.User
      > $$EnhancerByCGLIB$$cf3636c7" threw an exception in its toString()
      > method while trying to be coerced to a String
      > at org.apache.commons.el.Logger.logError(Logger.java:484)
      > at org.apache.commons.el.Logger.logError(Logger.java:545)
      > at org.apache.commons.el.Coercions.coerceToString(Coercions.java:393)
      > at org.apache.commons.el.Coercions.coerce(Coercions.java:329)
      > at
      > org.apache.commons.el.ExpressionEvaluatorImpl.convertToExpectedType(ExpressionEvaluatorImpl.java:345)
      > at
      > org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:267)
      > at
      > org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190)
      > at
      > org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:929)
      > at
      > org.apache.jsp.WEB_002dINF.view.admin.concepts.conceptProposalList_jsp._jspx_meth_c_005fif_005f26(conceptProposalList_jsp.java:4138)
      > at
      > org.apache.jsp.WEB_002dINF.view.admin.concepts.conceptProposalList_jsp._jspx_meth_c_005fforEach_005f2(conceptProposalList_jsp.java:4085)
      > at
      > org.apache.jsp.WEB_002dINF.view.admin.concepts.conceptProposalList_jsp._jspx_meth_c_005fforEach_005f1(conceptProposalList_jsp.java:4044)
      > at
      > org.apache.jsp.WEB_002dINF.view.admin.concepts.conceptProposalList_jsp._jspx_meth_openmrs_005fhasPrivilege_005f13(conceptProposalList_jsp.java:3540)
      > at
      > org.apache.jsp.WEB_002dINF.view.admin.concepts.conceptProposalList_jsp._jspService(conceptProposalList_jsp.java:865)
      > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
      > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      > at
      > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
      > at
      > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
      > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
      > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      > at
      > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
      > at
      > org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
      > at
      > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
      > at
      > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      > at
      > org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:171)
      > at
      > org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:251)
      > at
      > org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1160)
      > at
      > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:901)
      > at
      > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
      > at
      > org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
      > at
      > org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)
      > at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      > at org.openmrs.web.OpenmrsFilter.doFilter(Unknown Source)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      > at
      > org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
      > at
      > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      > at
      > org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
      > at
      > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
      > 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:210)
      > at
      > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
      > 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:151)
      > at
      > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
      > 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:685)
      > at java.lang.Thread.run(Unknown Source)
      > -->
      >

        Attachments

          Activity

            People

            Assignee:
            bwolfe Ben Wolfe
            Reporter:
            akanter Andrew Kanter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: