Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/12/2014, 23:03
Avatar de frankjoel86
frankjoel86
 
Fecha de Ingreso: noviembre-2008
Ubicación: Ica
Mensajes: 295
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Mostrar registros en jsqp

Tengo una clase manejador que contiene el statement e iniciliza la conexión:

package controles;
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
public class claseManejador {
public static Connection cn=null;
Statement st=null;
ResultSet rs=null;
public claseProductos productos=new claseProductos();
public void conectar(String xbase, String xusuario, String xclave){
try {
DriverManager.registerDriver(new com.mysql.jdbc.Driver());
xbase="jdbc:mysql://localhost:3306/"+xbase;
cn=DriverManager.getConnection(xbase,xusuario,xcla ve);
productos.iniciaProductos(cn);

} catch (SQLException ex) {
Logger.getLogger(claseManejador.class.getName()).l og(Level.SEVERE, null, ex);
}
}
}

----------------------------------------------------------------------------
El error que me sale es:
------------------------------------------------------------------------------
HTTP Status 500 - Internal Server Error

type Exception report

messageInternal Server Error

descriptionThe server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
root cause

java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.1 logs.

GlassFish Server Open Source Edition 4.1


*Gracias por la sugerencia, gracias
__________________
www.basritours.com
Agencia de turismo en Ica.