java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I have a TIMESTAMP field named "validated" which roo DBRE presents as a Date, with: public Date getValidated() { return this.validated; } The value is allowed to be null, so in UserId.java I created: public boolean isValidated() { return (getValidated() != null); } But when [for example] create.jspx invokes the roo-generated: <field:datetime dateTimePattern="${userId_validated_date_format}" field="validated" id="c_my_pkg_UserId_validated" z="cKb0GN8ukyKCr4s0DtbTFwNfgzM="/> The resolution of 'field="validated"' apparently finds 'boolean isValidated()' and then gets irate that it does not return the Date that it needs. [workaround is to rename the database field to 'validation_date' and DBRE again?] SEVERE: Servlet.service() for servlet MyService threw exception java.lang.IllegalArgumentException: Cannot convert false of type class java.lang.Boolean to class java.util.Date at org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:375) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:188) at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:935) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_fmt_005fformatDate_005f0(display_tagx.java:540) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_spring_005fescapeBody_005f0(display_tagx.java:505) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fwhen_005f0(display_tagx.java:472) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fchoose_005f0(display_tagx.java:441) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fif_005f0(display_tagx.java:253) at org.apache.jsp.tag.web.form.fields.display_tagx.doTag(display_tagx.java:206) at org.apache.jsp.WEB_002dINF.views.userids.show_jspx._jspx_meth_field_005fdisplay_005f11(show_jspx.java:361) at org.apache.jsp.WEB_002dINF.views.userids.show_jspx.access$11(show_jspx.java:340) at org.apache.jsp.WEB_002dINF.views.userids.show_jspx$Helper.invoke0(show_jspx.java:402) at org.apache.jsp.WEB_002dINF.views.userids.show_jspx$Helper.invoke(show_jspx.java:419) at org.apache.jsp.tag.web.form.show_tagx._jspx_meth_c_005fwhen_005f0(show_tagx.java:668) at org.apache.jsp.tag.web.form.show_tagx._jspx_meth_c_005fchoose_005f0(show_tagx.java:636) at org.apache.jsp.tag.web.form.show_tagx.access$0(show_tagx.java:626)
    via by Jack Punt,
  • I have a TIMESTAMP field named "validated" which roo DBRE presents as a Date, with: public Date getValidated() { return this.validated; } The value is allowed to be null, so in UserId.java I created: public boolean isValidated() { return (getValidated() != null); } But when [for example] create.jspx invokes the roo-generated: <field:datetime dateTimePattern="${userId_validated_date_format}" field="validated" id="c_my_pkg_UserId_validated" z="cKb0GN8ukyKCr4s0DtbTFwNfgzM="/> The resolution of 'field="validated"' apparently finds 'boolean isValidated()' and then gets irate that it does not return the Date that it needs. [workaround is to rename the database field to 'validation_date' and DBRE again?] SEVERE: Servlet.service() for servlet MyService threw exception java.lang.IllegalArgumentException: Cannot convert false of type class java.lang.Boolean to class java.util.Date at org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:375) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:188) at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:935) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_fmt_005fformatDate_005f0(display_tagx.java:540) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_spring_005fescapeBody_005f0(display_tagx.java:505) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fwhen_005f0(display_tagx.java:472) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fchoose_005f0(display_tagx.java:441) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fif_005f0(display_tagx.java:253) at org.apache.jsp.tag.web.form.fields.display_tagx.doTag(display_tagx.java:206) at org.apache.jsp.WEB_002dINF.views.userids.show_jspx._jspx_meth_field_005fdisplay_005f11(show_jspx.java:361) at org.apache.jsp.WEB_002dINF.views.userids.show_jspx.access$11(show_jspx.java:340) at org.apache.jsp.WEB_002dINF.views.userids.show_jspx$Helper.invoke0(show_jspx.java:402) at org.apache.jsp.WEB_002dINF.views.userids.show_jspx$Helper.invoke(show_jspx.java:419) at org.apache.jsp.tag.web.form.show_tagx._jspx_meth_c_005fwhen_005f0(show_tagx.java:668) at org.apache.jsp.tag.web.form.show_tagx._jspx_meth_c_005fchoose_005f0(show_tagx.java:636) at org.apache.jsp.tag.web.form.show_tagx.access$0(show_tagx.java:626)
    via by Jack Punt,
  • visual-studio-2012: mars 2015
    via by Unknown author,
  • db:: 3.60::error while deploying jsf in jboss zm
    via by Unknown author,
  • db:: 3.44::JSF logging in 5.1.0.Beta1 xk
    via by Unknown author,
    • java.lang.IllegalArgumentException: Cannot convert false of type class java.lang.Boolean to class java.util.Date at org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:375) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:188) at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:935) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_fmt_005fformatDate_005f0(display_tagx.java:540) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_spring_005fescapeBody_005f0(display_tagx.java:505) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fwhen_005f0(display_tagx.java:472) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fchoose_005f0(display_tagx.java:441) at org.apache.jsp.tag.web.form.fields.display_tagx._jspx_meth_c_005fif_005f0(display_tagx.java:253) at org.apache.jsp.tag.web.form.fields.display_tagx.doTag(display_tagx.java:206) at org.apache.jsp.WEB_002dINF.views.userids.show_jspx._jspx_meth_field_005fdisplay_005f11(show_jspx.java:361) at org.apache.jsp.WEB_002dINF.views.userids.show_jspx.access$11(show_jspx.java:340) at org.apache.jsp.WEB_002dINF.views.userids.show_jspx$Helper.invoke0(show_jspx.java:402) at org.apache.jsp.WEB_002dINF.views.userids.show_jspx$Helper.invoke(show_jspx.java:419) at org.apache.jsp.tag.web.form.show_tagx._jspx_meth_c_005fwhen_005f0(show_tagx.java:668) at org.apache.jsp.tag.web.form.show_tagx._jspx_meth_c_005fchoose_005f0(show_tagx.java:636) at org.apache.jsp.tag.web.form.show_tagx.access$0(show_tagx.java:626)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,