Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/10/2009, 10:01
Avatar de lair
lair
 
Fecha de Ingreso: enero-2009
Ubicación: header('Location: Morelia");
Mensajes: 1.052
Antigüedad: 16 años, 5 meses
Puntos: 46
Respuesta: Security Exception

Gracias a todos lo que se dieron una vuelta para ver mi problema, afortunadamente ya logre resolverlo, lo paso por si alguien lo puede utilizar.

lo que hice fue cambiar el modo de lectura
Código:
try {
                    Class cc = this.getClass();
                    InputStream ips= cc.getResourceAsStream("/definiciones.txt");
                    int i=0,cont=0;
                    byte b[]=new byte[1];
                    String CHAR="",Cadena="";
                    while(ips.read(b)!=-1){
                        CHAR=new String(b);
                        if(CHAR.equals("\n"))
                            cont++;
                    }
                    StringItem respuesta[]=new StringItem[cont];
                    ips.reset();
                    
                    while(ips.read(b)!=-1){
                        CHAR=new String(b);
                        Cadena+=CHAR;
                        if(CHAR.equals("\n")){
                            respuesta[i]=new StringItem(Cadena, "");
                            Cadena="";
                            Form2.append(respuesta[i]);
                            i++;
                        }
                        CHAR="";
                    }
                    pantalla.setCurrent(Form2);
                } catch (Exception ex) {
                    Alert error=new Alert("Error","Mensaje:\n"+ex,null,AlertType.ERROR);
                    error.setTimeout(Alert.FOREVER);
                    pantalla.setCurrent(error);
                }
nos vemos, seguimos en contacto