[
https://issues.apache.org/jira/browse/OPENJPA-1998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13033090#comment-13033090
]
John Boblitz commented on OPENJPA-1998:
---------------------------------------
Thanks!
> 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
> Assignee: Michael Dick
> Fix For: 2.2.0
>
> 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