ciao ho un problema misterioso con una connessione db2..
ho una tabella che contiene gli aggiornamenti abilitati per le farmacie
con questa funzione vado a stampare per debug gli aggiornamenti abilitati per la farmacia
ogni tanto però non mi viene stampato nulla !!!
non vengon nemmeno date Exception..
che tipo di errore può essere ?
credevo di connessione al db2 ma mi dovrebbe entrare in exception..
invece nulla..
nel log mi ritrovo solo :

'Rilevati n warning, avvio debug anagrafica farmacia'

ma poi non scrive più nulla..
come se il recorset ciclasse ma fosse vuoto ?????

ovviamente vuoto non è, infatti magari dopo pochi istanti se richiamo la funzione stampa tutto correttamente


codice:
private void debugTableAgg(int warningAgg, String codiceFarmacia, LogTracer logTracer){
		String methodName = "debugTableAgg";

		PooledDBConnection conn = null;
		PreparedStatement pStmt = null;
		ResultSet rs = null;

		HUB.log(fLogger, logTracer, methodName, "Rilevati " + warningAgg + " warning, avvio debug anagrafica farmacia");
		
		String DEBUG_SQL_SELECT_ANAGRAFICA = "SELECT CODICE_OGGETTO, LIVELLO FROM FEF_UPM.ANAGRAFICA WHERE CODICE_FARMACIA = ?";
		try {
	
			conn = getDBConnection(logTracer.getTrace());
			pStmt = conn.prepareStatement(DEBUG_SQL_SELECT_ANAGRAFICA);
			pStmt.setString(1, codiceFarmacia);
			rs = pStmt.executeQuery();

			while (rs.next()) {
				String codiceOggetto = rs.getString(1);
				String livelloOggetto = rs.getString(2);
				HUB.log(fLogger, logTracer, methodName, "Debug Aggiornamenti Abilitati: codiceFarmacia [" + codiceFarmacia + "], codiceOggetto [" + codiceOggetto + "], livelloOggetto ["+ livelloOggetto + "]");
			}
			
		}catch (Exception e){
			HUB.log(fLogger, logTracer, methodName, "Java Exception durante debug Anagrafica Aggiornamenti : " + e.getMessage());
		} finally {
			closeDBResource(rs);
			closeDBResource(pStmt);
			closeDBResource(conn, logTracer.getTrace());
		}
	}