Working with Java Data Types in a Server
Page 4 of 4

Working with Non-Serializable Types

For you to instantiate a class within an SQL-J statement, the class must be serializable. In an embedded environment, this requirement is not enforced. However, when a query such as a VALUES statement "returns" an object that is not serializable, in the client/server environment you will get a ResultNotSerializable exception because the server framework uses serialization to return Java objects to the client.

Frameworks that embed Cloudscape more deeply, such as Web servers that provide client/server access via servlets, do not return Java objects to clients.