-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.UnsupportedOperationException: Can not anonymize objects of type class java.sql.Timestamp #144
Comments
I see that a DateTime anonymizer is indeed missing. There is a java.sql.Date anonymizer, that may be a quickfix while the TimeStampAnonymizer is built. Can you try to do this in your configuration and see what it does:
Otherwise I'll have to build a TimeStampAnonymizer for you (I think that is a good addition anyway) |
Below is the table definition:
And below is my config file:
But I still get the error. Besides, since the column datatype is DATE, why is the error complaining of a TIMESTAMP? Detailed Error is shown below:
Thanks for your help. |
I think I found a possible explanation for this behavior on https://www.oracle.com/database/technologies/faq-jdbc.html (excuse the long copy paste):
java.sql.TimeStamp extenda java.util.Date (note the cross-package extend). In Anonimatron I register the Date anonymizer as:
But there is no mapping for TimeStamp. Adding the same mapping for TimeStamp should work according to the text above, and would then be transparent. I could also create a specific TimeStamp Anonymizer, this is functionally slightly different and might result in a Date and a TimeStamp column to not be anonymized the same way. Meanwhile, what you could try according to the Oracle docs is use a different driver version or connection parameters for now. |
Many thanks for your assistance, but how do I use a different driver version? How do I know the version currently bundled with anonimatron? |
Sorry to bother you again, but I got below error whiles doing a dry run on a table with 1.3 million rows. After about 5 hours I got the error below:
Is there a config change I can make to resolve this? FULL ERROR
Thanks |
Anonimatron version: 1.15
Operating system and version: Windows 10 Pro 20H2
Java runtime (
java -version
):1.8.0_291
Executed commands or actions:
anonimatron.bat -config <config_file> -synonyms <synonym_file>
Expected outcome or behavior:
Date field should get anonymized. Field is in an oracle database with datatype DATE
Actual outcome or behavior:
java.lang.UnsupportedOperationException: Can not anonymize objects of type class java.sql.Timestamp
The text was updated successfully, but these errors were encountered: