Bonjour,
j'ai une erreur que je n'arrive pas à régler :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 Caused by: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [17004]; --- The error occurred while applying a parameter map. --- Check the insertErreurDemande-InlineParameterMap. --- Check the parameter mapping for the 'idUtilisateur' property. --- Cause: java.sql.SQLException: Type de colonne non valide; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred while applying a parameter map. --- Check the insertErreurDemande-InlineParameterMap. --- Check the parameter mapping for the 'idUtilisateur' property. Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred while applying a parameter map. --- Check the insertErreurDemande-InlineParameterMap. --- Check the parameter mapping for the 'idUtilisateur' property. --- Cause: java.sql.SQLException: Type de colonne non valide
voici le fichier indicateur.xml
et le code JAVA
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 <?xml version='1.0'?> <!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd"> <sqlMap namespace="Indicateurs"> <typeAlias alias="EvenementVO" type="com.portail.indicateurs.persistance.vo.EvenementVO" /> <insert id="insertErreurDemande" parameterClass="EvenementVO"> INSERT INTO TECH_EVENT ( EVENT_ID, EVENT_TYPE, EVENT_DATE, USER_ID, USER_ESPACE, SESSION_ID, DEMANDE_TYPE, PAGE_ID, ERREUR_MESSAGE, ERREUR_DATE ) VALUES ( #idEvenement:NUMBER#, #typeEvenement:VARCHAR2#, #dateCourante:TIMESTAMP#, #idUtilisateur:VARCHAR2#, #espace:VARCHAR2#, <isNotNull property="idSession"> #idSession:VARCHAR2#, </isNotNull> <isNull property="idSession"> null, </isNull> #typeDemande:VARCHAR2#, #libellePage:VARCHAR2#, #libelleErreur:VARCHAR2#, #dateCourante:TIMESTAMP# ) </insert> </sqlMap>
Merci d'avance
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 public void enregistrerConnexion (final EvenementDTO pEvenementDTO) throws SgMetierException, SgTechnicalException { Boolean vCodeRetour = true; try { final EvenementVO vEvenementVO = getEvenementVO(pEvenementDTO); vCodeRetour=verifieParams(pEvenementDTO,"enregistrerConnexion"); if(vCodeRetour==false){ mLogger.debug("EnregistrerConnexion : Parametre d'insertion non conforme"); }else{ mIndicateursDao.enregistrerConnexion(vEvenementVO); } } catch (final MappingException vEx) { throw new SgTechnicalException(RetourCodes.ERR_MAPPING, "Erreur de mapping sur EvenementVO", vEx); } }![]()
Partager