Did you ever resolve your problem? I've got the same issue.
The first role I insert works fine but the second one has problems. The table isn't that complicated. I can insert the SQL using isql without problem.
Code:
00:28:12,234 DEBUG - insert into SVD_ROLE (RoleName, Description, SystemRole, RoleId) values (?, ?, ?, ?)
00:28:12,250 DEBUG - binding 'User' to parameter: 1
00:28:12,250 DEBUG - binding 'Standard role assigned to general users' to parameter: 2
00:28:12,250 DEBUG - binding 'false' to parameter: 3
00:28:12,250 DEBUG - binding '1' to parameter: 4
00:28:12,250 DEBUG - insert into SVD_ROLEACCESSRIGHTS (RoleId, RightId) values (?, ?)
00:28:12,250 DEBUG - binding '1' to parameter: 1
00:28:12,265 DEBUG - binding 'USE_WEBDAV' to parameter: 2
00:28:12,265 DEBUG - binding '1' to parameter: 1
00:28:12,265 DEBUG - binding 'RENAME_MY_FILE' to parameter: 2
00:28:12,265 DEBUG - binding '1' to parameter: 1
00:28:12,265 DEBUG - binding 'SEND_MESSAGE' to parameter: 2
00:28:12,265 DEBUG - binding '1' to parameter: 1
00:28:12,265 DEBUG - binding 'RENAME_FOLDER' to parameter: 2
00:28:12,265 DEBUG - binding '1' to parameter: 1
00:28:12,265 DEBUG - binding 'CREATE_FOLDER' to parameter: 2
00:28:12,281 DEBUG - binding '1' to parameter: 1
00:28:12,281 DEBUG - binding 'CHANGE_MY_GROUP' to parameter: 2
00:28:12,281 DEBUG - binding '1' to parameter: 1
00:28:12,281 DEBUG - binding 'REVISE_MY_DOCUMENT' to parameter: 2
00:28:12,281 DEBUG - binding '1' to parameter: 1
00:28:12,281 DEBUG - binding 'EXPORT_IMPORT_VERS' to parameter: 2
00:28:12,281 DEBUG - binding '1' to parameter: 1
00:28:12,296 DEBUG - binding 'CREATE_DOCUMENT' to parameter: 2
00:28:12,296 DEBUG - binding '1' to parameter: 1
00:28:12,296 DEBUG - binding 'MODIFY_MY_USER_DETAILS' to parameter: 2
00:28:12,296 DEBUG - binding '1' to parameter: 1
00:28:12,296 DEBUG - binding 'VIEW_DOCUMENT' to parameter: 2
00:28:12,296 DEBUG - binding '1' to parameter: 1
00:28:12,312 DEBUG - binding 'RETIRE_FOLDER' to parameter: 2
00:28:12,312 DEBUG - binding '1' to parameter: 1
00:28:12,312 DEBUG - binding 'RETIRE_MY_DOCUMENT' to parameter: 2
00:28:12,343 DEBUG - insert into SVD_ROLE (RoleName, Description, SystemRole, RoleId) values (?, ?, ?, ?)
00:28:12,343 DEBUG - binding 'Guest' to parameter: 1
00:28:12,343 DEBUG - binding 'Guest role for viewing documents only' to parameter: 2
00:28:12,343 DEBUG - binding 'false' to parameter: 3
00:28:12,343 DEBUG - binding '2' to parameter: 4
00:28:12,406 ERROR - GDS Exception. 335544347. validation error for column ROLEID, value "*** null ***"
00:28:12,406 ERROR - GDS Exception. 335544347. validation error for column ROLEID, value "*** null ***"
00:28:12,421 ERROR - Could not execute JDBC batch update
java.sql.BatchUpdateException: GDS Exception. 335544347. validation error for column ROLEID, value "*** null ***"
at org.firebirdsql.jdbc.AbstractPreparedStatement.executeBatch(AbstractPreparedStatement.java:578)
at com.mchange.v2.sql.filter.FilterPreparedStatement.executeBatch(FilterPreparedStatement.java:260)
at net.sf.hibernate.impl.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:54)
at net.sf.hibernate.impl.BatcherImpl.executeBatch(BatcherImpl.java:122)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2385)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2335)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2204)
at com.avalon.seaview.domain.Role.newRole(Role.java:185)
at com.avalon.seaview.domain.Role.createStandardRoles(Role.java:125)
[/code]