Skip to Content
2
Jan 17, 2018 at 01:30 PM

Recently we have migrated from hybris 6.2.12 to 6.2.15, after migration mail attachments got failing,due to java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DEREncodable.

335 Views

In Hybris 6.2.12 platform using bcprov-jdk15-1.46.jar file but in hybris 6.2.15 platform using bcprov-jdk15on-1.55.jar file(DEREncodable calss not available).

Please help me in this.

Error stack: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DEREncodable at com.lowagie.text.pdf.PdfEncryption.(Unknown Source) ~[itext-2.1.7.jar:?] at com.lowagie.text.pdf.PdfWriter.setEncryption(Unknown Source) ~[itext-2.1.7.jar:?] at com.lowagie.text.pdf.PdfWriter.setEncryption(Unknown Source) ~[itext-2.1.7.jar:?] at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:480) ~[jasperreports-4.0.2.jar:4.0.2] at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:385) ~[jasperreports-4.0.2.jar:4.0.2] at com. .process.email.context.DeliverySentEmailContext.init(DeliverySentEmailContext.java:207) ~[classes/:?] at .process.email.context.DeliverySentEmailContext.init(DeliverySentEmailContext.java:1) ~[classes/:?] at de.hybris.platform.acceleratorservices.process.email.context.impl.DefaultEmailContextFactory.create(DefaultEmailContextFactory.java:66) ~[classes/:?] at de.hybris.platform.acceleratorservices.email.impl.DefaultEmailGenerationService.generate(DefaultEmailGenerationService.java:65) ~[classes/:?] at de.hybris.platform.acceleratorservices.process.email.actions.GenerateEmailAction.executeAction(GenerateEmailAction.java:101) ~[classes/:?] at de.hybris.platform.processengine.action.AbstractSimpleDecisionAction.execute(AbstractSimpleDecisionAction.java:51) ~[processingserver.jar:?] at de.hybris.platform.processengine.definition.ActionNode.execute(ActionNode.java:164) ~[processingserver.jar:?] at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$3(ProcessengineTaskRunner.java:170) ~[processingserver.jar:?] at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$8(ProcessengineTaskRunner.java:561) ~[processingserver.jar:?] at de.hybris.platform.processengine.process.ProcessengineTaskRunner.runProcessTask(ProcessengineTaskRunner.java:172) ~[processingserver.jar:?] at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$2(ProcessengineTaskRunner.java:113) ~[processingserver.jar:?] at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$9(ProcessengineTaskRunner.java:534) ~[processingserver.jar:?] at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) ~[spring-tx-4.3.11.RELEASE.jar:4.3.11.RELEASE] at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$7(ProcessengineTaskRunner.java:531) ~[processingserver.jar:?] at de.hybris.platform.processengine.process.ProcessengineTaskRunner.runProcessTaskInTransaction(ProcessengineTaskRunner.java:113) ~[processingserver.jar:?] at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$1(ProcessengineTaskRunner.java:103) ~[processingserver.jar:?] at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$6(ProcessengineTaskRunner.java:502) ~[processingserver.jar:?] at de.hybris.platform.processengine.process.ProcessengineTaskRunner.doRun(ProcessengineTaskRunner.java:103) ~[processingserver.jar:?] at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$0(ProcessengineTaskRunner.java:91) ~[processingserver.jar:?] at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$5(ProcessengineTaskRunner.java:466) ~[processingserver.jar:?] at de.hybris.platform.processengine.process.ProcessengineTaskRunner.run(ProcessengineTaskRunner.java:91) ~[processingserver.jar:?] at de.hybris.platform.processengine.process.ProcessengineTaskRunner.run(ProcessengineTaskRunner.java:1) ~[processingserver.jar:?] at de.hybris.platform.processengine.task.impl.ProcessengineTaskExecutionStrategy.run(ProcessengineTaskExecutionStrategy.java:31) ~[processingserver.jar:?] at de.hybris.platform.task.impl.DefaultTaskService.processTask(DefaultTaskService.java:1589) [processingserver.jar:?] at de.hybris.platform.task.impl.DefaultTaskService.process(DefaultTaskService.java:1493) [processingserver.jar:?] at de.hybris.platform.task.impl.DefaultTaskService.processInTenant(DefaultTaskService.java:1462) [processingserver.jar:?] at de.hybris.platform.task.impl.DefaultTaskService$5.run(DefaultTaskService.java:1341) [processingserver.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_151] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_151] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151] Caused by: java.lang.ClassNotFoundException: org.bouncycastle.asn1.DEREncodable at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_151] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_151] at de.hybris.bootstrap.loader.YURLClassLoader.loadRegisterAndResolveClass(YURLClassLoader.java:86) ~[ytomcat.jar:?] at de.hybris.bootstrap.loader.YURLClassLoader.loadClass(YURLClassLoader.java:73) ~[ytomcat.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_151]

Thanks, Saikumar G