Hola....
Se Que Ese Error Se Presenta Porque Intento Acceder A Una Posicion Inexistente En Un Arreglo. Ahi Es Donde No Entiendo Porque La Posicion Que Estoy Intentando Acceder Si Existe.
Lo Que Yo Hago Es Hacer Una Consulta A Mi Base De Datos, Tomo Uno De Los Resultados y Simplemente Quiero Mostrarlo Y Ahi es Donde Se Presenta El Error:
HTTP Status 500 - 
--------------------------------------------------------------------------------
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception 
java.lang.ArrayIndexOutOfBoundsException: 1
note The full stack traces of the exception and its root causes are available in the GlassFish/v3 logs.
--------------------------------------------------------------------------------
GlassFish/v3
Miren El Codigo:
- try 
-         { 
-             if(req.getParameter("B1")!=null) 
-             { 
-                String-  q ="select * from simulador_ecaes.pregunta where Id_Componente='"+- id +"'order by rand()limit 0,1";
 
-                try 
-                { 
-                 bd.valida = bd.ingreso.executeQuery(q); 
-                 while(bd.valida.next()) 
-                 { 
-                     String-  pre =- bd. valida- . getString("Id_Pregunta");
 
-                     pag.println(pre); 
-                 } 
-             } 
-         } 
-   
La Verdad Yo No Veo Ningun Problema. Espero Y Me Puedan Colaborar Diciendome Que me Genera El Error Y Como Solucionarlo.
Muchas Gracias