You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org> on 2008/06/10 08:56:52 UTC
[jira] Commented: (CAY-1071) NullPointer in BaseQueryMetadata while
executing Queri
[ https://issues.apache.org/cayenne/browse/CAY-1071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12944#action_12944 ]
Andrus Adamchik commented on CAY-1071:
--------------------------------------
So why is "resolver" null? Could you post a full stack trace? It shouldn't be null under normal circumstances.
> NullPointer in BaseQueryMetadata while executing Queri
> ------------------------------------------------------
>
> Key: CAY-1071
> URL: https://issues.apache.org/cayenne/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.