java.lang.IllegalArgumentException: unknown format type at

Spring JIRA | Robert Oschwald | 6 years ago
  1. 0

    Exception is thrown if a validation error is detected. Example pattern (taken from ROO-639): @Pattern(regexp="\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[a-zAZ]{2,4}\\b") Roo Script to reproduce the fault (thanks to Ben): // Spring Roo 1.1.0.M2 [rev 41636cd] log opened at 2010-06-28 12:07:21 project --topLevelPackage ar.com.sample --projectName sample --java 6 persistence setup --provider HIBERNATE --database HYPERSONIC_PERSISTENT --databaseName sampleDB --userName sa logging setup --level INFO entity --class ~domain.Person --testAutomatically field string --class ~.domain.Person --fieldName email --regexp \b[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b controller all --package ~.web q // Spring Roo 1.1.0.M2 [rev 41636cd] log closed at 2010-06-28 12:07:34 Error logged on validation error (e.g. if not email address is entered): ERROR org.springframework.web.servlet.tags.form.ErrorsTag - unknown format type at java.lang.IllegalArgumentException: unknown format type at at java.text.MessageFormat.makeFormat(MessageFormat.java:1442) at java.text.MessageFormat.applyPattern(MessageFormat.java:458) at java.text.MessageFormat.<init>(MessageFormat.java:368) at org.springframework.context.support.MessageSourceSupport.createMessageFormat(MessageSourceSupport.java:115) at org.springframework.context.support.MessageSourceSupport.formatMessage(MessageSourceSupport.java:99) at org.springframework.context.support.AbstractMessageSource.renderDefaultMessage(AbstractMessageSource.java:275) at org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:152) at org.springframework.context.support.AbstractApplicationContext.getMessage(AbstractApplicationContext.java:1166) at org.springframework.web.servlet.support.RequestContext.getMessage(RequestContext.java:559) at org.springframework.web.servlet.support.BindStatus.initErrorMessages(BindStatus.java:177) at org.springframework.web.servlet.support.BindStatus.getErrorMessages(BindStatus.java:273) at org.springframework.web.servlet.tags.form.ErrorsTag.exposeAttributes(ErrorsTag.java:173) at org.springframework.web.servlet.tags.form.AbstractHtmlElementBodyTag.writeTagContent(AbstractHtmlElementBodyTag.java:48) at org.springframework.web.servlet.tags.form.AbstractFormTag.doStartTagInternal(AbstractFormTag.java:102) at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:79) at org.apache.jsp.tag.web.form.fields.input_tagx.doTag(input_tagx.java:330) at org.apache.jsp.WEB_002dINF.views.people.create_jspx._jspx_meth_field_005finput_005f0(create_jspx.java:129)

    Spring JIRA | 6 years ago | Robert Oschwald
    java.lang.IllegalArgumentException: unknown format type at
  2. 0

    Exception is thrown if a validation error is detected. Example pattern (taken from ROO-639): @Pattern(regexp="\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[a-zAZ]{2,4}\\b") Roo Script to reproduce the fault (thanks to Ben): // Spring Roo 1.1.0.M2 [rev 41636cd] log opened at 2010-06-28 12:07:21 project --topLevelPackage ar.com.sample --projectName sample --java 6 persistence setup --provider HIBERNATE --database HYPERSONIC_PERSISTENT --databaseName sampleDB --userName sa logging setup --level INFO entity --class ~domain.Person --testAutomatically field string --class ~.domain.Person --fieldName email --regexp \b[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b controller all --package ~.web q // Spring Roo 1.1.0.M2 [rev 41636cd] log closed at 2010-06-28 12:07:34 Error logged on validation error (e.g. if not email address is entered): ERROR org.springframework.web.servlet.tags.form.ErrorsTag - unknown format type at java.lang.IllegalArgumentException: unknown format type at at java.text.MessageFormat.makeFormat(MessageFormat.java:1442) at java.text.MessageFormat.applyPattern(MessageFormat.java:458) at java.text.MessageFormat.<init>(MessageFormat.java:368) at org.springframework.context.support.MessageSourceSupport.createMessageFormat(MessageSourceSupport.java:115) at org.springframework.context.support.MessageSourceSupport.formatMessage(MessageSourceSupport.java:99) at org.springframework.context.support.AbstractMessageSource.renderDefaultMessage(AbstractMessageSource.java:275) at org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:152) at org.springframework.context.support.AbstractApplicationContext.getMessage(AbstractApplicationContext.java:1166) at org.springframework.web.servlet.support.RequestContext.getMessage(RequestContext.java:559) at org.springframework.web.servlet.support.BindStatus.initErrorMessages(BindStatus.java:177) at org.springframework.web.servlet.support.BindStatus.getErrorMessages(BindStatus.java:273) at org.springframework.web.servlet.tags.form.ErrorsTag.exposeAttributes(ErrorsTag.java:173) at org.springframework.web.servlet.tags.form.AbstractHtmlElementBodyTag.writeTagContent(AbstractHtmlElementBodyTag.java:48) at org.springframework.web.servlet.tags.form.AbstractFormTag.doStartTagInternal(AbstractFormTag.java:102) at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:79) at org.apache.jsp.tag.web.form.fields.input_tagx.doTag(input_tagx.java:330) at org.apache.jsp.WEB_002dINF.views.people.create_jspx._jspx_meth_field_005finput_005f0(create_jspx.java:129)

    Spring JIRA | 6 years ago | Robert Oschwald
    java.lang.IllegalArgumentException: unknown format type at
  3. 0

    Create a new field in a window...

    adempiere | 8 years ago | bea001
    java.lang.IllegalArgumentException: unknown format type at
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error Message on loading a map

    freeplane | 6 years ago | megatop
    java.lang.IllegalArgumentException: Unmatched braces in the pattern.
  6. 0

    Error while indexing invalid Javascript

    GitHub | 2 years ago | deas
    java.lang.IllegalArgumentException: Unmatched braces in the pattern.

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      unknown format type at

      at java.text.MessageFormat.makeFormat()
    2. Java RT
      MessageFormat.<init>
      1. java.text.MessageFormat.makeFormat(MessageFormat.java:1442)
      2. java.text.MessageFormat.applyPattern(MessageFormat.java:458)
      3. java.text.MessageFormat.<init>(MessageFormat.java:368)
      3 frames
    3. Spring Context
      AbstractApplicationContext.getMessage
      1. org.springframework.context.support.MessageSourceSupport.createMessageFormat(MessageSourceSupport.java:115)
      2. org.springframework.context.support.MessageSourceSupport.formatMessage(MessageSourceSupport.java:99)
      3. org.springframework.context.support.AbstractMessageSource.renderDefaultMessage(AbstractMessageSource.java:275)
      4. org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:152)
      5. org.springframework.context.support.AbstractApplicationContext.getMessage(AbstractApplicationContext.java:1166)
      5 frames
    4. Spring MVC
      RequestContextAwareTag.doStartTag
      1. org.springframework.web.servlet.support.RequestContext.getMessage(RequestContext.java:559)
      2. org.springframework.web.servlet.support.BindStatus.initErrorMessages(BindStatus.java:177)
      3. org.springframework.web.servlet.support.BindStatus.getErrorMessages(BindStatus.java:273)
      4. org.springframework.web.servlet.tags.form.ErrorsTag.exposeAttributes(ErrorsTag.java:173)
      5. org.springframework.web.servlet.tags.form.AbstractHtmlElementBodyTag.writeTagContent(AbstractHtmlElementBodyTag.java:48)
      6. org.springframework.web.servlet.tags.form.AbstractFormTag.doStartTagInternal(AbstractFormTag.java:102)
      7. org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:79)
      7 frames
    5. org.apache.jsp
      create_jspx._jspx_meth_field_005finput_005f0
      1. org.apache.jsp.tag.web.form.fields.input_tagx.doTag(input_tagx.java:330)
      2. org.apache.jsp.WEB_002dINF.views.people.create_jspx._jspx_meth_field_005finput_005f0(create_jspx.java:129)
      2 frames