sxssf-workbook-createSheet-fails-on-linux-envirnment(OEL 8.5),Solaris 11.4

发布于 2025-01-27 22:25:02 字数 678 浏览 3 评论 0原文

sxssfworkbook workbook.createsheet()方法在Linux-Envirnment(OEL 8.5)上失败,而不会丢弃任何有意义的错误(只是悬挂)。

奇怪的是,XSSFWorkBook createSheet类上的相同方法效果很好。以下是代码的片段。以前有人经历过类似的问题吗?

final SXSSFWorkbook workbook = new SXSSFWorkbook(new XSSFWorkbook(), 100, true, true);
workbook.setCompressTempFiles(true);
Sheet sheet = workbook.createSheet("Sheet 1"); //this method fails

final XSSFWorkbook workbook = new XSSFWorkbook();
Sheet sheet = workbook.createSheet("Sheet 1"); // this works fine

我们正在使用Apache POI 4.1.2版本。同样的代码在Windows环境中正常工作。验证了下面的字体,它们已经安装。任何想法在Linux环境中缺少什么,请告诉我。 Linux中的任何指针(或)我们可以获取更多详细信息的任何日志,请分享。

sudo apt-get更新 sudo apt-get安装fontconfig

SXSSFWorkbook workbook.createSheet() method fails on a linux-environment(OEL 8.5) without throwing any kind of meaningful error (it's just hanging).

Strangely, the same method on the XSSFWorkbook createSheet class works fine. Below are the snippets of code. Has anyone experienced a similar issue before?

final SXSSFWorkbook workbook = new SXSSFWorkbook(new XSSFWorkbook(), 100, true, true);
workbook.setCompressTempFiles(true);
Sheet sheet = workbook.createSheet("Sheet 1"); //this method fails

final XSSFWorkbook workbook = new XSSFWorkbook();
Sheet sheet = workbook.createSheet("Sheet 1"); // this works fine

we are using the apache POI 4.1.2 version. This same code is working fine in windows environment. verified the fonts below, they are already installed. Any idea what is missing in Linux environment please let me know. Any pointers (OR) any logs in the Linux where we can get more details, please share.

sudo apt-get update
sudo apt-get install fontconfig

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

剩余の解释 2025-02-03 22:25:02

设置-djava.io.tmpdir =/u01/tmp -djava.awt.headless = true to to t t t t y to to to to weblogic启动参数已解决此问题。

请确保给 /u01 /tmp dir提供完整的权限。

Setting the -Djava.io.tmpdir=/u01/tmp -Djava.awt.headless=true to the weblogic start params fixed this issue.

Please make sure to give full permissions to the /u01/tmp dir.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文