While compressing PDF in our product we are getting Exception occasionally. We Don’t know to figure out the reason. Can you please find the reason and provide a solution
java.lang.NullPointerException at sun.java2d.cmm.lcms.LCMS.getProfileSize(LCMS.java:67) at java.awt.color.ICC_Profile.getData(ICC_Profile.java:1316) at com.aspose.pdf.internal.l70h.l1h.lf(Unknown Source) at com.aspose.pdf.internal.l74v.lf.lj(Unknown Source) at com.aspose.pdf.internal.l74v.lf.lf(Unknown Source) at com.aspose.pdf.internal.l74v.lf.lI(Unknown Source) at com.aspose.pdf.internal.l74h.lf.lI(Unknown Source) at com.aspose.pdf.internal.l74h.lf.getNumImages(Unknown Source) at com.aspose.pdf.internal.l69f.lI.lj(Unknown Source) at com.aspose.pdf.internal.l69f.lI.lf(Unknown Source) at com.aspose.pdf.internal.l69f.lI.lI(Unknown Source) at com.aspose.pdf.internal.l69f.lI.ld(Unknown Source) at com.aspose.pdf.internal.l66p.lf.lI(Unknown Source) at com.aspose.pdf.internal.l66p.lf.(Unknown Source) at com.aspose.pdf.internal.l66p.lf.(Unknown Source) at com.aspose.pdf.internal.l3if.ld.l0f(Unknown Source) at com.aspose.pdf.internal.l5t.lI.lI(Unknown Source) at com.aspose.pdf.internal.l3if.ld.lI(Unknown Source) at com.aspose.pdf.XImage.saveInternal(Unknown Source) at com.aspose.pdf.XImage.lI(Unknown Source) at com.aspose.pdf.InternalHelper.lI(Unknown Source) at com.aspose.pdf.internal.l10n.lj.lI(Unknown Source) at com.aspose.pdf.internal.l10n.lj.lI(Unknown Source) at com.aspose.pdf.internal.l10n.lb.lI(Unknown Source) at com.aspose.pdf.ADocument.optimizeResources(Unknown Source) at com.aspose.pdf.Document.optimizeResources(Unknown Source) at com.zoho.survey.server.utils.GeneratePdf.compressPdf(GeneratePdf.java:598) at com.zoho.survey.server.utils.GeneratePdf.convertHtmlUsingChrome(GeneratePdf.java:355) at com.zoho.survey.server.utils.GeneratePdf.checkVersionAndGenratePDF(GeneratePdf.java:224) at com.zoho.survey.server.utils.GeneratePdf.convertIntoPdf(GeneratePdf.java:560) at com.zoho.survey.server.utils.GeneratePdf.convertIntoPdf(GeneratePdf.java:424) at com.zoho.survey.server.utils.ExportUtil.exportIndividualRespondentResponseAsPdf(ExportUtil.java:2585) at com.zoho.survey.server.utils.ExportUtil.exportIndividualRespondentResponseAsPdf(ExportUtil.java:2571) at com.zoho.survey.server.message.receiver.ExportAllResponseHandler.exportIndividualResponse(ExportAllResponseHandler.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.zoho.survey.server.distribution.kafka.SurveyMessageListener.processMessageJson(SurveyMessageListener.java:95) at com.zoho.survey.server.distribution.kafka.SurveyMessageListener.processMessage(SurveyMessageListener.java:36) at com.zoho.mqueue.consumer.SingleMessageProcessor.callListener(SingleMessageProcessor.java:170) at com.zoho.mqueue.consumer.SingleMessageProcessor.instrumentAndProcess(SingleMessageProcessor.java:157) at com.zoho.mqueue.consumer.SingleMessageProcessor.processRecord(SingleMessageProcessor.java:136) at com.zoho.mqueue.consumer.SingleMessageProcessor.run(SingleMessageProcessor.java:88) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750)