Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 31 18:56
    dependabot[bot] labeled #9
  • Mar 31 18:56
    dependabot[bot] opened #9
  • Mar 31 18:56

    dependabot[bot] on maven

    Bump spring-beans in /ngrinder-… (compare)

  • Mar 31 18:55
    dependabot[bot] labeled #8
  • Mar 31 18:55
    dependabot[bot] opened #8
  • Mar 31 18:55

    dependabot[bot] on maven

    Bump spring-beans from 4.1.1.RE… (compare)

  • May 12 2021 00:18
    dependabot[bot] labeled #7
  • May 12 2021 00:18
    dependabot[bot] opened #7
  • May 12 2021 00:18

    dependabot[bot] on maven

    Bump spring-security-web in /ng… (compare)

  • Apr 23 2021 02:59

    imbyungjun on master

    Bump up PF4j latest version Fix sso plugin README to use ne… Merge pull request #1 from nave… and 9 more (compare)

  • Apr 23 2021 02:59
    imbyungjun closed #6
  • Apr 23 2021 02:56
    donggyu04 opened #6
  • Apr 23 2021 02:54

    junoyoon on network-overflow-region

    (compare)

  • Apr 23 2021 02:53

    donggyu04 on develop

    Migrate to fit in agent identit… Update network overflow plugin … Merge pull request #5 from nave… (compare)

  • Apr 23 2021 02:53
    donggyu04 closed #5
  • Apr 22 2021 11:04
    imbyungjun commented #5
  • Apr 22 2021 11:00
    imbyungjun synchronize #5
  • Apr 22 2021 11:00

    imbyungjun on network-overflow-region

    Migrate to fit in agent identit… Update network overflow plugin … (compare)

  • Apr 22 2021 10:57
    imbyungjun commented #5
  • Apr 22 2021 10:50
    donggyu04 commented #5
Sendil
@Senthilsivam41
Thanks JunHo Yoon... it fixed the issue with Junit compilation error..
For Groovy scripts, where i need to copy the spring-context.xml file.. because it is not picking from lib folder
Sendil
@Senthilsivam41
i figured out this issue.. thanks
geunwoo son
@songeunwoo
have a nice day~^^
JunHo Yoon
@junoyoon
Good
Sendil
@Senthilsivam41
I am facing issue with the groovy script on NGrinder.. after resolving all the issues with my spring-executable-jar.. now it is failing at the groovy script itself

Exception in thread "main" java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at net.grinder.util.weave.j2se6.ASMTransformerFactory.create(ASMTransformerFactory.java:119)
at net.grinder.util.weave.j2se6.DCRWeaver.<init>(DCRWeaver.java:70)
at net.grinder.engine.process.dcr.DCRContextImplementation.<init>(DCRContextImplementation.java:112)
at net.grinder.engine.process.dcr.DCRContextImplementation.create(DCRContextImplementation.java:89)
at net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:290)
at net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEntryPoint.java:87)
at net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessEntryPoint.java:60)

+

nGrinder v3.4

any idea why it is throwing this error .. any import missing in my script ?
JunHo Yoon
@junoyoon
U seems that u e using some library which is compiled with jdk8 and recording it
Sendil
@Senthilsivam41
which library you meant it is my pom.xml file or the environment in which grinder console/agent is running..
JunHo Yoon
@junoyoon
Would u post your script?
Sendil
@Senthilsivam41

import static net.grinder.script.Grinder.grinder
import static org.junit.Assert.
import static org.hamcrest.Matchers.

import net.grinder.plugin.http.HTTPRequest
import net.grinder.plugin.http.HTTPPluginControl
import net.grinder.script.GTest
import net.grinder.script.Grinder
import net.grinder.scriptengine.groovy.junit.GrinderRunner
import net.grinder.scriptengine.groovy.junit.annotation.BeforeProcess
import net.grinder.scriptengine.groovy.junit.annotation.BeforeThread
import static net.grinder.util.GrinderUtils.* // You can use this if you're using nGrinder after 3.2.3
import org.junit.Before
import org.junit.BeforeClass
import org.junit.Test
import org.junit.runner.RunWith

import com.paypal.payment.store.loader.StoreValueGen

