keeps / dbptk-developer

DBPTK Developer - library and command-line tool for execution of database preservation actions
http://www.database-preservation.com
GNU Lesser General Public License v3.0
43 stars 19 forks source link

MySql->PostgreSQL warning: org.postgresql.jdbc.TimestampUtils #577

Open BorisDomajnko opened 8 months ago

BorisDomajnko commented 8 months ago

WARNING: Illegal reflective access by org.postgresql.jdbc.TimestampUtils (file:/home/dbdipview/admin/siard/dbptk-app-2.10.4.jar) to field java.util.TimeZone.defaultTimeZone

Steps required to reproduce the bug:

  1. SIARD was created from MySQL database

  2. Verification OK: Number of requirements passed [27] Number of sub-requirements ok [72] Number of requirements failed [0] Number of errors [0] Number of warnings [93] Number of requirements skipped [16] Validation process finished the SIARD is valid.

  3. Upload SIARD to PostgreSQL Initializing database Importing SIARD version 2.1 WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.postgresql.jdbc.TimestampUtils (file:/home/dbdipview/admin/siard/dbptk-app-2.10.4.jar) to field java.util.TimeZone.defaultTimeZone WARNING: Please consider reporting this to the maintainers of org.postgresql.jdbc.TimestampUtils WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Target database already exists, reusing it. Obtained database structure Exporting database structure Exporting schema structure for schema IPRS_arh

MySQL_dbptk-app.log.txt dbptk-app.log.txt

luis100 commented 8 months ago

Related to this: https://github.com/pgjdbc/pgjdbc/issues/986 To fix itself by updating postgresql driver. Currently using a Java 7 compatible driver which is EOL. Should upgrade to the latest stable version.