Upgrading to 2.1.1 for a Custom Protocol - example - throws nullpointer

Hi Amazing Gatling Folks,
I had built a Custom protocol example on gatling version 2.0.M3a long back, recently I upgraded to 2.1.1 and trying to migrate the example code, but getting errors.
Can you guys have a quick look, may be I am doing something wrong. This is a very basic example.
If this works, I can contribute this code to may be a list of examples which can help everyone.

Code is here:


Steps to reproduce:
git clone https://github.com/softmentor/gatling-examples
cd gatling-examples
mvn clean test

Error I am getting:

This line in the stacktrace explains it all:
at org.apache.maven.surefire.junit.PojoTestSet.(PojoTestSet.java:63)

This stupid surefire thinks your simulation is a test class it will be able to run with JUnit3.
Guess why? Because its name starts with Test.

Just rename your simulation. :slight_smile:


As always, quick response and right resolution/fix.I have updated my example and it works like charm.

Kudos… keep doing the great job.
Please let me know if you need any help from me to push these examples into your documentation/examples etc. More than happy to contribute…


Thanks for your kind words.

We’ll probably borrow some examples for the documentation.
I’ve open an issue for this: https://github.com/gatling/gatling/issues/2466