Java error in the selection of the pool

Follow