geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gianny Damour (JIRA)" <>
Subject [jira] Closed: (GERONIMO-1072) Better error for bad EJB QL
Date Sun, 16 Oct 2005 09:00:44 GMT
     [ ]
Gianny Damour closed GERONIMO-1072:

    Resolution: Fixed

Exceptions were not propagated to deployer. If properly propagated, the following contextual
information is typically available:

    Error: Operation failed: Unable to initialize EJBContainer GBean:
    ejbName [HoldingEJB]
        EJB [Entity logical name=[HoldingEJB]; physical name=[Holding]]
        Select [Select method=[ejbSelectQuoteFromSymbol]; EJB-QL=[ELECT
    OBJECT(q) from Quote q WHERE q.symbol = ?1]]
        Parser, lexer or Tree-walker exception
        Error while parsing.

> Better error for bad EJB QL
> ---------------------------
>          Key: GERONIMO-1072
>          URL:
>      Project: Geronimo
>         Type: Bug
>   Components: OpenEJB
>     Versions: 1.0-M5
>     Reporter: Aaron Mulder
>     Assignee: Gianny Damour
>      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
>     name=[Test]]
> 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