At a guess it is happening in these lines:
String serverMsg = new String(packetReceived.getData(), 0, packetReceived.getLength());
String [] text = serverMsg.split(",");
accNumber.setText(text[0]);
amountText.setText(text[1]);
jlblbranch.setText(text[2]);
You are assuming that
text
contains three elements, but you have not checked to make sure it actually does. Never assume that your code will always work, check everything. You should also spend some time studying arrays and their indices so you understand that this exception is merely telling you that you are trying to access an element of an array that does not exist.