[jira] Commented: (CAY-1071) NullPointer in BaseQueryMetadata while executing Queri

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Tue Jun 10 2008 - 02:56:52 EDT

  • Next message: Lachlan Deck (JIRA): "[jira] Created: (CAY-1072) org.apache.cayenne.query.SQLResultSetMapping must implement java.io.Serializable"

        [ 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.
    



    This archive was generated by hypermail 2.0.0 : Tue Jun 10 2008 - 02:57:21 EDT