Sun Java System Application Server Platform Edition 9 Release Notes

Using List<> for a relationship causes StringIndexOutOfBoundException in MetadataHelper.getAttributeNameFromMethodName.

For more information, see https://glassfish.dev.java.net/issues/show_bug.cgi?id=557.

Solution

Use java.util.Collection instead.