Most probably your method’s return object AccountSummary may contain collection types that does not support the above jboss version. If your class contains any attributes as Object[] arrays, change them to specific object types.
Eg: change Object[] to someClass[], hope this will help you!