I'm getting this error everytime I'm assigning a non empty list of sObject to a standardsetcontroller
list<sObject> listSearchArticles = someOtherMethod(); // someOtherMethod returns a list of sObjects
if(listSearchArticles.size() > 0 ){
this.setCon = new ApexPages.StandardSetController( listSearchArticles );
this.setCon.setpageNumber(1);
this.setCon.setPageSize(25);
}