Ppt保存报这个错误,是什么原因啊

使用的是aspose-slides-21.1-jdk16.jar,ppt保存报这个错误,是什么原因啊
5ac7b43179763d2cca2250f30bf797c.png (10.2 KB)

File file = new File(path);
FileInputStream fileInputStream = new FileInputStream(file);
byte[] fileContent1 = new byte[(int) file.length()];
fileInputStream.read(fileContent1);
fileInputStream.close();
inputStream = new ByteArrayInputStream(fileContent1);
presentation = new Presentation(inputStream);
ByteArrayOutputStream bAOutputStream = new ByteArrayOutputStream();
presentation.save(bAOutputStream, SaveFormat.Pptx);

demo.zip (42.0 KB)

@SalesDhorde,
感谢您联系支持。

使用 Aspose.Slides for Java 21.1 时,我无法重现您描述的错误。请仔细检查问题。如果问题仍然存在,请提供以下额外信息:

  • 运行代码的操作系统版本
  • 您应用项目中使用的 JDK 目标版本

能通过报错内容分析出啥原因吗?因为我也不清楚是什么原因导致,该怎么解决

@SalesDhorde,
我们可以做到这一点。您能否以文本形式分享错误跟踪,而不是您在第一条消息中提供的截图?

java.lang.NullPointerException: null
at com.aspose.slides.internal.mv.class.do(Unknown Source)
at com.aspose.slides.internal.mv.class.new(Unknown Source)
at com.aspose.slides.internal.mv.class.for(Unknown Source)
at com.aspose.slides.internal.mv.class.do(Unknown Source)
at com.aspose.slides.internal.m4.for.do(Unknown Source)
at com.aspose.slides.internal.fm.this.if(Unknown Source)
at com.aspose.slides.internal.fm.this.case(Unknown Source)
at com.aspose.slides.internal.fm.long.do(Unknown Source)
at com.aspose.slides.internal.fm.long.(Unknown Source)
at com.aspose.slides.internal.fm.long.(Unknown Source)
at com.aspose.slides.internal.fm.long.(Unknown Source)
at com.aspose.slides.internal.oq.public.do(Unknown Source)
at com.aspose.slides.o4.do(Unknown Source)
at com.aspose.slides.o4.do(Unknown Source)
at com.aspose.slides.o4.do(Unknown Source)
at com.aspose.slides.ano.do(Unknown Source)
at com.aspose.slides.oi.do(Unknown Source)
at com.aspose.slides.ln.do(Unknown Source)
at com.aspose.slides.o0.do(Unknown Source)
at com.aspose.slides.ape.int(Unknown Source)
at com.aspose.slides.ape.boolean(Unknown Source)
at com.aspose.slides.db.do(Unknown Source)
at com.aspose.slides.BaseSlide.do(Unknown Source)
at com.aspose.slides.Slide.do(Unknown Source)
at com.aspose.slides.Slide.do(Unknown Source)
at com.aspose.slides.Slide.do(Unknown Source)
at com.aspose.slides.af6.do(Unknown Source)
at com.aspose.slides.af6.do(Unknown Source)
at com.aspose.slides.Presentation.do(Unknown Source)
at com.aspose.slides.Presentation.do(Unknown Source)
at com.aspose.slides.Presentation.save(Unknown Source)
at com.inspur.gs.ba.docplugin.ppt.AsposePPT.saveDocument(AsposePPT.java:80)

@SalesDhorde,
谢谢您的补充信息。

我们在我们的内部问题跟踪系统中开启了以下新工单,并将根据Free Support Policies中提到的条款交付其修复。

Issue ID(s): SLIDESJAVA-39529

你可以获得 Paid Support Services,如果你需要优先支持,以及直接访问我们的付费支持管理团队。

@SalesDhorde,
我们的开发人员也使用 21.1 版本检查了您的代码示例,但没有发现错误。问题可能出在其他文件或环境中。您能否提供项目并描述一下环境?

springboot框架
产品还在公司开发中

错误都是乱码,根本无法分析,是否可以提供个能打印可分析的详细日志的包,方便分析原因

@SalesDhorde,
很遗憾,我们目前没有足够的信息来帮助您。我们需要所有必要的细节来重现错误并进行原因分析。