-
Apr 5th, 2011, 02:22 PM
#1
Roo generated page internal error - view entity generated with parent table set
Hi:
I'm new to Spring Roo. I reverse engineered a few database tables from MySql and had the web tier generated.
In this case after adding a new child table row (Address), it takes me to the view screen /appname/addresses/2, but gives an internal error.
I believe it is due to trying to display the parent table PersonAddress rows (which are an empty set) returned from Hibernate.
Where in the codebase can the display of parent table row sets be disabled when Roo generates code for a given entity? Also, how to not have it throw an exception... is there a custom mapper that has to be created, or is this a bug?
Thanks,
Matt
Apr 5, 2011 1:31:43 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [SignupTest] in context with path [/SignupTest] threw exception [Request processing failed; nested exception is org.apache.tiles.impl.CannotRenderException: ServletException including path '/WEB-INF/layouts/default.jspx'.] with root cause
org.springframework.core.convert.ConverterNotFound Exception: No converter found capable of converting from 'java.util.Set' to 'java.lang.String'
at org.springframework.core.convert.support.GenericCo nversionService.convert(GenericConversionService.j ava:181)
at org.springframework.expression.spel.support.Standa rdTypeConverter.convertValue(StandardTypeConverter .java:66)
at org.springframework.expression.common.ExpressionUt ils.convertTypedValue(ExpressionUtils.java:67)
at org.springframework.expression.spel.standard.SpelE xpression.getValue(SpelExpression.java:98)
at org.springframework.web.servlet.tags.EvalTag.doEnd Tag(EvalTag.java:122)
at org.apache.jsp.tag.web.form.fields.display_tagx._j spx_meth_spring_005feval_005f0(display_tagx.java:6 80)
at org.apache.jsp.tag.web.form.fields.display_tagx._j spx_meth_c_005fotherwise_005f0(display_tagx.java:6 53)
at org.apache.jsp.tag.web.form.fields.display_tagx._j spx_meth_c_005fchoose_005f0(display_tagx.java:448)
at org.apache.jsp.tag.web.form.fields.display_tagx._j spx_meth_c_005fif_005f0(display_tagx.java:254)
at org.apache.jsp.tag.web.form.fields.display_tagx.do Tag(display_tagx.java:207)
at org.apache.jsp.WEB_002dINF.views.addresses.show_js px._jspx_meth_field_005fdisplay_005f0(show_jspx.ja va:116)
at org.apache.jsp.WEB_002dINF.views.addresses.show_js px.access$0(show_jspx.java:99)
at org.apache.jsp.WEB_002dINF.views.addresses.show_js px$Helper.invoke0(show_jspx.java:223)
at org.apache.jsp.WEB_002dINF.views.addresses.show_js px$Helper.invoke(show_jspx.java:248)
at org.apache.jsp.tag.web.form.show_tagx._jspx_meth_c _005fwhen_005f0(show_tagx.java:673)
at org.apache.jsp.tag.web.form.show_tagx._jspx_meth_c _005fchoose_005f0(show_tagx.java:641)
at org.apache.jsp.tag.web.form.show_tagx.access$0(sho w_tagx.java:631)
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