Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2817

Error upon adding @RooSolrWebSearchable to MVC controller

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.0.M1
    • Fix Version/s: 1.2.0.RC1
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      To replicate:

      1. Run these commands:
        1. script vote.roo
        2. solr setup
        3. solr all
      2. Upon manually adding the @RooSolrWebSearchable annotation to an MVC controller (e.g. ChoiceController), the console throws the following error:
      java.lang.IllegalArgumentException: The proposed document is required
          at org.springframework.roo.support.util.Assert.notNull(Assert.java:112)
          at org.springframework.roo.addon.web.mvc.jsp.roundtrip.DefaultXmlRoundTripFileManager.writeToDiskIfNecessary(DefaultXmlRoundTripFileManager.java:45)
          at org.springframework.roo.addon.solr.SolrJspMetadataListener.installMvcArtifacts(SolrJspMetadataListener.java:105)
          at org.springframework.roo.addon.solr.SolrJspMetadataListener.get(SolrJspMetadataListener.java:95)
          at org.springframework.roo.addon.solr.SolrJspMetadataListener.notify(SolrJspMetadataListener.java:229)
          at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:239)
          etc.

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            aswan Andrew Swan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: