Aborting thread: {}Exception occurs in @BeforeThread block.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Aborting thread: {}Exception occurs in @BeforeThread block.

efuton
2015-01-21 15:13:37,782 ERROR Aborting thread: {}Exception occurs in @BeforeThread block.
net.grinder.scriptengine.groovy.GroovyScriptEngine$GroovyScriptExecutionException: Exception occurs in @BeforeThread block.
        at net.grinder.scriptengine.groovy.GrinderContextExecutor.runBeforeThread(GrinderContextExecutor.java:116) ~[ngrinder-groovy-3.3.jar:na]
        at net.grinder.scriptengine.groovy.GroovyScriptEngine$GroovyWorkerRunnable.<init>(GroovyScriptEngine.java:142) ~[ngrinder-groovy-3.3.jar:na]
        at net.grinder.scriptengine.groovy.GroovyScriptEngine$GroovyWorkerRunnable.<init>(GroovyScriptEngine.java:102) ~[ngrinder-groovy-3.3.jar:na]
        at net.grinder.scriptengine.groovy.GroovyScriptEngine.createWorkerRunnable(GroovyScriptEngine.java:81) ~[ngrinder-groovy-3.3.jar:na]
        at net.grinder.engine.process.GrinderProcess$ThreadStarterImplementation$2.create(GrinderProcess.java:822) ~[ngrinder-runtime-3.3.jar:na]
        at net.grinder.engine.process.GrinderThread.run(GrinderThread.java:89) ~[grinder-core-3.9.1.jar:na]
        at java.lang.Thread.run(Thread.java:722) [na:1.7.0_15]
Caused by: java.lang.IllegalAccessError: tried to access method org.junit.runners.ParentRunner.getTestClass()Lorg/junit/runners/model/TestClass; from class net.grinder.scriptengine.groovy.junit.GrinderRunner$1
        at net.grinder.scriptengine.groovy.junit.GrinderRunner$1.getTestClass(GrinderRunner.java:103) ~[ngrinder-groovy-3.3.jar:na]
        at net.grinder.scriptengine.groovy.junit.TestObjectFactory.getTestObject(TestObjectFactory.java:44) ~[ngrinder-groovy-3.3.jar:na]
        at net.grinder.scriptengine.groovy.junit.RunBeforeThreads.evaluate(RunBeforeThreads.java:58) ~[ngrinder-groovy-3.3.jar:na]
        at net.grinder.scriptengine.groovy.GrinderContextExecutor.runBeforeThread(GrinderContextExecutor.java:114) ~[ngrinder-groovy-3.3.jar:na]
        ... 6 common frames omitted


都是public方法。。求接
Reply | Threaded
Open this post in threaded view
|

RE: Aborting thread: {}Exception occurs in @BeforeThread block.

Mavlarn

这个错误一般是由于所依赖的jar包的版本的问题,比如说这个方法返回一个TestClass,我们使用的junit的版本是4.8.2,可能你使用的版本比较低,检查一下依赖,如果有冲突的就尽量都exclude掉。

 

-----Original Message-----
From: "efuton [via ngrinder]"<[hidden email]>
To: "Mavlarn"<[hidden email]>;
Cc:
Sent: 2015-01-21 (星期三) 17:16:17
Subject: Aborting thread: {}Exception occurs in @BeforeThread block.
 

2015-01-21 15:13:37,782 ERROR Aborting thread: {}Exception occurs in @BeforeThread block.
net.grinder.scriptengine.groovy.GroovyScriptEngine$GroovyScriptExecutionException: Exception occurs in @BeforeThread block.
        at net.grinder.scriptengine.groovy.GrinderContextExecutor.runBeforeThread(GrinderContextExecutor.java:116) ~[ngrinder-groovy-3.3.jar:na]
        at net.grinder.scriptengine.groovy.GroovyScriptEngine$GroovyWorkerRunnable.<init>(GroovyScriptEngine.java:142) ~[ngrinder-groovy-3.3.jar:na]
        at net.grinder.scriptengine.groovy.GroovyScriptEngine$GroovyWorkerRunnable.<init>(GroovyScriptEngine.java:102) ~[ngrinder-groovy-3.3.jar:na]
        at net.grinder.scriptengine.groovy.GroovyScriptEngine.createWorkerRunnable(GroovyScriptEngine.java:81) ~[ngrinder-groovy-3.3.jar:na]
        at net.grinder.engine.process.GrinderProcess$ThreadStarterImplementation$2.create(GrinderProcess.java:822) ~[ngrinder-runtime-3.3.jar:na]
        at net.grinder.engine.process.GrinderThread.run(GrinderThread.java:89) ~[grinder-core-3.9.1.jar:na]
        at java.lang.Thread.run(Thread.java:722) [na:1.7.0_15]
Caused by: java.lang.IllegalAccessError: tried to access method org.junit.runners.ParentRunner.getTestClass()Lorg/junit/runners/model/TestClass; from class net.grinder.scriptengine.groovy.junit.GrinderRunner$1
        at net.grinder.scriptengine.groovy.junit.GrinderRunner$1.getTestClass(GrinderRunner.java:103) ~[ngrinder-groovy-3.3.jar:na]
        at net.grinder.scriptengine.groovy.junit.TestObjectFactory.getTestObject(TestObjectFactory.java:44) ~[ngrinder-groovy-3.3.jar:na]
        at net.grinder.scriptengine.groovy.junit.RunBeforeThreads.evaluate(RunBeforeThreads.java:58) ~[ngrinder-groovy-3.3.jar:na]
        at net.grinder.scriptengine.groovy.GrinderContextExecutor.runBeforeThread(GrinderContextExecutor.java:114) ~[ngrinder-groovy-3.3.jar:na]
        ... 6 common frames omitted


都是public方法。。求接


If you reply to this email, your message will be added to the discussion below:
http://ngrinder.642.n7.nabble.com/Aborting-thread-Exception-occurs-in-BeforeThread-block-tp1722.html
To start a new topic under ngrinder-user-cn, email [hidden email]
To unsubscribe from ngrinder-user-cn, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

RE: Aborting thread: {}Exception occurs in @BeforeThread block.

efuton
thinks