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

Field email command throws exception

    Details

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

      Description

      roo> field email template --class com.springsource.petclinic.domain.Owner
      field name mailTemplate
      Name required
      java.lang.IllegalArgumentException: Name required
          at org.springframework.roo.support.util.Assert.notNull(Assert.java:112)
          at org.springframework.roo.classpath.details.DefaultClassOrInterfaceTypeDetails.<init>(DefaultClassOrInterfaceTypeDetails.java:80)
          at org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetailsBuilder.build(ClassOrInterfaceTypeDetailsBuilder.java:140)
          at org.springframework.roo.addon.email.MailOperationsImpl.injectEmailTemplate(MailOperationsImpl.java:259)
          at org.springframework.roo.addon.email.MailCommands.injectEmailTemplate(MailCommands.java:82)                                         [org.springframework.roo.process.manager [59]] ServiceEvent UNREGISTERING
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        Activity

        Hide
        sschmidt Stefan Schmidt added a comment -

        Fixed with commit 9cf1c9f39064c21735b8a842c76b96d85b66798f.

        Show
        sschmidt Stefan Schmidt added a comment - Fixed with commit 9cf1c9f39064c21735b8a842c76b96d85b66798f.

          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: