growl-with-maven-help /

Filename Size Date modified Message
src
92 B
240 B
17.7 KB
1.1 KB
3.4 KB

Running The Grinder with Maven Dependency Management

What am I doing wrong?

Running Standalone

  1. Build the project with Maven: mvn package
  2. Run the executable App jar: java -Dgrinder.propfile=classes/grinder.properties -jar api-grinder-1.0-SNAPSHOT.jar agent

Running with Fabric

I'm using Fabric to automate some long command-lines. The following command:

fab clean build agent read

... will:

  1. Delete any logs in the target folder
  2. Build this project with maven (needs mvn on your PATH)
  3. Run the Grinder Agent, without a console * Unlike above, this will also explicitly set the grinder.jvm.classpath variable based on Maven't output.
  4. Print any logs in the target folder.

If you don't have Fabric and want to give it a shot:

  1. Install Python
  2. Install distribute
  3. (If you're on Windows, install pycrypto too.)
  4. Add c:\Python27 and c:\Python27\Scripts to your PATH.
  5. Run pip install fabric

Exmple Log

Building

set comspec=C:\PROGRA~1\JPSoft\TCCLE1~1\TCC.EXE
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.thomsonreuters.cmg.ean:api-grinder:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 54, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building api-grinder 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ api-grinder ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ api-grinder ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ api-grinder ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\dev\misc\grinder-from-scratch\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ api-grinder ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.7.1:test (default-test) @ api-grinder ---
[INFO] Surefire report directory: C:\dev\misc\grinder-from-scratch\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.thomsonreuters.cmg.ean.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ api-grinder ---
[INFO]
[INFO] --- maven-dependency-plugin:2.8:build-classpath (build-classpath) @ api-grinder ---
[INFO] Wrote classpath file 'C:\dev\misc\grinder-from-scratch\target\classpath'.
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (copy-dependencies) @ api-grinder ---
[INFO] ring-servlet-1.1.0.jar already exists in destination.
[INFO] jetty-http-7.6.1.v20120215.jar already exists in destination.
[INFO] ring-middleware-format-0.2.0.jar already exists in destination.
[INFO] grinder-http-3.11.jar already exists in destination.
[INFO] jedit-syntax-2.2.2.jar already exists in destination.
[INFO] stax-api-1.0.1.jar already exists in destination.
[INFO] core.cache-0.5.0.jar already exists in destination.
[INFO] junit-3.8.1.jar already exists in destination.
[INFO] jackson-core-2.0.0.jar already exists in destination.
[INFO] logback-core-1.0.0.jar already exists in destination.
[INFO] snakeyaml-1.5.jar already exists in destination.
[INFO] joda-time-2.0.jar already exists in destination.
[INFO] jetty-io-7.6.1.v20120215.jar already exists in destination.
[INFO] commons-io-2.1.jar already exists in destination.
[INFO] compojure-1.0.4.jar already exists in destination.
[INFO] xmlbeans-2.5.0.jar already exists in destination.
[INFO] clj-yaml-0.3.1.jar already exists in destination.
[INFO] commons-fileupload-1.2.1.jar already exists in destination.
[INFO] jython-standalone-2.5.3.jar already exists in destination.
[INFO] cheshire-4.0.0.jar already exists in destination.
[INFO] clj-time-0.3.7.jar already exists in destination.
[INFO] clout-1.0.1.jar already exists in destination.
[INFO] grinder-core-3.11.jar already exists in destination.
[INFO] ring-jetty-adapter-1.1.0.jar already exists in destination.
[INFO] javax.servlet-2.5.0.v201103041518.jar already exists in destination.
[INFO] jetty-continuation-7.6.1.v20120215.jar already exists in destination.
[INFO] grinder-3.11.jar already exists in destination.
[INFO] core.memoize-0.5.1.jar already exists in destination.
[INFO] tools.logging-0.2.3.jar already exists in destination.
[INFO] grinder-xmlbeans-3.11.jar already exists in destination.
[INFO] logback-classic-1.0.0.jar already exists in destination.
[INFO] grinder-httpclient-3.11.jar already exists in destination.
[INFO] grinder-console-service-3.11.jar already exists in destination.
[INFO] clj-stacktrace-0.2.4.jar already exists in destination.
[INFO] slf4j-api-1.6.4.jar already exists in destination.
[INFO] jetty-util-7.6.1.v20120215.jar already exists in destination.
[INFO] jackson-dataformat-smile-2.0.0.jar already exists in destination.
[INFO] servlet-api-2.5.jar already exists in destination.
[INFO] asm-3.2.jar already exists in destination.
[INFO] grinder-dcr-agent-3.11.jar already exists in destination.
[INFO] picocontainer-2.13.6.jar already exists in destination.
[INFO] core.incubator-0.1.0.jar already exists in destination.
[INFO] ring-core-1.1.0.jar already exists in destination.
[INFO] grinder-swing-console-3.11.jar already exists in destination.
[INFO] jsr173-1.0.jar already exists in destination.
[INFO] tools.macro-0.1.0.jar already exists in destination.
[INFO] clojure-1.4.0.jar already exists in destination.
[INFO] jetty-server-7.6.1.v20120215.jar already exists in destination.
[INFO] commons-codec-1.6.jar already exists in destination.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.416s
[INFO] Finished at: Tue Aug 27 11:12:59 EDT 2013
[INFO] Final Memory: 11M/245M
[INFO] ------------------------------------------------------------------------

Running

set comspec=C:\PROGRA~1\JPSoft\TCCLE1~1\TCC.EXE
2013-08-27 11:13:00,372 INFO  agent: The Grinder 3.11
2013-08-27 11:13:00,384 INFO  agent: Worker process command line: java -classpath 'lib\junit-3.8.1.jar;lib\grinder-3.11.jar;lib\grinder-dcr-agent-3.11.jar;lib\grinder-http-3.11.jar;lib\grinder-core-3.11.jar;lib\asm-3.2.jar;lib\picocontainer-2.13.6.jar;lib\jython-standalone-2.5.3.jar;lib\slf4j-api-1.6.4.jar;lib\logback-classic-1.0.0.jar;lib\logback-core-1.0.0.jar;lib\grinder-httpclient-3.11.jar;lib\grinder-xmlbeans-3.11.jar;lib\jsr173-1.0.jar;lib\xmlbeans-2.5.0.jar;lib\stax-api-1.0.1.jar;lib\grinder-console-service-3.11.jar;lib\clojure-1.4.0.jar;lib\tools.logging-0.2.3.jar;lib\ring-core-1.1.0.jar;lib\commons-codec-1.6.jar;lib\commons-io-2.1.jar;lib\commons-fileupload-1.2.1.jar;lib\servlet-api-2.5.jar;lib\clj-time-0.3.7.jar;lib\joda-time-2.0.jar;lib\ring-jetty-adapter-1.1.0.jar;lib\ring-servlet-1.1.0.jar;lib\jetty-server-7.6.1.v20120215.jar;lib\javax.servlet-2.5.0.v201103041518.jar;lib\jetty-continuation-7.6.1.v20120215.jar;lib\jetty-http-7.6.1.v20120215.jar;lib\jetty-io-7.6.1.v20120215.jar;lib\jetty-util-7.6.1.v20120215.jar;lib\ring-middleware-format-0.2.0.jar;lib\core.memoize-0.5.1.jar;lib\core.cache-0.5.0.jar;lib\cheshire-4.0.0.jar;lib\jackson-core-2.0.0.jar;lib\jackson-dataformat-smile-2.0.0.jar;lib\clj-yaml-0.3.1.jar;lib\snakeyaml-1.5.jar;lib\compojure-1.0.4.jar;lib\core.incubator-0.1.0.jar;lib\tools.macro-0.1.0.jar;lib\clout-1.0.1.jar;lib\clj-stacktrace-0.2.4.jar;lib\grinder-swing-console-3.11.jar;lib\jedit-syntax-2.2.2.jar;api-grinder-1.0-SNAPSHOT.jar' net.grinder.engine.process.WorkerProcessEntryPoint
2013-08-27 11:13:00,417 INFO  agent: worker U0100661-TPD-A-0 started
About to wrap foo().
Failed to wrap foo()
Traceback (most recent call last):
  File ".\classes\grinder.py", line 41, in <module>
    proxy = test1.wrap(foo)
NotWrappableTypeException: net.grinder.script.NotWrappableTypeException: Failed to wrap <function foo at 0x34>
2013-08-27 11:13:04,003 ERROR U0100661-TPD-A-0: aborting process - Java exception initialising test script
net.grinder.scriptengine.jython.JythonScriptExecutionException: Java exception initialising test script
        proxy = test1.wrap(foo)
        File ".\classes\grinder.py", line 41, in <module>
net.grinder.script.NotWrappableTypeException: Failed to wrap <function foo at 0x34>
        at net.grinder.engine.process.MasterInstrumenter.createInstrumentedProxy(MasterInstrumenter.java:69) ~[grinder-core-3.11.jar:na]
        at net.grinder.engine.process.TestData.createProxy(TestData.java:105) ~[grinder-core-3.11.jar:na]
        at net.grinder.script.Test.wrap(Test.java:99) ~[grinder-core-3.11.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0]
        at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186) ~[jython-standalone-2.5.3.jar:na]
        at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204) ~[jython-standalone-2.5.3.jar:na]
        at org.python.core.PyObject.__call__(PyObject.java:404) ~[jython-standalone-2.5.3.jar:na]
        at org.python.core.PyObject.__call__(PyObject.java:408) ~[jython-standalone-2.5.3.jar:na]
        at org.python.core.PyMethod.__call__(PyMethod.java:124) ~[jython-standalone-2.5.3.jar:na]
        at org.python.pycode._pyx1.f$0(.\classes\grinder.py:51) ~[na:na]
        at org.python.pycode._pyx1.call_function(.\classes\grinder.py) ~[na:na]
        at org.python.core.PyTableCode.call(PyTableCode.java:165) ~[jython-standalone-2.5.3.jar:na]
        at org.python.core.PyCode.call(PyCode.java:18) ~[jython-standalone-2.5.3.jar:na]
        at org.python.core.Py.runCode(Py.java:1275) ~[jython-standalone-2.5.3.jar:na]
        at org.python.core.__builtin__.execfile_flags(__builtin__.java:522) ~[jython-standalone-2.5.3.jar:na]
        at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225) ~[jython-standalone-2.5.3.jar:na]
        at net.grinder.scriptengine.jython.JythonScriptEngine.<init>(JythonScriptEngine.java:129) ~[grinder-core-3.11.jar:na]
        at net.grinder.scriptengine.jython.JythonScriptEngineService.createScriptEngine(JythonScriptEngineService.java:102) ~[grinder-core-3.11.jar:na]
        at net.grinder.engine.process.ScriptEngineContainer.getScriptEngine(ScriptEngineContainer.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(WorkerProcessEntryPoint.java:86) [grinder-core-3.11.jar:na]
        at net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessEntryPoint.java:59) [grinder-core-3.11.jar:na]
