[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-1880) Syntax Error in .hbm.xml file reports error but is missing replacement text

Steve Ebersole (JIRA) noreply at atlassian.com
Fri Jan 19 11:49:44 EST 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1880?page=all ]
     
Steve Ebersole closed HHH-1880:
-------------------------------

    Resolution: Rejected

No, the substitution did occur.  The "problem" is that it is substituting the empty string that you gave (type="")

> Syntax Error in .hbm.xml file reports error but is missing replacement text
> ---------------------------------------------------------------------------
>
>          Key: HHH-1880
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1880
>      Project: Hibernate3
>         Type: Bug

>   Components: metamodel
>     Versions: 3.0.2
>  Environment: Hibernate 3.0.2, Sybase 12.5.3, PeopleSoft 8's Job_Code table
>     Reporter: Arnie Morein
>     Priority: Minor

>
>
> This table has 122 fields. I made a typo in the definition of a field thusly:
> <property name="GvtFunctionClass" column="string" type="" update="false" insert="false"/>
> should have been:
> <property name="GvtFunctionClass" column="GVT_FUNC_CLASS" type="string" update="false" insert="false"/>
> Obviously, Hibernate reported an error - but it wasn't every helpful:
> 2006-07-05 09:02:18,750 ERROR [org.jboss.hibernate.jmx.Hibernate] Starting failed jboss.jca:service=HbmEmployeeWarehouse
> org.hibernate.MappingException: Could not determine type for: , for columns: [org.hibernate.mapping.Column(string)]
> 	at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:265)
> Two Things:
> 1) The error is in the HbmPsJobCodeTable.hbm.xml file - NOT the HbmEmployeeWarehouse.hbm.xml file.
> 2) Missing substitution values for the error string "Could not determine type for: , for columns: " apparently aren't making it into the string prior to its output. Perhaps 1 is related to 2?
> Thanks.

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




More information about the hibernate-issues mailing list