on 2017 Aug 22 11:57 AM
Is there documentation available in Hybris on how to remove the deprecated Print Extensions.
I tried removing the extensions manually (starting point as removing it from localextentions.xml and started getting the exceptions as below
INFO | jvm 1 | main | 2017/06/29 22:53:55.931 | ERROR [hybrisHTTP5] (000000RS-ImpEx-Import) [ImpExImportJob] line 3 at main script: java.lang.ClassNotFoundException: de.hybris.platform.printcockpit.constraints.PrintPageGridAndMode INFO | jvm 1 | main | 2017/06/29 22:53:55.931 | de.hybris.platform.impex.jalo.ImpExException: line 3 at main script: java.lang.ClassNotFoundException: de.hybris.platform.printcockpit.constraints.PrintPageGridAndMode
Its a pain going over each and every entry trying to clean up manually to rid of all Print Extension related data.
Please let know if there any documentation or migration plan available.
If anyone has done it can you please let me know the procedure you followed to achieve the same.
Regards Ajith
Request clarification before answering.
By coincidence I ran into this same problem yesterday so what I did is still fresh in my mind. I started off by just using the regular 'Cleanup Type System' in the hac but like you found that this type remained.
I checked to make sure there were no instances
select count(*) from {PrintPageGridAndModeConstraint}
(you'd delete them at this point if there were)
and then ran these queries directly against the db and restarted Hybris.
delete from composedtypes where internalcode='PrintPageGridAndModeConstraint'
delete from attributedescriptors where ownerpkstring not in (select pk from composedtypes);
delete from attributedescriptorslp where itempk not in (select pk from attributedescriptors);
I was doing this against a dev db rather than in production so I'm not so worried about deleting things from core tables but you'd probably want to check what is going to be deleted first!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the steps, This worked for me in dev as well. We were not utilizing the print modules, Just that it was present it in local extension file.
I tried another option as well to yours, given below
Instead of individual delete scripts I used REMOVE COMPOSEDTYPE;CODE[unique=true] ;PrintPageGridAndModeConstraint
Deployed the codebase with the print extensions removed
clean up type system from HAC --> Maintenance --> CleanUp
This also worked for me the same way. The start up and update the error was no longer coming up.
Thanks Andrew will try out the steps you have mentioned. Even for me its not planned for Production, i am trying it out in my dev environment to document the process.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.