2013-08-27 11:13:04,040 INFO  agent: finished
[localhost] local: mvn package
[localhost] local: java -Dgrinder.propfile=classes/grinder.properties -Dgrinder.jvm.classpath=lib\junit-3.8.1.jar;lib\grinder-3.11.jar;lib\grinder-dcr-agent-3.11.jar;lib\grinder-http-3.11.jar;lib\grinder-core-3.11.jar;lib\asm-3.2.jar;lib\picocontainer-2.13.6.jar;lib\jython-standalone-2.5.3.jar;lib\slf4j-api-1.6.4.jar;lib\logback-classic-1.0.0.jar;lib\logback-core-1.0.0.jar;lib\grinder-httpclient-3.11.jar;lib\grinder-xmlbeans-3.11.jar;lib\jsr173-1.0.jar;lib\xmlbeans-2.5.0.jar;lib\stax-api-1.0.1.jar;lib\grinder-console-service-3.11.jar;lib\clojure-1.4.0.jar;lib\tools.logging-0.2.3.jar;lib\ring-core-1.1.0.jar;lib\commons-codec-1.6.jar;lib\commons-io-2.1.jar;lib\commons-fileupload-1.2.1.jar;lib\servlet-api-2.5.jar;lib\clj-time-0.3.7.jar;lib\joda-time-2.0.jar;lib\ring-jetty-adapter-1.1.0.jar;lib\ring-servlet-1.1.0.jar;lib\jetty-server-7.6.1.v20120215.jar;lib\javax.servlet-2.5.0.v201103041518.jar;lib\jetty-continuation-7.6.1.v20120215.jar;lib\jetty-http-7.6.1.v20120215.jar;lib\jetty-io-7.6.1.v20120215.jar;lib\jetty-util-7.6.1.v20120215.jar;lib\ring-middleware-format-0.2.0.jar;lib\core.memoize-0.5.1.jar;lib\core.cache-0.5.0.jar;lib\cheshire-4.0.0.jar;lib\jackson-core-2.0.0.jar;lib\jackson-dataformat-smile-2.0.0.jar;lib\clj-yaml-0.3.1.jar;lib\snakeyaml-1.5.jar;lib\compojure-1.0.4.jar;lib\core.incubator-0.1.0.jar;lib\tools.macro-0.1.0.jar;lib\clout-1.0.1.jar;lib\clj-stacktrace-0.2.4.jar;lib\grinder-swing-console-3.11.jar;lib\jedit-syntax-2.2.2.jar -jar api-grinder-1.0-SNAPSHOT.jar agent

