Re: java.lang.OutOfMemoryError

From: Holger Hoffstätte (holge..izards.de)
Date: Mon Feb 17 2003 - 05:00:22 EST

  • Next message: Javier Ferro: "RE: java.lang.OutOfMemoryError"

    Hallo Javier,

    thanks for the mail - the new stack trace is very helpful!

    Javier Ferro wrote:
    > I've downloaded the nightly build:
    > http://objectstyle.org/downloads/cayenne/nightly/2003-2-16/
    >
    > When I try to reengineer the db I get
    > the following exception:
    >
    > CayenneModeler Info Version: 1.0b1-dev Build Date: February 16 2003
    > Exception: =================================
    > java.lang.IllegalArgumentException: Map already contains a key
    > SmpVarEbuActiveJob at
    > org.objectstyle.cayenne.util.CayenneMap.put(CayenneMap.java:126) at
    > org.objectstyle.cayenne.map.DataMap.addObjEntity(DataMap.java:253) at
    > org.objectstyle.cayenne.access.DbLoader.loadObjEntities(DbLoader.java:418)

    This indicates that Modeler wants to create an ObjEntity with a name that
    already exists in the DataMap; it currently cannot handle such a
    situation, because it should not happen in the first place! After setting
    user/password/etc. in the login panel, did Modeler present you a dialog to
    select a schema from a list? What did you select? DbLoader (the class
    doing all the work) currently still chokes in the unit tests when the
    schema name is not given, but this should not happen with Modeler.

    The basic problem is that DbLoader tries to reengineer way too many tables
    (which leads to duplicate names etc.) without given schema name, since you
    seem to have SYSDBA role and this makes SYSTEM tables visible as well. One
    workaround for this is to simply create a new user with as few roles as
    possible; try only CONNECT and RESOURCE at first.

    Holger



    This archive was generated by hypermail 2.0.0 : Mon Feb 17 2003 - 05:02:40 EST