Some problem with the domain of the dataset. You probably have non discrete class variable (continuous or string), or maybe a string variable in the data features (bayes learner can only learn from continuous and discrete variables and predict a discrete class).