作者:三面D夏娃所_729 | 来源:互联网 | 2023-09-23 16:05
情形 1:
android.system.ErrnoException
open failed: ENOENT (No such file or directory)
解析原始
1 java.lang.RuntimeException:file not found
2 com.upyun.library.utils.UpYunUtils.java.lang.String md5Hex(java.io.File)(SourceFile:98)
3 ......
4 android.system.ErrnoException:open failed: ENOENT (No such file or directory)
5 libcore.io.Posix.open(Native Method)
6 libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
7 libcore.io.IoBridge.open(IoBridge.java:438)
8 java.io.FileInputStream.(FileInputStream.java:76)
9 com.upyun.library.utils.UpYunUtils.java.lang.String md5Hex(java.io.File)(SourceFile:84)
10 com.upyun.library.common.BlockUploader.void run()(SourceFile:68)
11 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
12 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
13 java.lang.Thread.run(Thread.java:818)
情形2:
java.lang.RuntimeException:file not found
2 com.upyun.library.utils.UpYunUtils.java.lang.String md5Hex(java.io.File)(SourceFile:98)
3 ......
4 java.io.FileNotFoundException:/storage/emulated/0/bluetooth/19979郑阳阳-邢欣欣-4.20.mp4 (No such file or directory)
5 java.io.FileInputStream.open(Native Method)
6 java.io.FileInputStream.(FileInputStream.java:146)
7 com.upyun.library.utils.UpYunUtils.java.lang.String md5Hex(java.io.File)(SourceFile:84)
8 com.upyun.library.common.BlockUploader.void run()(SourceFile:68)
9 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
10 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
11 java.lang.Thread.run(Thread.java:776)
情形3:
java.lang.NullPointerException
input == null
解析原始
1 java.security.MessageDigest.update(MessageDigest.java:221)
2 java.security.MessageDigest.digest(MessageDigest.java:277)
3 com.upyun.library.utils.UpYunUtils.java.lang.String md5(byte[])(SourceFile:52)
4 com.upyun.library.common.BlockUploader.void blockUpload(int)(SourceFile:107)
5 com.upyun.library.common.BlockUploader.void initRequest()(SourceFile:178)
6 com.upyun.library.common.BlockUploader.void run()(SourceFile:88)
7 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
8 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
9 java.lang.Thread.run(Thread.java:818)