gpt4 book ai didi

GWTP - 尝试写入镜像包时发生错误

转载 作者:行者123 更新时间:2023-12-02 09:18:32 26 4
gpt4 key购买 nike

我在尝试使用 ant- 构建 gwtp+mgwt 应用程序时遇到很多此类错误

 Preparing method tabBarMoreImage     [java]                   [ERROR] An error occurred while trying to write the image bundle.     [java] javax.imageio.IIOException: Can't create output stream!     [java]     at javax.imageio.ImageIO.write(ImageIO.java:1560)...  Preparing method tabBarMostRecentImage     [java]                   [ERROR] An error occurred while trying to write the image bundle.     [java] javax.imageio.IIOException: Can't create output stream!... [java] Caused by: javax.imageio.IIOException: Can't create cache file!     [java]     at javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397)     [java]     at javax.imageio.ImageIO.write(ImageIO.java:1558)     [java]     ... 33 more     [java] Caused by: java.io.IOException: Too many open files     [java]     at java.io.UnixFileSystem.createFileExclusively(Native Method)     [java]     at java.io.File.checkAndCreate(File.java:1704)     [java]     at java.io.File.createTempFile(File.java:1792)     [java]     at javax.imageio.stream.FileCacheImageOutputStream.(FileCacheImageOutputStream.java:71)     [java]     at com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInstance(OutputStreamImageOutputStreamSpi.java:50)     [java]     at javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393)     [java]     ... 34 more     [java]                Preparing method getButtonBarArrowDownImage     [java]                   [ERROR] An error occurred while trying to write the image bundle.     [java] javax.imageio.IIOException: Can't create output stream!     [java]     at javax.imageio.ImageIO.write(ImageIO.java:1560)     [java]     at com.google.gwt.resources.rg.ImageBundleBuilder.createImageBytes(ImageBundleBuilder.java:558)     [java]     at com.google.gwt.resources.rg.ImageBundleBuilder.toPng(ImageBundleBuilder.java:544)...

应用程序在开发模式下运行良好。有什么想法吗?

最佳答案

也许 GWT 编译器正在泄漏文件描述符(因此出现“打开文件过多”异常)。也许您所处的环境限制了每个用户打开文件的数量(这是您自己的计算机)?

使用 ulimit -a 检查所有用户限制。

您可以尝试使用 ulimit -Hn <number> 来增加打开文件限制。这至少应该可以帮助您诊断。

关于GWTP - 尝试写入镜像包时发生错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12116632/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com