Shiva,

We need your entire error and out log to be able to determine why you could not wrap the method.

If you're using Java 7 there's a known problem with wrapping which can be identified by the following prior error:

10/31/11 1:27:20 PM (process grinder01-0): Java VM does not support class retransformation, DCR unavailable
10/31/11 1:27:20 PM (process grinder01-0): instrumentation agents: NO INSTRUMENTER COULD BE LOADED

and here is a possible fix kindly given to me by Philip (one of the core devs of The Grinder), but which I haven't had time to test yet:

https://sourceforge.net/tracker/index.php?func=detail&aid=3431764&group_id=18598&atid=118598

The other possibility is to revert to Java 6, assuming you can.

Regards,
Gary

On 8 November 2011 17:23, shiva <srimakurthi@gmail.com> wrote:
Hello All,


I am a newbee to grinder tool and trying to run this first time. I think I am able to run the Agent and started console. I see below error in the error logs.

Java exception initialising test script
    logTest = test1.wrap(grinder.logger.output)
    File "C:\grinder-3.4\mygrinder\.\USLT629-file-store\current\helloworldfunctions.py", line 16, in <module>
Caused by: net.grinder.script.NotWrappableTypeException: Failed to wrap <bound method net.grinder.engine.process.ExternalLogger.output of net.grinder.engine.process.ExternalLogger@c25ffa>
    at net.grinder.engine.process.instrumenter.MasterInstrumenter.createInstrumentedProxy(MasterInstrumenter.java:99)
    at net.grinder.engine.process.TestData.createProxy(TestData.java:93)
    at net.grinder.script.Test.wrap(Test.java:100)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
    at org.python.core.PyObject.__call__(PyObject.java:404)
    at org.python.core.PyObject.__call__(PyObject.java:408)
    at org.python.core.PyMethod.__call__(PyMethod.java:124)
    at org.python.pycode._pyx0.f$0(C:\grinder-3.4\mygrinder\.\USLT629-file-store\current\helloworldfunctions.py:21)
    at org.python.pycode._pyx0.call_function(C:\grinder-3.4\mygrinder\.\USLT629-file-store\current\helloworldfunctions.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:165)
    at org.python.core.PyCode.call(PyCode.java:18)
    at org.python.core.Py.runCode(Py.java:1261)
    at org.python.core.__builtin__.execfile_flags(__builtin__.java:522)
    at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225)
    at net.grinder.engine.process.jython.JythonScriptEngine.initialise(JythonScriptEngine.java:83)
    at net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:259)
    at net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEntryPoint.java:87)
    at net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessEntryPoint.java:59)


Can some one please help me fixing this issue?


Regards,
Siva Srimakurti

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
grinder-use mailing list
grinder-use@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/grinder-use