I am trying to test my spark app implemented in Java. In my spark app I load the logisticRegressionModel that I have already created, trained and tested using the portion of training data.

Now, when I test my spark app with another set of data and try to predict, I get below error when trying to read the prediction result and see how it looks after applied the transform on the new test data :