[
https://issues.apache.org/jira/browse/CAY-1224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711183#action_12711183
]
Andrus Adamchik commented on CAY-1224:
--------------------------------------
Trying this scenario with the schema that Tobias provided me and MySQL InnoDB
storage engine, I am getting the following error on Cayenne 3.0M6:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'test.****' doesn't
exist
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1026)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2536)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2465)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1383)
at com.mysql.jdbc.DatabaseMetaData$7.forEach(DatabaseMetaData.java:3915)
at com.mysql.jdbc.IterateBlock.doForAll(IterateBlock.java:50)
at
com.mysql.jdbc.DatabaseMetaData.getPrimaryKeys(DatabaseMetaData.java:3899)
at org.apache.cayenne.access.DbLoader.loadDbEntities(DbLoader.java:465)
at
org.apache.cayenne.access.DbLoader.loadDataMapFromDB(DbLoader.java:783)
at
org.apache.cayenne.access.DbLoader.loadDataMapFromDB(DbLoader.java:766)
at
org.apache.cayenne.modeler.dialog.db.DbLoaderHelper$LoadDataMapTask.execute(DbLoaderHelper.java:371)
at
org.apache.cayenne.modeler.util.LongRunningTask.internalExecute(LongRunningTask.java:215)
at
org.apache.cayenne.modeler.util.LongRunningTask$1.run(LongRunningTask.java:103)
at java.lang.Thread.run(Thread.java:613)
> reverse engineering partially changed schema shows empty error messge window
> ----------------------------------------------------------------------------
>
> Key: CAY-1224
> URL: https://issues.apache.org/jira/browse/CAY-1224
> Project: Cayenne
> Issue Type: Bug
> Components: CayenneModeler GUI
> Affects Versions: 1.2.5
> Environment: MySql 5.0
> jse 1.6.0_13-b03
> Reporter: Tobias Schoessler
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.