ioexception

    0热度

    1回答

    研究了有关此异常的许多主题,但没有运气。我的简单代码: string t = Path.GetTempFileName(); t = t.Remove(t.Length - 11, 11); var q = Directory.EnumerateFiles(t, "tmp????.tmp"); var f = q.ToList(); f

    0热度

    2回答

    在此示例中从不抛出IO异常。 public static void main(String[] args){ double r = 0; System.out.println("Please enter radius of a circle"); try{ Scanner sc = new Scanner(System.in); r = sc.

    0热度

    2回答

    我想连接到代理服务器,但没有提供任何凭据,所以我可以捕获407并告诉用户他们需要提供creds。 我无法捕捉到这个错误为我的生活。 Socket socket = null; InetSocketAddress addr = new InetSocketAddress(host, port); Proxy proxy = new Proxy(Proxy.Type.HTTP, a

    0热度

    1回答

    try { fis = context.openFileInput("Stores"); ObjectInputStream oi = new ObjectInputStream(fis); toReturn = (ArrayList<Store>) oi.readObject(); oi.close(); } catch (FileNotFoundExc

    0热度

    1回答

    我试图了解HttpURLConnection的行为要求,到目前为止,我才知道所有关于连接超时,读超时等 现在可以说,我已经成功地打开URL连接,还得到了outputStream来写入数据。 现在我试图在服务器上写入数据,out.write(requestByte); 因此,如果我会在线out.write(requestByte)得到IOException,那么它表示什么? 请求是否到达服务器?

    1热度

    1回答

    我试图通过SSH隧道forwardedport创建远程MySql连接。 sshClient连接正常。 ForwardedPort开始OK。 当我尝试使用的MySqlConnection连接它抛出与消息System.Net.IO.IOException“失败握手由于意外的数据包格式” 端口即可100%肯定,因为其他的本机应用程序(如HeidiSQL)可以连接,如果我创建此端口与我的应用程序。 Pri

    -6热度

    1回答

    运行100% 我的Java progeam跑,如果我从编译器的NetBeans把运行它,如果我从文件管理器运行它,它会在DIST文件夹内的项目(100%程序有一个运行wav文件的按钮)按钮有一个catch ioexception如果我从编译器运行它的声音将运行放,如果我从dist文件夹运行它或移动然后运行它的任何路径的捕获​​,具有ioexception作为参数会优先使用audioSystem,并

    0热度

    1回答

    这一夜,我们有一个磁盘空间满的问题,今天我收到此错误在我的水槽日志: 22 Feb 2017 10:24:56,180 ERROR [pool-6-thread-1] (org.apache.flume.client.avro.ReliableSpoolingFileEventReader.openFile:504) - Exception opening file: /.../flume_spo

    -1热度

    1回答

    这是我的代码的方法: public class CameraFragment extends Fragment{ String mCurrentPhotoPath = ""; @Nullable @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedIns

    1热度

    2回答

    inputFileName = "2.txt"; outputFileName = "3.txt"; inputFile = new BufferedReader(new FileReader(inputFileName)); outputFile = new PrintWriter(new FileWriter(outputFileName)); St