错误 java.lang.ClassFormatError: Invalid method Code length 的解决办法
2010-11-23 17:39
871 查看
The short answer is that a function in your script is too long and is tripping over a Java limitation on the length of a method inherited by Jython. Java methods are limited to 65535 characters or less. You'll need to break the script up into smaller pieces. E.g.
也就是java方法的最大限制长度是 65535 , 而通过jython编译的python脚本的方法名称超过了这个长度,因此不能进行编译。
解决办法:
修改一下方法的长度吧。
也就是java方法的最大限制长度是 65535 , 而通过jython编译的python脚本的方法名称超过了这个长度,因此不能进行编译。
解决办法:
修改一下方法的长度吧。
相关文章推荐
- java.lang.ClassFormatError javax/persistence/PersistenceException 错误解决办法
- junit,powermock单元测试时问题java.lang.ClassFormatError: Invalid length nnn in LocalVariableTable in class
- 解决java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.robolectric.annotation.Config.application()
- java.lang.ClassFormatError: Unknown constant tag 0 in class file【解决办法】
- Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 错误的解决办法
- 该死的 java.lang.ClassFormatError: Illegal method name "<init>$" 错误
- java.lang.ClassFormatError unrecognized class file version 解决办法
- java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class
- java.lang.ClassFormatError解决办法
- J2ME(ALERT: java/lang/ClassFormatError: Bad version information.)错误的解决
- 基于Web的Kafka管理器工具之Kafka-manager启动时出现Exception in thread "main" java.lang.UnsupportedClassVersionError错误解决办法(图文详解)
- java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class
- java.lang.ClassFormatError: Unknown constant tag 0 in class file【解决办法】
- java.lang.ClassFormatError: Absent Code attribute in method
- Invalid layout of java.lang.String at value错误的解决办法
- hibernate 中createSQLQuery 聚合分组 java.lang.NumberFormatException: For input string:错误的一个解决办法
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- JNI调用native方法出现 java.lang.UnsatisfiedLinkError: XXXclass.XXXmethod()异常的解决办法
- kylin加载hive表错误:ERROR [http-bio-7070-exec-10] controller.TableController:189 : org/apache/hadoop/hive/conf/HiveConf java.lang.NoClassDefFoundError: org/apache/hadoop/hive/conf/HiveConf 解决办法
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法