You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Gianny Damour (JIRA)" <de...@geronimo.apache.org> on 2005/10/18 02:40:46 UTC

[jira] Assigned: (GERONIMO-1079) Better error for missing primkey-field

     [ http://issues.apache.org/jira/browse/GERONIMO-1079?page=all ]

Gianny Damour reassigned GERONIMO-1079:
---------------------------------------

    Assign To: Gianny Damour

> Better error for missing primkey-field
> --------------------------------------
>
>          Key: GERONIMO-1079
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1079
>      Project: Geronimo
>         Type: Bug
>   Components: deployment, OpenEJB
>     Versions: 1.0-M5
>     Reporter: Aaron Mulder
>     Assignee: Gianny Damour
>      Fix For: 1.0

>
> I forgot the primkey-field for my CMP entity, and I got this:
>     Error: Unable to distribute LoadMagus.ear: Could not deploy module
>     caused by EJB [TestRunMachine] is misconfigured: could not find CMP
>     fields for following pk fields: [TYPE] [MAX_VALUE] [MIN_VALUE]
> Now, I don't know where it got TYPE, MAX_VALUE, and MIN_VALUE from -- those are not fields on my EJB or the table or anything.  I did have a prim-key-class set to java.lang.Integer, so perhaps it picked up the static fields on java.lang.Integer (if so why?  I wouldn't have thought statics were relevant).  It would be better if the error said "missing primkey-field or prim-key-class does not have properties matching CMP field names" or something like that.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira