Clashes between protesters and police erupted against the jailing of nine Catalan separatists over the failed breakaway attempt.