You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "John Boblitz (JIRA)" <ji...@apache.org> on 2011/05/13 14:14:47 UTC
[jira] [Commented] (OPENJPA-1998) NPE getTableNameForMetadata when
running SchemaTool reflect against Postgres DB
[ https://issues.apache.org/jira/browse/OPENJPA-1998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032979#comment-13032979 ]
John Boblitz commented on OPENJPA-1998:
---------------------------------------
Further debugging and experimenting led me to the attribute "supportsNullTableForGetImportedKeys" which is set to true in the PostgresDictionary class. Changing this to false in DBDictionary:4325 solves the problem.
> NPE getTableNameForMetadata when running SchemaTool reflect against Postgres DB
> -------------------------------------------------------------------------------
>
> Key: OPENJPA-1998
> URL: https://issues.apache.org/jira/browse/OPENJPA-1998
> Project: OpenJPA
> Issue Type: Bug
> Components: jdbc
> Affects Versions: 2.1.0
> Environment: Windows 7, Eclipse Helios 3.6.2, remote Postgres DB 8.4. on Debian squeeze
> Reporter: John Boblitz
> Attachments: output.txt
>
>
> When running the SchemaTool to reverse a DB Schema, an NPE occurs at getTableNameForMetadata for foreign keys (tables and pk / uq indices works correctly!) Debugging shows that the tableName parameter is null when invoked. The NPE is caused by the invocation of tableName.getUnqualifiedName() ... tableName is still null at that point!
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira