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

Solr addon has unnessesary dependency on to string addon

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0.M3
    • Fix Version/s: 1.1.0.RC1
    • Component/s: PERSISTENCE
    • Labels:
      None

      Description

      The 'solr all' command executed on the petclinic project produces the following stack trace:

      ~.web roo> solr all
      Managed SRC_MAIN_JAVA/com/springsource/petclinic/domain/Visit.java                                                                                                                                        [org.springframework.roo.wrapping.inflector [70]] BundleEvent STOPPED
      Managed SRC_MAIN_JAVA/com/springsource/petclinic/domain/Vet.java
      Managed SRC_MAIN_JAVA/com/springsource/petclinic/domain/Pet.java
      Managed SRC_MAIN_JAVA/com/springsource/petclinic/domain/Owner.java
      Managed SRC_MAIN_JAVA/com/springsource/petclinic/SolrSearchAsyncTaskExecutor.aj
      Created SRC_MAIN_JAVA/com/springsource/petclinic/domain/Pet_Roo_SolrSearch.aj
      Undo create SRC_MAIN_JAVA/com/springsource/petclinic/domain/Pet_Roo_SolrSearch.aj
      Undo manage SRC_MAIN_JAVA/com/springsource/petclinic/SolrSearchAsyncTaskExecutor.aj
      Undo manage SRC_MAIN_JAVA/com/springsource/petclinic/domain/Owner.java
      Undo manage SRC_MAIN_JAVA/com/springsource/petclinic/domain/Pet.java
      Undo manage SRC_MAIN_JAVA/com/springsource/petclinic/domain/Vet.java
      Undo manage SRC_MAIN_JAVA/com/springsource/petclinic/domain/Visit.java
      Invalid dependency between upstream 'MID:org.springframework.roo.addon.solr.SolrMetadata#SRC_MAIN_JAVA?com.springsource.petclinic.domain.Pet' and downstream 'MID:org.springframework.roo.addon.tostring.ToStringMetadata#SRC_MAIN_JAVA?com.springsource.petclinic.domain.Pet'
      java.lang.IllegalArgumentException: Invalid dependency between upstream 'MID:org.springframework.roo.addon.solr.SolrMetadata#SRC_MAIN_JAVA?com.springsource.petclinic.domain.Pet' and downstream 'MID:org.springframework.roo.addon.tostring.ToStringMetadata#SRC_MAIN_JAVA?com.springsource.petclinic.domain.Pet'
          at org.springframework.roo.support.util.Assert.isTrue(Assert.java:65)
          at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.registerDependency(DefaultMetadataDependencyRegistry.java:61)
          at org.springframework.roo.addon.tostring.ToStringMetadataProvider.getMetadata(ToStringMetadataProvider.java:36)
          at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:250)
          at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:139)
          at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:124)
          at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:179)
          at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:244)
          at org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider.onFileEvent(JavaParserMetadataProvider.java:138)
          at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:344)
          at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:217)
          at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:183)
          at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:140)
          at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
          at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:162)
          at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:326)
          at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:119)
          at java.lang.Thread.run(Thread.java:637)
      

        Attachments

          Activity

            People

            Assignee:
            sschmidt Stefan Schmidt
            Reporter:
            sschmidt Stefan Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: