严重: Servlet.service() for servlet action threw exception
java.lang.RuntimeException: file name '....' is too long ( > 100 bytes)
中间红色加粗的部分就是解决此问题的方式。
java.lang.RuntimeException: file name '....' is too long ( > 100 bytes)
at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.putArchiveEntry(TarArchiveOutputStream.java:187)
解决方式,查看commons-compress-1.3/apidocs/index.html,搜索
TarArchiveOutputStream
即可看到
Field Summary | |
---|---|
protected org.apache.commons.compress.archivers.tar.TarBuffer | buffer |
staticint | LONGFILE_ERROR Fail if a long file name is required in the archive. |
staticint | LONGFILE_GNU GNU tar extensions are used to store long file names in the archive. |
staticint | LONGFILE_TRUNCATE Long paths will be truncated in the archive. |
也可参考如下地址
http://www.coderanch.com/t/326804/java/java/make-Tar-java
Wanderer Sheriff Joined: Jan 30, 2000 Posts: 18641 |
posted 2005年2月28日 7:38
|