/**

  • A simple example using the HTTP plugin that shows the retrieval of a
  • single page via HTTP.
  • This script is automatically generated by ngrinder.
  • @author admin
    */
    @RunWith(GrinderRunner)
    class TestRunner {

    public static GTest test
    public static StoreValueGen svRequest
    public static String result

    @BeforeProcess
    public static void beforeProcess() {

     test = new GTest(1, "sv-lnp")
     grinder.logger.info("before process.");

    }

    @BeforeThread
    public void beforeThread() {

     svRequest = new StoreValueGen()
     test.record(svRequest, "test")
     grinder.statistics.delayReports=true;
     grinder.logger.info("before thread.");

    }

    @Before
    public void before() {

     grinder.logger.info("before thread. init ");

    }

    @Test
    public void test(){

     result = svRequest.invokeStoredValue();
     if (result != null) {
         grinder.logger.warn("Result found .. Successfully generate Stored Value", result); 
     } 

    }
    }

Sendil
@Senthilsivam41
i tried setting up ngrinder console and agent running oracle jvm rather open jdk jvm.. since i am compiling the code in oracle jvm.. even after this change i am getting the same error message
executable jar is built with spring framework.. so i added shade plugin to build this jar.. as the assembly jar plugin is not working as executable..
i mean the maven build
Sendil
@Senthilsivam41
Is there a problem to invoke Spring code from Groovy script ?
米阳
@MeYoung
hI all, when I validate script ,have some error.

2016-09-03 20:16:30,559 INFO The Grinder version 3.9.1
2016-09-03 20:16:30,566 INFO Java(TM) SE Runtime Environment 1.8.0_91-b14: Java HotSpot(TM) 64-Bit Server VM (25.91-b14, mixed mode) on Windows 10 amd64 10.0
2016-09-03 20:16:30,575 INFO time zone is CST (+0800)
2016-09-03 20:16:30,685 INFO worker process 0 of agent number 0
2016-09-03 20:16:30,721 INFO Instrumentation agents: byte code transforming instrumenter for Java; byte code transforming instrumenter for Java
2016-09-03 20:16:31,053 ERROR Script error - Error while initialize test runner
net.grinder.engine.common.EngineException: Error while initialize test runner
at net.grinder.scriptengine.groovy.GroovyScriptEngine.<init>(GroovyScriptEngine.java:71) ~[ngrinder-groovy-3.4.jar:na]
at net.grinder.scriptengine.groovy.GroovyScriptEngineService.createScriptEngine(GroovyScriptEngineService.java:109) ~[ngrinder-groovy-3.4.jar:na]
at net.grinder.engine.process.ScriptEngineContainer.getScriptEngine(ScriptEngineContainer.java:105) ~[grinder-core-3.9.1.jar:na]
at net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:330) ~[ngrinder-runtime-3.4.jar:na]
at net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEntryPoint.java:87) [grinder-core-3.9.1.jar:na]
at net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessEntryPoint.java:60) [grinder-core-3.9.1.jar:na]
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
${NGRINDER_HOME}\script\admin\TestRunner.groovy: 46: unexpected token: & @ line 46, column 23.
test = new GTest(1, "www.baidu.com")
^

1 error

at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:149) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:119) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:131) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:359) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:142) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:108) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:236) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:162) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:912) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:574) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:550) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:527) ~[groovy-all-2.2.1.jar:2.2.1]
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:279) ~[groovy-all-2.2.1.jar:2.2.1]
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:258) ~[groovy-all-2.2.1.jar:2.2.1]
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:244) ~[groovy-all-2.2.1.jar:2.2.1]
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:185) ~[groovy-all-2.2.1.jar:2.2.1]
at net.grinder.scriptengine.groovy.GroovyScriptEngine.<init>(GroovyScriptEngine.java:62) ~[ngrinder-groovy-3.4.jar:na]
... 5 common frames omitted

2016-09-03 20:16:31,055 ERROR worker-bootstrap: Error running worker process
net.grinder.engine.common.EngineException: Error while initialize test runner
at net.grinder.scriptengine.groovy.GroovyScriptEngine.<init>(GroovyScriptEngine.java:71) ~[ngrinder-groovy-3.4.jar:na]
at net.grinder.scriptengine.groovy.GroovyScriptEngineService.cr

