Re: java.lang.ClassFormatError: Invalid method Code length

"Al Gettier" <gettier-2DSCQl/[email protected]> Sun, 14 Jun 2015 11:48:17 -0400
Newsgroups gmane.comp.java.grinder.user
Organization GetTech Consulting, Inc
Message-ID <[email protected]>
Thanks Phil!

-----Original Message-----
From: Philip Aston [mailto:[email protected]] 
Sent: Sunday, June 14, 2015 9:23 AM
To: grinder-use
Subject: Re: [Grinder-use] java.lang.ClassFormatError: Invalid method Code
length


Its this issue: http://bugs.jython.org/issue527524

The work around is to break up large methods into smaller methods.

- Phil



On 13/06/15 20:00, Al Gettier wrote:
>
> Hello Everyone.
>
>  
>
> I have a large python test file, and I am getting the following in my 
> log.  I have extended my max heap size to 4gb, with no luck.  Is this
> because my test is too large?   Is there a work around?
>
>
> Thanks
>
>  
>
> Al
>
>  
>
>  
>
> 2015-06-13 14:18:03,107 INFO  Moving-1 : The Grinder version 3.11
>
> 2015-06-13 14:18:03,111 INFO  Moving-1 : Java(TM) SE Runtime 
> Environment 1.8.0_45-b15: Java HotSpot(TM) 64-Bit Server VM 
> (25.45-b02, mixed mode) on Windows 8.1 amd64 6.3
>
> 2015-06-13 14:18:03,114 INFO  Moving-1 : time zone is EDT (-0400)
>
> 2015-06-13 14:18:03,190 INFO  Moving-1 : worker process 1 of agent 
> number 0
>
> 2015-06-13 14:18:03,348 INFO  Moving-1 : instrumentation agents: byte 
> code transforming instrumenter for Jython 2.5; byte code transforming 
> instrumenter for Java
>
> 2015-06-13 14:18:05,480 ERROR Moving-1 : aborting process - Java 
> exception initialising test script
>
> net.grinder.scriptengine.jython.JythonScriptExecutionException: Java 
> exception initialising test script
>
> java.lang.ClassFormatError: Invalid method Code length 70655 in class 
> file org/python/pycode/_pyx1
>
>                at java.lang.ClassLoader.defineClass1(Native Method) 
> ~[na:1.8.0_45]
>
>                at
> java.lang.ClassLoader.defineClass(ClassLoader.java:760) ~[na:1.8.0_45]
>
>                at
> org.python.core.BytecodeLoader$Loader.loadClassFromBytes(BytecodeLoade
> r.java:119)
> ~[jython.jar:na]
>
>                at
> org.python.core.BytecodeLoader.makeClass(BytecodeLoader.java:37)
> ~[jython.jar:na]
>
>                at
> org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java:67)
> ~[jython.jar:na]
>
>                at
> org.python.compiler.LegacyCompiler$LazyLegacyBundle.loadCode(LegacyCom
> piler.java:43)
> ~[jython.jar:na]
>
>                at
> org.python.core.CompilerFacade.compile(CompilerFacade.java:34)
> ~[jython.jar:na]
>
>                at org.python.core.Py.compile_flags(Py.java:1717)
> ~[jython.jar:na]
>
>                at org.python.core.Py.compile_flags(Py.java:1722)
> ~[jython.jar:na]
>
>                at org.python.core.Py.compile_flags(Py.java:1732)
> ~[jython.jar:na]
>
>                at
> org.python.core.__builtin__.execfile_flags(__builtin__.java:514)
> ~[jython.jar:na]
>
>                at
> org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225)
> ~[jython.jar:na]
>
>                at
> net.grinder.scriptengine.jython.JythonScriptEngine.<init>(JythonScript
> Engine.java:129)
> ~[grinder-core-3.11.jar:na]
>
>                at
> net.grinder.scriptengine.jython.JythonScriptEngineService.createScript
> Engine(JythonScriptEngineService.java:102)
> ~[grinder-core-3.11.jar:na]
>
>                at
> net.grinder.engine.process.ScriptEngineContainer.getScriptEngine(Scrip
> tEngineContainer.java:81)
> ~[grinder-core-3.11.jar:na]
>
>                at
> net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:404)
> ~[grinder-core-3.11.jar:na]
>
>                at
> net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEn
> tryPoint.java:86)
> [grinder-core-3.11.jar:na]
>
>                at
> net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessE
> ntryPoint.java:59)
> [grinder-core-3.11.jar:na]
>
>
>
> ----------------------------------------------------------------------
> --------
>
>
> _______________________________________________
> grinder-use mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/grinder-use


----------------------------------------------------------------------------
--
_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use


------------------------------------------------------------------------------