java.lang.IllegalArgumentException: The proposed document is required

Spring JIRA | Andrew Swan | 5 years ago
  1. 0

    Integrating with Sales Cloud using SOAP web services and REST APIs | 2 months ago
    java.lang.IllegalArgumentException: A document URI is required for a search criterion.
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Hashmap in Spring form

    Stack Overflow | 3 years ago | user1128017
    java.lang.IllegalArgumentException: The field type is required
  4. 0

    Given this code: public class Survey { private Map<Question, Response> responses = new HashMap<Question,Response>(); ... } public class QuestionConverter implements Converter<Integer, Question> { ... } <form:input path="responses[1].value" /> During rendering, the expression "responses[1].value" is processed correctly by Spring EL, which converts the integer 1 to a Question, then does a look up in the responses map, and then converts the "value" field to a String. At this point this should be all that is needed. However, the following exception occurs: java.lang.IllegalArgumentException: The field type is required at org.springframework.util.Assert.notNull( at org.springframework.webflow.mvc.view.ConvertingPropertyEditorAdapter.<init>( at org.springframework.webflow.mvc.view.BindingModel.findSpringConvertingPropertyEditor( at org.springframework.webflow.mvc.view.BindingModel.findEditor( at<init>( at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.getBindStatus( Spring MVC's BindStatus tries to find a PropertyEditor but the above expression cannot be processed by the BeanWrapperImpl because it fails to recognize that 1 needs to be converted to a Question. It would be safe if we didn't create a ProperytEditor when the BeanWrapperImpl fails as Spring EL has already formatted the value correctly.

    Spring JIRA | 6 years ago | Rossen Stoyanchev
    java.lang.IllegalArgumentException: The field type is required

    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

      The proposed document is required

    2. org.springframework.roo
      2. org.springframework.roo.addon.web.mvc.jsp.roundtrip.DefaultXmlRoundTripFileManager.writeToDiskIfNecessary(
      2 frames
    3. Spring Roo - Annotations (ASLv2 Licensed)
      1. org.springframework.roo.addon.solr.SolrJspMetadataListener.installMvcArtifacts(
      2. org.springframework.roo.addon.solr.SolrJspMetadataListener.get(
      3. org.springframework.roo.addon.solr.SolrJspMetadataListener.notify(
      3 frames
    4. org.springframework.roo
      1. org.springframework.roo.metadata.DefaultMetadataService.notify(
      1 frame