JunHo Yoon
@junoyoon
Hi.
@Senthilsivam41 actually it's the java rather than groovy.
So.. there is not much constraints on running spring lib in ngrinder.
One thing I suspect is.. the use of instrumentation library. Could you post all the dependencies which u used?
@MeYoung please post your script.
It seems just like the groovy syntax error.
米阳
@MeYoung
@junoyoon hi. my script :

import static net.grinder.script.Grinder.grinder
import static org.junit.Assert.
import static org.hamcrest.Matchers.

import net.grinder.plugin.http.HTTPRequest
import net.grinder.plugin.http.HTTPPluginControl
import net.grinder.script.GTest
import net.grinder.script.Grinder
import net.grinder.scriptengine.groovy.junit.GrinderRunner
import net.grinder.scriptengine.groovy.junit.annotation.BeforeProcess
import net.grinder.scriptengine.groovy.junit.annotation.BeforeThread
// import static net.grinder.util.GrinderUtils.* // You can use this if you're using nGrinder after 3.2.3
import org.junit.Before
import org.junit.BeforeClass
import org.junit.Test
import org.junit.runner.RunWith

import java.util.Date
import java.util.List
import java.util.ArrayList

import HTTPClient.Cookie
import HTTPClient.CookieModule
import HTTPClient.HTTPResponse
import HTTPClient.NVPair

/**

  • A simple example using the HTTP plugin that shows the retrieval of a
  • single page via HTTP.
  • This script is automatically generated by ngrinder.
  • @author admin
    */
    @RunWith(GrinderRunner)
    class TestRunner {

    public static GTest test
    public static HTTPRequest request
    public static NVPair[] headers = []
    public static NVPair[] params = []
    public static Cookie[] cookies = []

    @BeforeProcess
    public static void beforeProcess() {

     HTTPPluginControl.getConnectionDefaults().timeout = 6000;
     test = new GTest(1, "test");
     request = new HTTPRequest();
     grinder.logger.info("before process.");

    }

    @BeforeThread
    public void beforeThread() {

     grinder.statistics.delayReports=true;
     grinder.logger.info("before thread.");
     test.record(this, "test");

    }

    @Before
    public void before() {

     request.setHeaders(headers)
     cookies.each { CookieModule.addCookie(it, HTTPPluginControl.getThreadHTTPClientContext()) }
     grinder.logger.info("before thread. init headers and cookies");

    }

    @Test
    public void test(){

     HTTPResponse result = request.GET("http://www.baidu.com", params)
    
     if (result.statusCode == 301 || result.statusCode == 302) {
         grinder.logger.warn("Warning. The response may not be correct. The response code was {}.", result.statusCode); 
     } else {
         assertThat(result.statusCode, is(200));
     }

    }
    }

It is auto create script.
JunHo Yoon
@junoyoon
@MeYoung I think u added mistakenly hidden text... so the error message is &..
Could you recreate new test with clean text "www.baidu.com"?
geunwoo son
@songeunwoo
I think even as a syntax error.
스크린샷 2016-09-05 오전 10.19.49.png
Try this generation.
米阳
@MeYoung
ngrinder.gif
@junoyoon
JunHo Yoon
@junoyoon
@MeYoung Thanks! It's definately.. bug. We'll fix.
Thanks!
ngrinder520
@ngrinder520
hello everybody,Ask a question please
blob
This list does not display the Local area network IP ,why?
ngrinder520
@ngrinder520
Before deploying ngrinder environment are shows LAN IP
geunwoo son
@songeunwoo
agent download forder check
agent_conf file
ngrinder520
@ngrinder520
common.start_mode=agent
agent.controller_host=10.111.96.39
agent.controller_port=16001
agent.region=NONE

agent.host_id=

agent.server_mode=true

provide more agent java execution option if necessary.

agent.java_opt=

set following false if you want to use more than 1G Xmx memory per a agent process.

agent.limit_xmx=true

please uncomment the following option if you want to send all logs to the controller.

agent.all_logs=true

some jvm is not compatible with DNSJava. If so, set this false.

agent.enable_local_dns=false

blob
geunwoo son
@songeunwoo
this ip that agent runing server
ngrinder520
@ngrinder520
blob
Press resource usage rate is not high, if you modify the system configuration increase the vuer each agent, will lead to an unstable press?
geunwoo son
@songeunwoo
I think, Then try it to know it.
Depending on the situation the target server.
I don't know your target server status.
ngrinder520
@ngrinder520
blob