geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Mulder (JIRA)" <>
Subject [jira] Created: (GERONIMO-1072) Better error for bad EJB QL
Date Fri, 14 Oct 2005 17:11:44 GMT
Better error for bad EJB QL

         Key: GERONIMO-1072
     Project: Geronimo
        Type: Bug
  Components: OpenEJB  
    Versions: 1.0-M5    
    Reporter: Aaron Mulder
     Fix For: 1.0

I have 2 tables with CMR -- say Parent(ID) and Child(ID, PARENT_ID).  In this case, I set
up the Child EJB so that it did not have a CMP field for PARENT_ID, but it did have a CMR
using that as the foreign key.

I wrote an EJB QL statement something like "SELECT Object(c) FROM Child c WHERE c.parentId=?1"
and got this error (and nothing on the console):

    Error: Operation failed: Unable to initialize EJBContainer GBean:
    ejbName [Test] caused by EJB [Entity logical name=[Test]; physical

This was not terribly helpful in diagnosing the problem, which was that my EJB QL actually
should have been "SELECT Object(c) FROM Child c WHERE".  It did not even mention
EJB QL.  Ideally, it would say something like "Invalid EJB QL for Query [findByParent] for
EJB [Test]".

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message