Error java. Lang. classformaterror: Invalid method code length solution

Source: Internet
Author: User

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.

 

 

That is to say, the maximum length of a Java method is 65535, and the name of a Python script compiled by Jython exceeds this length, so compilation is not allowed.

 

 

Solution:

 

Modify the length of the method.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.