That was exactly what I was asking you to show by using print statements in the loop. It would have shown you that the second time around the loop the value of pack had changed.
Glad you found it...
Type: Posts; User: Norm
That was exactly what I was asking you to show by using print statements in the loop. It would have shown you that the second time around the loop the value of pack had changed.
Glad you found it...
If none of the variables are ever null, then I don't understand where the error message comes from.
I noticed you do NOT have a printStackTrace call in the catch block. You should ALWAYS put one...
What is going on at statement 116?
What are the values of the variables used in that statement?
What is going on at statement 116? It looks like a call to the send method. Are any of its arguments null?
Add a println to show what the values are each time around the loop.