sap-commerce-tools / sanecleanup Goto Github PK
View Code? Open in Web Editor NEWSensible defaults for data retention and cleanup for SAP Commerce
License: Apache License 2.0
Sensible defaults for data retention and cleanup for SAP Commerce
License: Apache License 2.0
Server Startup on CCV2 environment failed with error as below:
Caused by: org.springframework.beans.FatalBeanException:
Context hybris Global Context Factory couldn't be created correctly due to, Error creating bean with name 'saneVersionRangeEvaluator' defined in
class path resource [sanecleanup-spring.xml]: Unexpected exception during bean creation; nested exception is
org.springframework.beans.factory.BeanExpressionException: Expression parsing failed;
**nested exception is java.lang.NumberFormatException: For input string: "1-e98b768-feature-HYB-cleanup-extension"**
Checked the build logs from CCV2 and below details might be useful to debug this:
############ BEGIN: Build metadata ############
build.version=2005.8-2005-2202.26-20220405.1-e98b768-feature-HYB-cleanup-extension
project.repository.revision=e98b768
project.repository.branch=feature-HYB-cleanup-extension
product.version=2005.8-2005-2202.26
############ END: Build metadata ############
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.
Hi Markus,
I would love to read your article that you reference multiple times, but the link no longer works.
Is the article available elsewhere, and can you update the links to point at the new url ?
Best regards
Anders Olsen
Getting below error with latest code i.e. 3.4.0 version. Version 3.3.0 was working fine.
Invalid content was found starting with element 'include'. One of '{key}' is expected.
We are using commerce cloud 2005.
Logs:
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:11:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:23:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:35:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:45:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:56:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:67:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:79:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:89:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:100:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:110:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:119:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:130:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:140:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:150:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:160:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:170:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:182:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:193:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
[schemavalidate] hybris/bin/custom/sanecleanup/resources/sanecleanup-items.xml:204:46: cvc-complex-type.2.4.a: Invalid content was found starting with element 'include'. One of '{key}' is expected.
BUILD FAILED
Hi Markus,
With commerce 2105.7 compilation of sanecleanup extension fails because CMSVersionModel._CMSVERSIONGCPROCESS2CMSVERSION doesnt exist anymore (relation CMSVersionGCProcess2CMSVersion does not exist anymore in cms2-items.xml).
ERROR in /hybris/bin/custom/xyz/sanecleanup/src/mpern/sap/cleanup/cms2/CMSVersionGCPerformable.java (at line 152)
ComposedTypeModel relationType = typeService.getComposedTypeForCode(CMSVersionModel._CMSVERSIONGCPROCESS2CMSVERSION);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_CMSVERSIONGCPROCESS2CMSVERSION cannot be resolved or is not a field
----------
1 problem (1 error)
Best Regards,
Joachim
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.