Results 1 to 4 of 4

Thread: UnsupportedOperationException with composite primary key

  1. #1
    Join Date
    Nov 2010
    Location
    Johannesburg, South Africa
    Posts
    11

    Default UnsupportedOperationException with composite primary key

    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. Should this be logged on Jira rather than on the forum? [How does one get a Jira account?]

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    I have corrected this issue in my local Git repo, but you can create a Jira ticket for it anyway.

    There is a somewhat hidden link in the login page for Jira which gets you to the signup dialog.

    -Stefan
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

  3. #3
    Join Date
    Nov 2010
    Location
    Johannesburg, South Africa
    Posts
    11

    Default

    Any chance of an out-of-band patch?

  4. #4
    Join Date
    Jan 2011
    Posts
    12

    Default

    Will this fix be part of roo 1.1.2 released on Feb 4th?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •