Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3
Sun Application Server 9
Mapping documents:
Voici mon fichier de mapping. Tout fonctionnait bien jusqu'à ce que j'ajoute l'élément Bag!
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.gazmet.mike.model.valueObject">
<class name="AppelVO" table="GSTAPP_APPEL" lazy="false">
<id name="id" column="APP_ID" type="java.lang.Long">
<generator class="sequence">
<param name="sequence">GSQAPP_ID</param>
</generator>
</id>
<property name="statutCodeVal" column="APP_CD_STATUT" type="java.lang.String" not-null="true" />
<property name="etatCodeVal" column="APP_CD_ETAT" type="java.lang.String" not-null="true" />
<property name="typeAvisCodeVal" column="APP_CD_TYPE_APPEL" type="java.lang.String" not-null="true" />
<property name="dateAvisEnvoye" column="APP_DT_AVIS_ENVOYE" type="java.util.Date" />
<property name="dateAppelRecu" column="APP_DT_APPEL_RECU" type="java.util.Date" />
<property name="datePriseEnCharge" column="APP_DT_PRISE_EN_CHARGE" type="java.util.Date" />
<property name="dateAnnulation" column="APP_DT_ANNULE" type="java.util.Date" />
<property name="messageTexte" column="APP_MSG_TEXTE" type="java.lang.String" />
<many-to-one name="ptaAssigne" column="APP_PTA_ID_ASSIGNE" class="PosteTravailAbregeVO" />
<many-to-one name="ptaAvisEnvoyePar" column="APP_PTA_ID_AVIS_ENVOYE_PAR" class="PosteTravailAbregeVO" />
<bag name="listeDistribution" table="GSTDIS_LISTE_DISTRIBUTION_MSG" cascade="all" lazy="false">
<key column="DIS_APP_ID"/>
<one-to-many class="ContactListeDistributionVO"/>
</bag>
</class>
</hibernate-mapping>
Full stack trace of any exception that occurs:
[#|2005-07-13T15:48:20.342-0400|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.corba._CORBA_.util|_ThreadID=19;|"IOP00511403: (INV_OBJREF) Class sun.rmi.transport.DGCImpl not exported, or else is actually a JRMP stub"
org.omg.CORBA.INV_OBJREF: vmcid: SUN minor code: 1403 completed: No
at com.sun.corba.ee.impl.logging.UtilSystemException.objectNotExported(UtilSystemException.java:562)
at com.sun.corba.ee.impl.logging.UtilSystemException.objectNotExported(UtilSystemException.java:585)
at com.sun.corba.ee.impl.util.Utility.autoConnect(Utility.java:148)
at com.sun.corba.ee.impl.copyobject.newreflect.ReflectObjectCopierImpl$1.createCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierFactoryArrayImpl$1.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierFactoryArrayImpl$1.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierFactoryArrayImpl$1.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$22.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl$ClassFieldCopierUnsafeImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierOrdinaryImpl.doCopy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ClassCopierBase.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.newreflect.ReflectObjectCopierImpl.copy(Unknown Source)
at com.sun.corba.ee.impl.copyobject.FallbackObjectCopierImpl.copy(FallbackObjectCopierImpl.java:31)
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.copyObject(Util.java:718)
at javax.rmi.CORBA.Util.copyObject(Util.java:314)
at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.copyResult(DynamicMethodMarshallerImpl.java:414)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:169)
at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
at com.gazmet.mike.model.session.appel._AppelSession_DynamicStub.lireAppel(_AppelSession_DynamicStub.java)
at com.gazmet.mike.model.service.AppelService.lireAppel(AppelService.java:83)
at com.gazmet.mike.struts.action.appel.ActionRechercherAppel.perform(ActionRechercherAppel.java:131)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.GeneratedMethodAccessor136.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
|#]
Name and version of the database you are using:
Oracle 9i
Ca semble être du au fait que le Bag est mappé sur la classe org.hibernate.collection.PersistentList. Y a-t-il un moyen de mapper la liste sur une autre classe?
Si vous avez des suggestions.......
M_A