openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kymair Wu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OPENJPA-2429) NPE was thrown out when a @OrderBy modified column is being persisted.
Date Mon, 23 Sep 2013 06:40:02 GMT
Kymair Wu created OPENJPA-2429:
----------------------------------

             Summary: NPE was thrown out when a @OrderBy modified column is being persisted.
                 Key: OPENJPA-2429
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2429
             Project: OpenJPA
          Issue Type: Bug
          Components: datacache
    Affects Versions: 2.2.1
         Environment: Windows 7
WebSphere 8.5
            Reporter: Kymair Wu


Following NPE was thrown out when a @OrderBy modified column is being persisted.

Caused by: java.lang.NullPointerException
        at org.apache.openjpa.datacache.DataCachePCDataImpl.clearInverseRelationCache(DataCachePCDataImpl.java:179)
        at org.apache.openjpa.datacache.DataCachePCDataImpl.storeField(DataCachePCDataImpl.java:159)

I notice that getOrderDeclaration() of FieldMetaData will return null when both _orders and
_orderDec are null, which cause the NPE.

The only place _orders will be set after class initialization seems to be getOrders()? But
getOrders() is not involved for all the FieldMetaData of "fields[i].getInverseMetaDatas()"

I'm not sure whether this is a OpenJPA issue but whether this NPE should be handled internally?


Google returns a potential case but no more information found. See https://issues.apache.org/jira/browse/OPENJPA-2096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
and http://mail-archives.apache.org/mod_mbox/openjpa-users/201006.mbox/%3C4C1BE781.9000406@cyberspaceroad.com%3E

Thanks!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message