cancel
Showing results for 
Search instead for 
Did you mean: 

Issues while downgrading from 2211 to 2205

nasesantosh
Discoverer
0 Kudos

I've initially upgraded my Platform version from 2205 to 2211 and later on when I'm trying to downgrade from 2211 to 2205, I'm getting below Error

java.lang.IllegalArgumentException: extension 'alluicommons' not found within de.hybris.bootstrap.typesystem.YTypeSystem@1ff81fcb at de.hybris.bootstrap.xml.XMLContentHandler.endElement(XMLContentHandler.java:203) at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:618) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1728) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2899) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:542) at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:889) at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:825) at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1224) at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637) at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:326) at de.hybris.bootstrap.xml.Parser.parse(Parser.java:291) at de.hybris.bootstrap.xml.Parser.parse(Parser.java:275) at de.hybris.bootstrap.typesystem.xml.HybrisTypeSystemParser.parseExtensionSystem(HybrisTypeSystemParser.java:115) at de.hybris.bootstrap.typesystem.YTypeSystemSource.readTypeSystem(YTypeSystemSource.java:102) ... 40 more Caused by: de.hybris.bootstrap.xml.UnknownParseError: error parsing system backoffice at lines [151-182] : extension 'alluicommons' not found within de.hybris.bootstrap.typesystem.YTypeSystem@1ff81fcb

View Entire Topic
GiuseppeRamella
Associate
Associate
0 Kudos

Hello,

If you search for alluicommons in Typecodes and change between patch versions, you can see that extension was introduced in 2211.

As can be seen in Extensions and AddOns, extension alluicommons is Available Since Release 2211.

As described in Upgrading Backoffice Framework from 2205 to 2211 > Moved Themes Deployment, Themes deployment with type code 6404 is moved from backoffice extension to alluicommons extension.

In 2211, the new extension alluicommons contains the definition of typecode 6404 in hybris/bin/modules/platform/alluicommons/resources/alluicommons-items.xml:

<items     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="items.xsd">
    <itemtypes>
        <itemtype code="Theme"
                  extends="GenericItem"
                  autocreate="true"
                  generate="true"
                  jaloclass="com.hybris.backoffice.jalo.Theme">
            <deployment table="Themes" typecode="6404"/>
            ...

In 2205, extension backoffice contains the definition of typecode 6404 in hybris/bin/modules/backoffice-framework/backoffice/resources/backoffice-items.xml contains:

        ...
       <itemtype code="Theme"
                  extends="GenericItem"
                  autocreate="true"
                  generate="true"
                  jaloclass="com.hybris.backoffice.jalo.Theme">
            <deployment table="Themes" typecode="6404"/>
            ...

In 2105, typecode 6404 does not exist, because Themes were introduced in 2205.

If 2211 is running, you can see:

  • in HAC > Maintenance > Deployments (/hac/maintain/deployments) > Types with deployment, if you search for alluicommons, that there is a Typecode 6404
  • in HAC > Console > FlexibleSearch (/hac/console/flexsearch) > SQL Query, if you run SELECT * FROM ydeployments WHERE ExtensionName = 'alluicommons', that there is a similar entry
  • in HAC > Console > FlexibleSearch (/hac/console/flexsearch) > SQL Query, if you run SELECT * FROM ydeployments WHERE Typecode = '6404', that there is only 1 entry

To solve your issue, deploy with (Platform Update Mode) No migration and (Deployment Mode) Recreate.

Regards,
Giuseppe