Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1982

UnsupportedOperationException with composite primary key

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.1.1.RELEASE
    • Fix Version/s: 1.1.2.RELEASE
    • Component/s: WEB MVC
    • Labels:
      None
    • Environment:
      Windows 7, Java SE 1.6.0_20, Hypersonic persistent database

      Description

      The database reverse enginnering works fine for the entity named 'SystemCapacity'; but when I try to generate a controller for it, I get the UnsupportedOperationException.

      <Roo output, version 1.1.2.SNAPSHOT>
      ...
      Created SRC_MAIN_WEBAPP\WEB-INF\views\systemcapacitys
      e510d36 Created SRC_MAIN_WEBAPP\WEB-INF\views\systemcapacitys\list.jspx
      07429f8 Created SRC_MAIN_WEBAPP\WEB-INF\views\systemcapacitys\views.xml
      b5c08ac Created SRC_MAIN_WEBAPP\WEB-INF\views\systemcapacitys\show.jspx
      a262103 Updated SRC_MAIN_WEBAPP\WEB-INF\views\systemcapacitys\views.xml
      java.lang.UnsupportedOperationException
      at java.util.Collections$UnmodifiableCollection.add(C ollections.java:1018)
      at org.springframework.roo.addon.web.mvc.jsp.JspViewM anager.getCreateDocument(JspViewManager.java:245)
      at org.springframework.roo.addon.web.mvc.jsp.JspMetad ataListener.get(JspMetadataListener.java:175)
      at org.springframework.roo.metadata.DefaultMetadataSe rvice.getInternal(DefaultMetadataService.java:148)
      at org.springframework.roo.metadata.DefaultMetadataSe rvice.get(DefaultMetadataService.java:82)
      at org.springframework.roo.addon.web.mvc.jsp.JspMetad ataListener.notify(JspMetadataListener.java:353)

      Looking at the code at (JspViewManager.java:245) shows that it is indeed trying to add to an UnmodifiableCollection.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sschmidt Stefan Schmidt
              Reporter:
              pgf Peter Faller
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: