Hello Leonid,
I have changed my log4j.xml. The Actions classes belongs to my Struts extensions: they are there because the chain of calls is initiated in one the actions of my front end.
Code:
INFO 2004-08-17 08:02:59,069 [net.sf.hibernate.cfg.Binder] -Mapping class: com.espivo.vivoen.modelo.usuario.Usuario -> USUARIO
INFO 2004-08-17 08:02:59,069 [net.sf.hibernate.cfg.Binder] -Mapping class: com.espivo.vivoen.modelo.usuario.Usuario -> USUARIO
DEBUG2004-08-17 08:02:59,069 [net.sf.hibernate.cfg.Binder] -Mapped property: id -> ID, type: long
DEBUG2004-08-17 08:02:59,069 [net.sf.hibernate.cfg.Binder] -Mapped property: id -> ID, type: long
DEBUG2004-08-17 08:02:59,069 [net.sf.hibernate.cfg.Binder] -Mapped property: idUsuario -> ID_USUARIO, type: string
DEBUG2004-08-17 08:02:59,069 [net.sf.hibernate.cfg.Binder] -Mapped property: idUsuario -> ID_USUARIO, type: string
DEBUG2004-08-17 08:02:59,079 [net.sf.hibernate.cfg.Binder] -Mapped property: idfiscal -> IDFISCAL, type: string
DEBUG2004-08-17 08:02:59,079 [net.sf.hibernate.cfg.Binder] -Mapped property: idfiscal -> IDFISCAL, type: string
DEBUG2004-08-17 08:02:59,079 [net.sf.hibernate.cfg.Binder] -Mapped property: nombre1 -> NOMBRE1, type: string
DEBUG2004-08-17 08:02:59,079 [net.sf.hibernate.cfg.Binder] -Mapped property: nombre1 -> NOMBRE1, type: string
DEBUG2004-08-17 08:02:59,079 [net.sf.hibernate.cfg.Binder] -Mapped property: nombre2 -> NOMBRE2, type: string
DEBUG2004-08-17 08:02:59,079 [net.sf.hibernate.cfg.Binder] -Mapped property: nombre2 -> NOMBRE2, type: string
DEBUG2004-08-17 08:02:59,089 [net.sf.hibernate.cfg.Binder] -Mapped property: nombre3 -> NOMBRE3, type: string
DEBUG2004-08-17 08:02:59,089 [net.sf.hibernate.cfg.Binder] -Mapped property: nombre3 -> NOMBRE3, type: string
DEBUG2004-08-17 08:02:59,089 [net.sf.hibernate.cfg.Binder] -Mapped property: password -> PASSWORD, type: string
DEBUG2004-08-17 08:02:59,089 [net.sf.hibernate.cfg.Binder] -Mapped property: password -> PASSWORD, type: string
DEBUG2004-08-17 08:02:59,129 [net.sf.hibernate.cfg.Binder] -Mapped property: recuerdoPassword -> RECORDATORIO_PASSWORD, type: string
DEBUG2004-08-17 08:02:59,129 [net.sf.hibernate.cfg.Binder] -Mapped property: recuerdoPassword -> RECORDATORIO_PASSWORD, type: string
DEBUG2004-08-17 08:02:59,170 [net.sf.hibernate.cfg.Binder] -Mapped property: emailAddress -> E_MAIL, type: string
DEBUG2004-08-17 08:02:59,170 [net.sf.hibernate.cfg.Binder] -Mapped property: emailAddress -> E_MAIL, type: string
ERROR2004-08-17 08:02:59,790 [org.apache.struts.actions.DispatchAction] -Dispatch[/eMailIn] to method subscribeEmailIn returned an exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
As you can see in the log, everything is fine until it begins the initialisation of the first component of my usuario.hbm.xml. Before that mapping document, Hibernate processes another four .hbm.xml without problems: they does not contain any component.
This is my usuario.hbm.xml:
Code:
<hibernate-mapping package="com.espivo.vivoen.modelo.usuario">
<class name="Usuario"
table="USUARIO" dynamic-insert="true" dynamic-update="true">
<id name="id" column="ID" type="long" unsaved-value="0" >
<generator class="identity"/>
</id>
<property name="idUsuario" column="ID_USUARIO" not-null="true"/>
<property name="idfiscal" column="IDFISCAL" not-null="false"/>
<property name="nombre1" column="NOMBRE1" not-null="false"/>
<property name="nombre2" column="NOMBRE2" not-null="false"/>
<property name="nombre3" column="NOMBRE3" not-null="false"/>
<property name="password" column="PASSWORD" not-null="true"/>
<property name="recuerdoPassword" column="RECORDATORIO_PASSWORD" not-null="true"/>
<!-- .... COMPONENTS ......-->
<component name="email" class="Email">
<parent name="usuario"/>
<property name="emailAddress" column="E_MAIL" type="string" not-null="false"/>
</component>
<component name="tfnoMovil" class="Telefono">
<parent name="usuario"/>
<property name="codPais" column="TFNOMOVIL_CODPAIS" type="short" not-null="false"/>
<property name="numero" column="TFNOMOVIL_NUMERO" type="string" not-null="false"/>
</component>
<component name="myCookie" class="MyCookie">
<parent name="usuario"/>
<property name="myCookieValue" column="COOKIE_VALUE" type="string" not-null="false"/>
</component>
<!-- ...... MAPPING FOR SUBSCRIPCIONES ..... -->
<set name="subscripciones" inverse="true" cascade="save-update">
<key column="ID_USUARIO"/>
<one-to-many class="com.espivo.vivoen.modelo.subscripcion.Subscripcion"/>
</set>
</class>
</hibernate-mapping>
Thanks a lot for your interest.
Regards.