openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pinaki Poddar (JIRA)" <>
Subject [jira] Commented: (OPENJPA-602) NullPointerException at
Date Tue, 10 Jun 2008 20:47:45 GMT


Pinaki Poddar commented on OPENJPA-602:

SVN Revision 666314 [1]  addresses this issue. Used a modified version the attached patch
as the domain model in a test case. 
It will be helpful if the reporter can verify 
        a) whether the newly added test case reflects the intended domain model 
and b) whether the change resolves the original issue.

Known limitation:
  As the root of persistent hierarchy is abstract and table-per-class strategy is being used,

 aggregate JPQL query e.g. "SELECT COUNT(p) FROM Translatable p" will not be possible 
 because the concrete subclasses such as SomethingTranslatable or SomeOtherTranslatable are


> NullPointerException at
> -----------------------------------------------------------------------------------------------------
>                 Key: OPENJPA-602
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 1.1.0
>            Reporter: Michael Vorburger
>            Priority: Minor
>         Attachments: FullStackTrace-OPENJPA-602.txt,
> The example I'll attach crashes with an NPE when running the mappingtool.
> Caused by: java.lang.NullPointerException
> 	at
> 	at
> 	at org.apache.openjpa.jdbc.meta.FieldMapping.setStrategy(
> 	at org.apache.openjpa.jdbc.meta.RuntimeStrategyInstaller.installStrategy(
> 	at org.apache.openjpa.jdbc.meta.FieldMapping.resolveMapping(
> 	at org.apache.openjpa.jdbc.meta.FieldMapping.resolve(
> 	at org.apache.openjpa.jdbc.meta.ClassMapping.resolveMapping(
> The goal of this JIRA is not (neccessarily) to support the kind of mapping that would
be required for this (which may be hard), but to at least print a clear error and not an NPE...

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message