Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private class Hilo extends Thread {
- public void run() {
- String web_service = txtWs.getText();
- String token = txtToken.getText();
- boolean estado = true;
- while (true) {
- try {
- boolean validacion = controller.tokenValidacion(web_service, token);
- if (validacion == false) {
- estado = false;
- break;
- }
- //setVisible(false);
- controller_consulta.iniciar_proceso1();
- controller_consulta.iniciar_proceso2();
- Thread.sleep(20000);
- } catch (InterruptedException ex) {
- Logger.getLogger(formToken.class.getName()).log(Level.SEVERE, null, ex);
- }
- }
- if(!estado){
- setVisible(true);
- }
- }
- }
- Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException: 0
- at Model.Consultar_insertar.iniciar_proceso(Consultar_insertar.java:25)
- at Controller.Controller_consultar.iniciar_proceso1(Controller_consultar.java:107)
- at Gui.formToken$Hilo.run(formToken.java:295)
Add Comment
Please, Sign In to add comment