Cannot serialize Java object with class '%1'

Error constant SQLE_JAVA_SERIALIZATION_ERROR
ODBC 2 state ERROR
ODBC 3 state ERROR
Parameter 1 The class of the value that cannot be serialized.
Severity 16
SQLCODE -662
SQLSTATE WI009
Sybase error code 13744
 Probable cause