Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-919

controls-spring sample throws exception when refreshing the browser page familyTree.jsp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • v1m1
    • 1.0.2
    • Samples
    • None

    Description

      The controls + spring integration sample works, but only the first time the JSP is run in a single HttpSession. Looks like a Control is being added with the same name into the same control context.

      Not sure it's worth fixing for 1.0, but will take a look at it.

      Repro:
      1) build / run the controls-spring sample
      2) view http://localhost:8080/springControls/familyTree.jsp
      3) refresh the page

      The result is this stack trace:
      org.apache.beehive.controls.api.ControlException: Exception creating ControlBean[Exception creating ControlBean[Attempting to add control with duplicate ID: PersonBean0]]
      org.apache.beehive.controls.api.bean.Controls.instantiate(Controls.java:108)
      org.apache.beehive.samples.spring.control.AdultImpl.getChild(AdultImpl.java:47)
      org.apache.beehive.samples.spring.control.PersonBean.getChild(PersonBean.java:161)
      org.apache.jsp.familyTree_jsp.showPerson(familyTree_jsp.java:32)
      org.apache.jsp.familyTree_jsp.showPerson(familyTree_jsp.java:35)
      org.apache.jsp.familyTree_jsp._jspService(familyTree_jsp.java:89)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      org.apache.beehive.controls.runtime.servlet.ControlFilter.doFilter(ControlFilter.java:131)

      Attachments

        Activity

          People

            grunlowen matt c
            ekoneil Edward O'Neil
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: