sap-commerce-tools / sanecleanup

Sensible defaults for data retention and cleanup for SAP Commerce
Apache License 2.0
25 stars 16 forks source link

excessive-platform-types.groovy execution fails in Groovy Console #2

Closed praveshgupta1993 closed 2 years ago

praveshgupta1993 commented 2 years ago

I am running Hybris v1811 I included sanecleanup extension and as per guided, I ran excessive-platform-types.groovy prior to running system update for hook execution for resources import. The groovy did not ran successfully and following stacktrace was shown:

Script execution has failed [reason: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'de.hybris.platform.servicelayer.search.impl.DefaultFlexibleSearchService$$EnhancerBySpringCGLIB$$32fc0d45@252d3db9' with class 'de.hybris.platform.servicelayer.search.impl.DefaultFlexibleSearchService$$EnhancerBySpringCGLIB$$32fc0d45' to class 'groovy.lang.Reference']

The other mentioned groovy check-audit.groovy ran successfully.

praveshgupta1993 commented 2 years ago

The issue is somewhere in below part: image

praveshgupta1993 commented 2 years ago

Fix was to remove

def @Field

from field names.

mpern commented 2 years ago

Thank you for reporting! I will add a comment to the script.

FYI, 1811 is EOL

mpern commented 2 years ago

closed - stale 1811 is not maintained anymore