Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#408 NPE when loading keywords from DatabaseMetaData

2.3rc1
closed-fixed
Rob Manning
Core (461)
2
3 days ago
2006-08-03
Rob Manning
No

The dbcopy plugin database test yields the following
exception when copying from postgres to db2:

43299 [main] ERROR
net.sourceforge.squirrel_sql.client.session.schemainfo.SchemaInfo
- Error occured creating keyword collection
java.lang.NullPointerException
at
net.sourceforge.squirrel_sql.client.session.schemainfo.CaseInsensitiveString.<init>(CaseInsensitiveString.java:24)
at
net.sourceforge.squirrel_sql.client.session.schemainfo.SchemaInfo.loadKeywords(SchemaInfo.java:738)
at
net.sourceforge.squirrel_sql.client.session.schemainfo.SchemaInfo.privateLoadAll(SchemaInfo.java:202)
at
net.sourceforge.squirrel_sql.client.session.schemainfo.SchemaInfo.initialLoad(SchemaInfo.java:134)
at
net.sourceforge.squirrel_sql.client.session.MockSession.init(MockSession.java:103)
at
net.sourceforge.squirrel_sql.client.session.MockSession.<init>(MockSession.java:91)
at
net.sourceforge.squirrel_sql.plugins.dbcopy.MockSessionInfoProvider.initialize(MockSessionInfoProvider.java:79)
at
net.sourceforge.squirrel_sql.plugins.dbcopy.MockSessionInfoProvider.<init>(MockSessionInfoProvider.java:56)
at
net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutorTestRunner.main(CopyExecutorTestRunner.java:79)

The problem comes because DB2 jdbc driver decided to
return null for getCatalogTerm(). And SchemaInfo
doesn't check for null.

Rob

Discussion

  • Rob Manning
    Rob Manning
    2006-08-03

    • status: open --> closed-fixed