Caused by: java.lang.ClassFormatError: Extra bytes at the end of class file
来源:互联网 发布:成都java培训学校 编辑:程序博客网 时间:2024/06/05 21:53
场景:为了进行升级,通过java流根据.class的文件路径进行补丁文件的拷贝。
将拷贝后的文件,升级到正式环境,报Caused by: java.lang.ClassFormatError: Extra bytes at the end of class file的错误。
解决方法:
最终发现原文件与拷贝后补丁包里面的文件大小不一样,在拷贝时改成一次性读取1024byte,但是还是报错,最后改成一次
读取1byte,问题解决,我们平时拷贝其他类型的文件一次读取1024byte,但是拷贝.class的话一次读取1byte才能完美复制。
0 0
- Caused by: java.lang.ClassFormatError: Extra bytes at the end of class file
- java.lang.ClassFormatError: Extra bytes at the end of class file
- XML文件要有根标签(Extra content at the end of the document in file 错误
- Caused by: org.hibernate.TypeMismatchException: Provided id of the wrong type. Expected: class java.lang.Integer, got class [Lja
- sed extra characters at the end of p command
- XML文件要有根标签(Extra content at the end of the document in file 错误)
- java.lang.ClassFormatError unrecognized class file version 解决办法
- 有关java.lang.ClassFormatError: Truncated class file错误
- java.lang.ClassFormatError unrecognized class file version 解决办法
- Caused by: java.lang.IncompatibleClassChangeError: class
- Caused by: java.lang.IncompatibleClassChangeError: Implementing class
- Caused by: java.lang.IllegalAccessException: Class ognl.OgnlRuntime can not access a member of class
- Caused by: java.lang.IllegalAccessException: Class ognl.OgnlRuntime can not access a member of class
- Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack ava
- extra tokens at end of #ifdef directive
- Caused by: java.lang.IllegalArgumentException: the bind value at index 1 is null
- Caused by: java.lang.IllegalArgumentException: the bind value at index 1 is null
- Caused by: java.lang.IllegalArgumentException: the bind value at index 1 is null
- http协议和https协议
- c++中vector的用法详解
- 谈一谈pc端布局方式
- c++程序辨别系统是32位or64位
- zipline的包结构
- Caused by: java.lang.ClassFormatError: Extra bytes at the end of class file
- 9.环境搭建-MySQL及客户端安装
- RTMP学习(十二)rtmpdump源码阅读(6)数据接收
- Redux框架中action控制用户管理
- 一个想法:成立草根技术联盟对开发人员进行技术定级解决企业员工招聘难问题!
- js刷新页面方法
- Android 全局异常捕获之CrashHandler
- 虚幻4 命令列表
- POJ 1651 (最优矩阵链乘)