Wasn’t trying to be rude, I was just uncertain whether the ArrayIndexOutOfBoundsException you mentioned earlier in the thread was still the problem, or if it was something else.
Unfortunately I can’t load your code into a PI right now, but I can give specific advice on the Processing / Java side if that is where your problem is.
For example, if you are dropping values or getting extra values – or if an End is getting dropped, causing one block to have too many lines – then you could add error checking and/or you could make the Processing receiving end an ArrayList instead of an array so that it doesn’t care how many rows you add. Seeing how much you are receiving might also help with debugging.