Bonjour,

J'ai un soucis quand j'execute mon application java. J'ai l'erreur suivante :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
 
2011-01-21 11:20:06,778 : ConnectionManager.getConnection : XAResource enlisted, but tx is marked rollback
javax.transaction.RollbackException: Transaction already marked for rollback
Cette erreur est créée par le code suivant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
 
public void ajoutPersonnes(){
		List<String> idFTs = referentielPersonneDao.findIdFT();
		for(String idFT:idFTs){
			PersonneVO personneVO = personneService.recupererPersonneVOByIdFT(idFT);
			if(personneVO != null){
				if(!personneDao.isPresente(personneVO.getIdFT())){
										Personne personne = new Personne();
					personne.setIdFT(personneVO.getIdFT());
					personne.setNom(personneVO.getNom());
					personne.setPrenom(personneVO.getPrenom());
					personne.setEmail(personneVO.getEmail());
					personne.setTelephoneFixe(personneVO.getTelephoneFixe());
					personne.setTelephoneMobile(personneVO.getTelephoneMobile());
					personne.setEntite(personneVO.getEntite());
					personne.setMailEnvoye(false);
					personne.setSupprimeGassi(false);					
					personneDao.persist(personne);
				}
			}
		}
	}
Quelqu'un aurait une idée d'ou ça pourrait provenir?

Merci d'avance