Announcement Announcement Module
Collapse
No announcement yet.
Roo failing to update AspectJ files after saving changes to Entity class Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Roo failing to update AspectJ files after saving changes to Entity class

    I added a field to my entity class via the Roo "field" command. Roo failed to update the associated <Entity>_Roo_JavaBean.aj file, which led to an exception such as this one:

    SEVERE: Servlet.service() for servlet default threw exception
    org.springframework.beans.NotReadablePropertyExcep tion: Invalid
    property 'whetherActive' of bean class
    [gov.epa.prism.ids.domain.IncidentReportType]: Bean property
    'whetherActive' is not readable or has an invalid getter method: Does
    the return type of the getter match the parameter type of the setter?
    at org.springframework.beans.BeanWrapperImpl.getPrope rtyValue(BeanWrapperImpl.java:674)

    Roo failed to update the .aj file to include the getter and setter for whetherActive in this case.

    I thought Roo was supposed to automatically maintain the .aj files? Is there a command I can run to force Roo to do this?

  • #2
    delete the aj.files
    and then refresh sts ide.

    roo will regeneration the aj files.

    Comment


    • #3
      Originally posted by sjbwylbs View Post
      delete the aj.files
      and then refresh sts ide.

      roo will regeneration the aj files.
      I tried this. Deleting the .aj files introduced more bugs. Refreshing my project in STS and doing a clean build did not recreate the .aj files.

      I decided to do a Refactor->Push In and move on without Roo/AspectJ. Still, I credit Roo for giving me a faster start in Spring 3 development.

      Comment

      Working...
      X