,
J'ai l'erreur ci-dessous qui ne cesse de revenir dans mes logs :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 SQLException: ORA-00001: unique constraint (PK_ATTRIBUTION_TRACE) violated Code d'erreur : 1 Call:INSERT INTO MNM_ATTRIBUTION_TRACE (MNM_TTRIBUTION_TRACE_OID_PK, MNM_INPUT_ATTR, MNM_ATTR_NUMBER, MNM_ATTR_REQUIRED, MNM_ERROR_MSG, MNM_ERRORS_COUNT, MNM_OUTPUT_ATTR) VALUES (?, ?, ?, ?, ?, ?, ?)
Voici 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 public void transformer(FileStoreBDT report) throws MissingDataException, InvalidParameterDataException { String traceId = AttributionTraceManager.getInstance().createAttributionTrace(); try{ Normalizer.normalizeData(report,traceId); return report; }catch(MissingDataException e){ AttributionTraceManager.getInstance().addErrorMessage(traceId, e.getMessage()); throw e; }catch(InvalidParameterDataException e){ AttributionTraceManager.getInstance().addErrorMessage(traceId, e.getMessage()); throw e; }catch(Exception e){ AttributionTraceManager.getInstance().addErrorMessage(traceId, e.getMessage()); throw new MissingDataException(null,null,null,null,e); }finally{ // Is logging allowed? Properties properties = PropertiesLoadingTools.getPropertiesFromFile("attributionVal"); if (Boolean.parseBoolean(properties.getProperty(AttributionConstants.TRACE_Attribution_IN_DATABASE))){ InternalTransactionHelper.getInstance().saveTrace(traceId); } AttributionTraceManager.getInstance().deleteTrace(traceId); } }
Merci pour votre aide
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 public synchronized String createAttributionTrace(){ String idTrace = Long.valueOf(GregorianCalendar.getInstance().getTimeInMillis()).toString(); traceMap.put(idTrace, new AttributionTrace()); return idTrace; }
Partager