Did you import `mllib.linalg.Vector`?