I am using Ubuntu 9.10
jan@albotek:~/development/eclipse$ more /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=9.10 DISTRIB_CODENAME=karmic DISTRIB_DESCRIPTION="Ubuntu 9.10"I installed new eclipse 3.5.2, and inside eclipse used jdk 1.6.0.20 as default JRE, and jython 2.5.1 for my jython. Still I did not manage to get my grinder scripts with proxy working. The failure I was getting:
Java exception initialising test script test1.record(grinder.getLogger().output) File "/home/jan/development/workspace-grinder/Grinder1/src/HelloWorld3.py", line 7, in Caused by: net.grinder.script.NonInstrumentableTypeException: Failed to wrapIn my output log I was seeing:at net.grinder.engine.process.instrumenter.MasterInstrumenter.instrument(MasterInstrumenter.java:114) at net.grinder.engine.process.TestData.instrument(TestData.java:100) at net.grinder.script.Test.record(Test.java:114)
6/5/10 10:22:09 a.m. (process albotek-0): The Grinder version 3.4 6/5/10 10:22:09 a.m. (process albotek-0): null 1.5.0: GNU libgcj (4.4.1, GNU libgcj 4.4.1) on Linux i386 2.6.31-21-generic 6/5/10 10:22:09 a.m. (process albotek-0): time zone is GMT+02:00 (+0200) 6/5/10 10:22:21 a.m. (process albotek-0): worker process 0 6/5/10 10:22:21 a.m. (process albotek-0): Java VM does not support instrumentation, DCR unavailable 6/5/10 10:22:21 a.m. (process albotek-0): instrumentation agents: NO INSTRUMENTER COULD BE LOADED 6/5/10 10:22:21 a.m. (process albotek-0): executing "/home/jan/development/workspace-grinder/Grinder1/src/HelloWorld3.py" using Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)Apparently I was using the wrong java version. Although I set it explicitly inside eclipse, eclipse itself had been started with java from OS, and grinderstone is using that one for its execution. I made a small startup script for my eclipse:
export GDK_NATIVE_WINDOWS=true ./eclipse -clean -console -consoleLog -vm /usr/lib/jvm/java-6-sun/bin/java -vma rgs -Xmx400M -XX:MaxPermSize=128M -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/l ib/xulrunner/xulrunnerand when I now start my eclipse, I get:
6/5/10 10:30:24 AM (process albotek-0): The Grinder version 3.4 6/5/10 10:30:24 AM (process albotek-0): Java(TM) SE Runtime Environment 1.6.0_20-b02: Java HotSpot(TM) Server VM (16.3-b01, mixed mode) on Linux i386 2.6.31-21-generic 6/5/10 10:30:24 AM (process albotek-0): time zone is CEST (+0200) 6/5/10 10:30:29 AM (process albotek-0): worker process 0 6/5/10 10:30:29 AM (process albotek-0): instrumentation agents: byte code transforming instrumenter for Jython 2.5; byte code transforming instrumenter for Java 6/5/10 10:30:29 AM (process albotek-0): executing "/home/jan/development/workspace-grinder/Grinder2/src/HelloWorld3.py" using Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
Comments