Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1488

OutOfMemory when selecting "Remove Foreign Keys Mapped as Object Attributes"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.1
    • 3.0.2, 3.1M1
    • Modeler
    • None
    • MacOSX 10.6.3 / Java 1.6.0_17

    Description

      I just added a relationship in a DBEntity, and click on the "Sync dependant ObjEntities". I then get a panel with a checkbox:
      Remove Foreign Keys Mapped as Object Attributes

      When I leave the option selected, and press OK, the Modeler crashes immediately with OutOfMemoryError. When I deselect the option, it succeeds, and I have to remove the attribute by hand.

      I run the modeler via:
      mvn cayenne-modeler:run

      Increasing the memory didn't help:
      MAVEN_OPTS="-Xmx512m" mvn cayenne-modeler:run

      It still crashes, but not it takes 10sec to do so.

      This happened quite reliably on two different occasions with my model.

      Attachments

        1. CAY-1488.patch
          1 kB
          Andrei Veprev

        Activity

          People

            andrus Andrus Adamchik
            marc.guenther Marc Guenther
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: