Guest User

Untitled

a guest
Feb 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. private class Hilo extends Thread {
  2.  
  3. public void run() {
  4. String web_service = txtWs.getText();
  5. String token = txtToken.getText();
  6. boolean estado = true;
  7. while (true) {
  8. try {
  9. boolean validacion = controller.tokenValidacion(web_service, token);
  10. if (validacion == false) {
  11. estado = false;
  12. break;
  13. }
  14.  
  15. //setVisible(false);
  16. controller_consulta.iniciar_proceso1();
  17. controller_consulta.iniciar_proceso2();
  18.  
  19. Thread.sleep(20000);
  20. } catch (InterruptedException ex) {
  21. Logger.getLogger(formToken.class.getName()).log(Level.SEVERE, null, ex);
  22. }
  23. }
  24.  
  25. if(!estado){
  26. setVisible(true);
  27. }
  28. }
  29. }
  30.  
  31. Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException: 0
  32. at Model.Consultar_insertar.iniciar_proceso(Consultar_insertar.java:25)
  33. at Controller.Controller_consultar.iniciar_proceso1(Controller_consultar.java:107)
  34. at Gui.formToken$Hilo.run(formToken.java:295)
Add Comment
Please, Sign In to add comment