-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Erreur RMI avec un élément Bag
PostPosted: Wed Jul 13, 2005 4:08 pm 
Newbie

Joined: Fri May 20, 2005 5:30 pm
Posts: 9
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 14, 2005 5:30 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
C'est un bug Sun, le reporte leur.
Tu peux utiliser une UserCollectionType pour changer l'implémentation de la list, mais c'est loin d'être simple.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 15, 2005 10:24 am 
Newbie

Joined: Fri May 20, 2005 5:30 pm
Posts: 9
N'y a-t-il pas un moyen de mapper un bag/set/list directement à une classe de java (java.util.List)?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 15, 2005 10:59 am 
Newbie

Joined: Fri May 20, 2005 5:30 pm
Posts: 9
N'y a-t-il pas un moyen de mapper un bag/set/list directement à une classe de java (java.util.List)?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 15, 2005 2:24 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Si mais là encore en passant par le UserCollectionType.
note que faisaint cela tu perds le lazy loading des collections, la gestion du delete orphan etc etc... Donc pas recommandé.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.