Sun Java System Application Server 9.1 Update 1-9.1 Update 2 Release Notes

Java Persistence

TopLink expects my Collection field/property to be cloneable (Issue Tracker 556)


If the java.util.Arrays.asList() API is used to convert an Object[] to Collection, the JDK returns an implementation of java.util.ArrayList that is not cloneable. This results in the following exception:

The method invocation of the method [protected native java.lang.Object 
java.lang.Object.clone() throws java.lang.CloneNotSupportedException] on the object 
[[pkg.A id = xxx]], of class [class java.util.Arrays$ArrayList], triggered an 
exception. Internal Exception: java.lang.reflect.InvocationTargetException Target 
Invocation Exception: java.lang.CloneNotSupportedException: 

This issue is tracked at


Create another collection using its constructor; for example:

myCollection = new ArrayList(java.util.Arrays.asList(a))

GenerationType.IDENTITY and DataDirect Driver with SyBase (Issue Tracker 2431)


An attempt to insert an entity that uses GenerationType.IDENTITY fails when the DataDirect driver is used with SyBase. The attempt fails because the DataDirect driver creates a stored procedure for every parameterized prepared statement.


In the domain.xml file, set the property PrepareMethod=direct on the corresponding data source.