cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Razumovsky (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CAY-1071) NullPointer in BaseQueryMetadata while executing Queri
Date Tue, 05 May 2009 17:51:30 GMT

     [ https://issues.apache.org/jira/browse/CAY-1071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrey Razumovsky resolved CAY-1071.
------------------------------------

    Resolution: Cannot Reproduce

This appears to be stale issue. I got similiar problem when working on CAY-979, but that was
with cloning EntityResolver, and there's nothing like that here. So the problem could be caused
by invalid query (or query root), or previous exceptions (that were not listed).

> NullPointer in BaseQueryMetadata while executing Queri
> ------------------------------------------------------
>
>                 Key: CAY-1071
>                 URL: https://issues.apache.org/jira/browse/CAY-1071
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Cayenne Core Library
>    Affects Versions: 3.0
>         Environment: openSuSE 10.3, Kernel Linux 2.6.22.17-0.1-default i686, Java 1.6.0_04
>            Reporter: J├╝rgen Seliger
>            Assignee: Andrus Adamchik
>
> I figured out a problem (NullPointerException) in Line at org.apache.cayenne.query.BaseQueryMetadata.resolve(BaseQueryMetadata.java:100)
in  BaseQueryMetadata class. The resolver in line 100                     
> entity = resolver.lookupObjEntity((Class<?>) root);
> is null and there is no check if there is so. 
> The methode getEntityResolver() in DataContext says it could be null. I also recommend
to put the surrounding if-statement at the end of all if-else-statements, because all classes
are instances of Class.
> Hope I could help you, and you fixe the problem as soon as possible, because I want use
cayenne for myself.
> Dear 
> Jurgen Seliger

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


Mime
View raw message