Re: reverse engineering partially changed schema

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Mon May 11 2009 - 20:50:47 EDT

  • Next message: Tobias Schoessler: "Re: reverse engineering partially changed schema"

    Hi Tobias,

    This looks like a bug to me. Probably worth opening a bug report, but
    the easiest thing would be to upgrade to Cayenne 3.0 for instance.
    Chances are this problem is fixed there already.

    Andrus

    On May 11, 2009, at 10:24 AM, Tobias Schoessler wrote:

    > Hi,
    >
    > I get an error in the CayenneModeler 1.2.4 when reverse engineering
    > my
    > schema partially.
    >
    > CayenneModeler INFO [Thread-13 04-27 15:02:50]
    > org.objectstyle.cayenne.modeler.dialog.db.DbLoaderHelper: Exception on
    > reverse engineering
    > java.lang.NullPointerException
    > at
    > org
    > .objectstyle
    > .cayenne.access.DbLoader.loadDbRelationships(DbLoader.java:661)
    >
    > at
    > org.objectstyle.cayenne.access.DbLoader.loadDbEntities(DbLoader.java:
    > 488)
    > at
    > org
    > .objectstyle.cayenne.access.DbLoader.loadDataMapFromDB(DbLoader.java:
    > 775)
    >
    > at
    > org
    > .objectstyle.cayenne.access.DbLoader.loadDataMapFromDB(DbLoader.java:
    > 758)
    >
    > at
    > org.objectstyle.cayenne.modeler.dialog.db.DbLoaderHelper
    > $LoadDataMapTask.execute(DbLoaderHelper.java:388)
    >
    > at
    > org
    > .objectstyle
    > .cayenne
    > .modeler.util.LongRunningTask.internalExecute(LongRunningTask.java:
    > 251)
    >
    > at
    > org.objectstyle.cayenne.modeler.util.LongRunningTask
    > $1.run(LongRunningTask.java:139)
    >
    > at java.lang.Thread.run(Unknown Source)
    >
    >
    > I have updated a portion of the schema in the database. I delete the
    > DbEntities and ObjEntities of the tables that were changed.
    >
    > I then click reverse Engineer from database. I get popups asking
    > whether to
    > overwrite existing Objects. I click "remember my decision" and NO.
    >
    > at the end I get an error popup without a message. It is just
    > containing the
    > red error icon and a title reading "Error Reengineering Database".
    >
    >
    > This error does occur also when I select not to remember my decision
    > and
    > click through each popup one by one.
    >
    > When reverse engineering the whole database, removing all
    > ObjEntities and
    > all DBEntities, before reverse engineering the error does not occur.
    > I have
    > many custom mappings redoing the existing mapping is not really an
    > option.
    >
    > Any help highly appreciated.
    >
    > thanks,Tobias



    This archive was generated by hypermail 2.0.0 : Mon May 11 2009 - 20:51:18 EDT