I think the problem is this:
println(Serial.list());
port = new Serial(this, Serial.list()[1], 9600);
Your output shows that there is only one element in the list of serial ports. Element 0. Then the code tries to use element 1. That's going to fail.