[isis-fish-Bugs][1885] error pendant une simu : fr.ifremer.isisfish.entities.PopulationImpl.populationGroup, no session or session was closed
Bugs item #1885, was opened at 10/06/2009 12:16 You can respond by visiting: http://labs.libre-entreprise.org/tracker/?func=detail&atid=113&aid=1885&group_id=8 Or by replying to this e-mail entering your response between the following markers: #+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+ (enter your response here) #+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+ Status: Open Priority: 3 Submitted By: sigrid lehuta (sigrid)
Assigned to: Eric Chatellier (chatellier) Summary: error pendant une simu : fr.ifremer.isisfish.entities.PopulationImpl.populationGroup, no session or session was closed Category: simulation engine Group: ver-3-2 Resolution: Accepted
Initial Comment: Version 3.5.0.5 mise a jour du 10/06/09 J ai deja eu une erreur du mme type ca ne devrait plus arriver : URGENT ! ERROR [SimThread sim_HistoAnchois2000-2008_2009-06-10-12-07] (InProcessSimulatorLauncher.java:406) localSimulateSameThread - Error during simulation org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: fr.ifremer.isisfish.entities.PopulationImpl.populationGroup, no session or session was closed at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:380) at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:372) at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:365) at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:108) at org.hibernate.collection.PersistentBag.toArray(PersistentBag.java:280) at java.util.ArrayList.<init>(Unknown Source) at org.codelutin.math.matrix.SemanticList.<init>(SemanticList.java:44) at org.codelutin.math.matrix.AbstractMatrixND.setSemantics(AbstractMatrixND.java:186) at fr.ifremer.isisfish.simulator.PopulationMonitor.getN(PopulationMonitor.java:153) at rules.Paita3_20002008_Anchois.postAction(Paita3_20002008_Anchois.java:173) at simulators.DefaultSimulator.simulate(DefaultSimulator.java:273) at fr.ifremer.isisfish.simulator.launcher.InProcessSimulatorLauncher.localSimulateSameThread(InProcessSimulatorLauncher.java:370) at fr.ifremer.isisfish.simulator.launcher.InProcessSimulatorLauncher$SimThread.run(InProcessSimulatorLauncher.java:252) INFO [SimThread sim_HistoAnchois2000-2008_2009-06-10-12-07] (InProcessSimulatorLauncher.java:438) localSimulateSameThread - Simulation time: 9.180 ----------------------------------------------------------------------
Comment By: Eric Chatellier (chatellier) Date: 10/06/2009 12:23
Message: L'erreur est dans la regles Paita3_20002008_Anchois je pense; Il ne faut pas utiliser la parametres directement, mais les recharger dans la methode init(), par exemple : ZoneDAO zoneDao = IsisFishDAOHelper.getZoneDAO(context.getDB()); GearDAO gearDao = IsisFishDAOHelper.getGearDAO(context.getDB()); // Rechargement du param_zone depuis le context courant if (param_zone != null) { param_zone = zoneDao.findByTopiaId(param_zone.getTopiaId()); } if (param_gear != null) { param_gear = gearDao.findByTopiaId(param_gear.getTopiaId()); } ---------------------------------------------------------------------- You can respond by visiting: http://labs.libre-entreprise.org/tracker/?func=detail&atid=113&aid=1885&group_id=8
participants (1)
-
noreply@labs.libre-entreprise.org