Logs

target\U0100661-TPD-A-0.log
===========================

2013-08-27 11:13:00,838 INFO  U0100661-TPD-A-0 : The Grinder version 3.11
2013-08-27 11:13:00,843 INFO  U0100661-TPD-A-0 : Java(TM) SE Runtime Environment 1.7.0-b147: Java HotSpot(TM) 64-Bit Server VM (21.0-b17, mixed mode) on Windows 7 amd64 6.1
2013-08-27 11:13:00,845 INFO  U0100661-TPD-A-0 : time zone is EDT (-0400)
2013-08-27 11:13:00,883 INFO  U0100661-TPD-A-0 : Java VM does not support instrumentation, DCR unavailable
2013-08-27 11:13:00,909 INFO  U0100661-TPD-A-0 : worker process 0
2013-08-27 11:13:00,920 INFO  U0100661-TPD-A-0 : instrumentation agents: NO INSTRUMENTER COULD BE LOADED
2013-08-27 11:13:04,002 ERROR U0100661-TPD-A-0 : aborting process - Java exception initialising test script
net.grinder.scriptengine.jython.JythonScriptExecutionException: Java exception initialising test script
  proxy = test1.wrap(foo)
  File ".\classes\grinder.py", line 41, in <module>
net.grinder.script.NotWrappableTypeException: Failed to wrap <function foo at 0x34>
  at net.grinder.engine.process.MasterInstrumenter.createInstrumentedProxy(MasterInstrumenter.java:69) ~[grinder-core-3.11.jar:na]
  at net.grinder.engine.process.TestData.createProxy(TestData.java:105) ~[grinder-core-3.11.jar:na]
  at net.grinder.script.Test.wrap(Test.java:99) ~[grinder-core-3.11.jar:na]
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0]
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0]
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0]
  at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0]
  at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186) ~[jython-standalone-2.5.3.jar:na]
  at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204) ~[jython-standalone-2.5.3.jar:na]
  at org.python.core.PyObject.__call__(PyObject.java:404) ~[jython-standalone-2.5.3.jar:na]
  at org.python.core.PyObject.__call__(PyObject.java:408) ~[jython-standalone-2.5.3.jar:na]
  at org.python.core.PyMethod.__call__(PyMethod.java:124) ~[jython-standalone-2.5.3.jar:na]
  at org.python.pycode._pyx1.f$0(.\classes\grinder.py:51) ~[na:na]
  at org.python.pycode._pyx1.call_function(.\classes\grinder.py) ~[na:na]
  at org.python.core.PyTableCode.call(PyTableCode.java:165) ~[jython-standalone-2.5.3.jar:na]
  at org.python.core.PyCode.call(PyCode.java:18) ~[jython-standalone-2.5.3.jar:na]
  at org.python.core.Py.runCode(Py.java:1275) ~[jython-standalone-2.5.3.jar:na]
  at org.python.core.__builtin__.execfile_flags(__builtin__.java:522) ~[jython-standalone-2.5.3.jar:na]
  at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225) ~[jython-standalone-2.5.3.jar:na]
  at net.grinder.scriptengine.jython.JythonScriptEngine.<init>(JythonScriptEngine.java:129) ~[grinder-core-3.11.jar:na]
  at net.grinder.scriptengine.jython.JythonScriptEngineService.createScriptEngine(JythonScriptEngineService.java:102) ~[grinder-core-3.11.jar:na]
  at net.grinder.engine.process.ScriptEngineContainer.getScriptEngine(ScriptEngineContainer.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(WorkerProcessEntryPoint.java:86) [grinder-core-3.11.jar:na]
  at net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessEntryPoint.java:59) [grinder-core-3.11.jar:na]


********************************************************************************


Done.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.