HO scritto un programma che fa il parsing di un file e crea due oggetti collegati che inserisce a seconda se esistono o meno nel database. ogni file è composto da 116000 righe.Gli inserimenti vanno a buon fine fino alla riga 2000..ovvero finchè non mi compare questo errore:
Cannot connect to database server
com.mysql.jdbc.exceptions.jdbc4.CommunicationsExce ption: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.java.lang.NullPointerException.
Potete darmi una mano?
Uso Mysql: 5.1.41
Jdbc: 5.1.10 bin.
Grazie mille.

Rispondi quotando


