dynamobi/dynamobi — Issue #867: [FRG-3] IMPORT FOREIGN SCHEMA fails completely if one of the types in one of the tables is not recognized
Author: dynamobi-build
Created: 2011-12-30 03:53:49+00:00
State: open
Labels: FRG, JDBC Foreign Data Wrapper

[reporter="schoi", created="Wed, 7 Dec 2005 15:22:22 -0500 (GMT-05:00)"]
With mssql server as foreign server, IMPORT FOREIGN SCHEMA fails with the below exception and none of the tables get imported. (even without the table that caused this error, it would be good if the other tables still got loaded)

Error: java.lang.AssertionError: null (state=,code=0)

net.sf.farrago.util.FarragoUtil$FarragoSqlException: java.lang.AssertionError: null

at net.sf.farrago.type.FarragoTypeFactoryImpl.createJdbcType(FarragoTypeFactoryImpl.java:345)

at net.sf.farrago.type.FarragoTypeFactoryImpl.createJdbcColumnType(FarragoTypeFactoryImpl.java:332)

at net.sf.farrago.namespace.jdbc.MedJdbcNameDirectory.queryColumnsImpl(MedJdbcNameDirectory.java:404)

at net.sf.farrago.namespace.jdbc.MedJdbcNameDirectory.queryColumns(MedJdbcNameDirectory.java:349)

at net.sf.farrago.namespace.jdbc.MedJdbcNameDirectory.queryMetadata(MedJdbcNameDirectory.java:219)

at net.sf.farrago.ddl.DdlImportForeignSchemaStmt.preValidate(DdlImportForeignSchemaStmt.java:148)

at net.sf.farrago.ddl.DdlValidator.validate(DdlValidator.java:688)

at net.sf.farrago.db.FarragoDbSession.executeDdl(FarragoDbSession.java:796)

at net.sf.farrago.db.FarragoDbSession.prepareImpl(FarragoDbSession.java:777)

at net.sf.farrago.db.FarragoDbSession.prepare(FarragoDbSession.java:713)

at net.sf.farrago.db.FarragoDbStmtContext.prepare(FarragoDbStmtContext.java:152)

at net.sf.farrago.jdbc.engine.FarragoJdbcEngineStatement.execute(FarragoJdbcEngineStatement.java:104)