This appears to be a non-Postgresql related issue, but more likely it's a problem with the migration tool you are using (maybe JDBC-related).
java.lang.ClassCastException: org.postgresql.jdbc.PgConnection cannot be cast to org.postgresql.jdbc2.AbstractJdbc2Connection
Thanks and Regards,Rakesh Mamidala