-
Jan 13th, 2011, 10:42 AM
#1
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?]
-
Jan 13th, 2011, 08:06 PM
#2
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
-
Jan 14th, 2011, 12:08 AM
#3
Any chance of an out-of-band patch?
-
Jan 27th, 2011, 03:49 PM
#4
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
-
Forum Rules