Estou executando uma conexao http em um servlet … na primeira vez q eu executo nao da exception funciona certinho… mas na segunda da, e ele nao insere no banco o valor passado… o que pode ser??
o erro é o seguinte:
java.lang.ArrayIndexOutOfBoundsException
at Tabuleiro.paint(+345)
at javax.microedition.lcdui.Canvas.callPaint(+80)
at javax.microedition.lcdui.Display.repaint(+77)
at javax.microedition.lcdui.Display.registerNewCurrent(+237)
at javax.microedition.lcdui.Display.access$400(+6)
at javax.microedition.lcdui.Display$DisplayAccessor.resumePainting(+15)
at javax.microedition.lcdui.Display$DisplayManagerImpl.resumePainting(+9)
at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+49)
at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+250)
java.lang.IllegalThreadStateException
at Xadrez.commandAction(+32)
at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+282)
at javax.microedition.lcdui.Display$DisplayManagerImpl.commandAction(+10)
at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)
at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+250)