FileNotFoundException(文件太大) [英] FileNotFoundException (File too large)

查看:213
本文介绍了FileNotFoundException(文件太大)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试下载文件时出现此异常

I am getting this exception when trying to download a file

Caused by: java.io.FileNotFoundException: /repository/PWWVFSYWDW0STLHYVEEKHMYBXZTTETGROCQ4FGdsadadaXR1407709207964905350810526.jpg (File too large)
at java.io.FileOutputStream.open(Native Method)

很明显该文件存在.除此之外,同一程序在我的PC上也可以正常工作,但是服务器(Unix)存在问题

It is clear that file the exists. In addition to that, the same program works properly on my PC, but there is a problem with the server, which is Unix

任何想法可能是什么原因造成的?

Any ideas what might be causing this?

推荐答案

当我尝试将文件写入RedHat服务器中已经具有最大文件数量的目录时,收到此消息.我将文件细分为子目录,但错误没有再次出现.

I received this message when trying to write a file to a directory on a RedHat server that already had the maximum number of files in it. I subdivided my files into subdirectories and the error did not reappear.

这篇关于FileNotFoundException(文件太大)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