JSP (Java Server Page) - java.sql.SQLException: No hay más datos para leer

 
Vista:

java.sql.SQLException: No hay más datos para leer

Publicado por delis (1 intervención) el 14/07/2009 18:23:10
Que tal a todos,

Tengo una rutina de insersión masiva de datos en JSP son alrededor de 80,000 registros desde excel a oracle, despues de un tiempo obtengo este error:

"java.sql.SQLException: No hay más datos para leer "

Alguien puede ayudarme con esto? Gracias, Saludos desde Panamá


int recorrido=0;
filename = f.toUpperCase();
while ((thisLine = myInput.readLine()) != null) // CSV
{
String text = thisLine.replace('"',' ');
text = text.replace(":","");
text = text.toUpperCase();
String strar[] =text.split(";");
int limit = cant_row-1;
if(i!=0)//empesa el recorrido en el renglon 2 para no tomar el header
{
SQLInsert ="";
SQLValues="";

if((filename.indexOf("CALLFEATURES")>0)||(filename.indexOf("PERFILES")>0))
{
for(int rec=0; rec <= limit; rec++) // recorriendo array de definicion
{
archdefinido = archdef[rec];
archdefinido = archdefinido.toUpperCase();
try
{
if((filename.indexOf(archdefinido)>0) && (y[rec]< strar.length))
{
if( x[rec]==limit)
{
SQLInsert = SQLInsert + ",COL" + x[rec] ;
SQLValues = SQLValues + ",'" + strar[y[rec]] + "'" ;
}
else
{
SQLInsert = SQLInsert + ",COL" + x[rec];
SQLValues = SQLValues + ",'" +strar[y[rec]] +"'";
}
}
}
catch (Exception e)
{
out.println("<br>Error en e: "+e);
}
}
if(filename.indexOf("CALLFEATURES")>0)
{
SQLInsert = SQLInsert + ",COL60";
SQLValues = SQLValues + ",'" + strar[1] + "'";
}
ins_proceso="insert into coneq.y_t_contencol(id_proceso,nombre_archivo,no_registro,id_recurso,id_entidad"+ SQLInsert + ")VALUES ('"+idproceso+"','"+f+"',(nvl((select (MAX(NO_REGISTRO)+1)as total from coneq.y_t_contencol),1)),'"+id_recurso+"','"+ id_entidad +"'" + SQLValues + ")";
rsx2 = setdig.executeUpdate(ins_proceso);
condig.commit();
}
if (i==5)
{
//break;// comentado por octavio nuñez bajo instruccion de delis morgan 02/06/2009
}
}
i++;
}
setdig.close();
condig.close();
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder