Plugin SIP

796 views
Skip to first unread message

DPeyrton

unread,
Sep 4, 2018, 7:24:20 AM9/4/18
to jmeter-plugins
Hello,
We developped a SIP plugin for JMeter. It provides capability to send and receive SIP message into a scenario. Its code is now open source.
We would like to share it.
What is the process to reference it into jmeter-plugins.org ?
Thank you.
David

Asheesh Tivaree

unread,
Sep 4, 2018, 8:07:49 AM9/4/18
to jmeter-...@googlegroups.com
Hi,
Please share with us.

--
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrey Pokhilko

unread,
Sep 4, 2018, 8:19:41 AM9/4/18
to jmeter-...@googlegroups.com

Hi,

You need to consider several things to do it:

1. Find a place where you will host JAR files of your plugin. It can be Maven Central or GitHub Releases, or any https download location

2. Make sure your main plugin JAR name contains version number, as Maven standard naming suggests

3. Identify all required library JARs that your plugin will need, ensure download location is present for them

4. Prepare a PR for your new plugin (example: https://github.com/undera/jmeter-plugins/pull/283/files). It has to have:

    a) Good name and description, screenshot and documentation hyperlink

    b) Marker classes list, so plugin autodetection will work for it

    c) download link for plugin itself and its libraries


This is roughly the process. I will review the PR and if it looks good, will accept it. It will then become present for all users in their Plugin Managers.

--

Andrey Pokhilko

04.09.2018 14:24, DPeyrton пишет:

chlo...@gmail.com

unread,
Sep 4, 2018, 8:35:23 AM9/4/18
to jmeter-plugins
Hello Andrey, 
It is actually under github: 
We don't provide the jar file but the way to build it.
The documentation is not perfect but already available.in the Wiki.
Is this sufficient ? What should be modified/enhanced/added ?
Thank you for your answer.
David

Andrey Pokhilko

unread,
Sep 4, 2018, 8:47:31 AM9/4/18
to jmeter-...@googlegroups.com

Somebody has to build the JAR for users. If you don't want to do that, there is no other way to get into Plugins Manager repositories.

I believe building and uploading JAR file into GitHub release is not too hard.

The documentation quality is up to you, it's your face. I'd add some screenshots, people love to see what they supposed to get.

All the requirements are listed in my previous email.

--

Andrey Pokhilko

04.09.2018 15:35, chlo...@gmail.com пишет:

chlo...@gmail.com

unread,
Sep 4, 2018, 8:54:20 AM9/4/18
to jmeter-plugins
OK, understood. Thank you.
I'll come back to you soon.
David.

chlo...@gmail.com

unread,
Sep 10, 2018, 10:45:18 AM9/10/18
to jmeter-plugins
Hello Andrey,

I tried to fullfill your requirements. Here is the PR:

{
    "id": "simulap-plugin-sip",
    "name": "Simulap SIP plugin",
    "description": "simulap-plugin-sip, brings SIP ( RFC 3261) connectivity to Apache JMeter.",
    "vendor": "Hewlett Packard Enterprise Development LP",
    "markerClass": "org.apache.jmeter.protocol.sip.config.SipNodeElement,org.apache.jmeter.protocol.sip.sampler.SipSampler",
    "versions": {
      "1.9": {
        "depends": [
          "jmeter-core"
        ],
        "libs": {
        }
      }
    }
  }

Let me know if you feel there are informations missing.
    
Thank you in advance for your comments.
Regards.
David.

Vincent Daburon

unread,
Sep 10, 2018, 11:17:08 AM9/10/18
to jmeter-plugins
Hi,

I am surprised by the name of the package
org.apache.jmeter.protocol


Why do not you put a more specific domain name ?

Because when i see "org.apache.jmeter.protocol" i think that package was developed by Apache JMeter committers and that not true.


Regards.
Vincent DAB.

Andrey Pokhilko

unread,
Sep 10, 2018, 11:51:55 AM9/10/18
to jmeter-...@googlegroups.com

Hi,

markerClass has to be JSON list of class names. Also, having a screenshot URL helps to make it more attractive to users. All the rest looks fine for me.

This code has to be PR via GitHub, changing various.json file.

--

Andrey Pokhilko

10.09.2018 17:45, chlo...@gmail.com пишет:

PMD

unread,
Sep 10, 2018, 4:56:18 PM9/10/18
to jmeter-plugins
Hello David,
I strongly encourage you to change the package and plugin namespace to avoid a clash with Apache JMeter core.

There might also be branding issue here.

Regards
Philippe M.
Apache JMeter PMC Team

chlo...@gmail.com

unread,
Sep 11, 2018, 4:30:43 AM9/11/18
to jmeter-plugins
Hello all,

OK, we didn't understand that this way.

We used this package name as we thought that it was a kind of JMeter policy to introduce new protocol...

It also simplify the way we initialize the log level... but this is a tiny detail :-)

As it is a mistake, we are going to change the package name.

Andrey,

I'm also going to publish a screenshot and update the Json.

When you say "This code has to be PR via GitHub, changing various.json file.", who is responsible for the PR and json files update ?

Thanks all for the review.
Regards.
David.

Andrey Pokhilko

unread,
Sep 11, 2018, 5:21:51 AM9/11/18
to jmeter-...@googlegroups.com

It's on your side to propose JSON file change.

For example, you can use this guide: https://help.github.com/articles/editing-files-in-another-user-s-repository/

--

Andrey Pokhilko

11.09.2018 11:30, chlo...@gmail.com пишет:

raghunath...@gmail.com

unread,
Nov 26, 2018, 6:50:59 AM11/26/18
to jmeter-plugins
Hi,

I want to use this plugin and I am trying to build the setup as mentioned in wiki. I am not able to proceed due to security firewalls. Could you please share exact Jar's what I need to use and changes I need to do in JMeter.

DPeyrton

unread,
Dec 3, 2018, 10:50:48 AM12/3/18
to jmeter-...@googlegroups.com
Hello Raghunath,
Sorry, I was out for a week.
We do not provide jars. You have to built them yourself.
Could you please detail what is failing ? The maven build ? Which command are you running ? What are the outputs ?
Regards.
David


--
You received this message because you are subscribed to a topic in the Google Groups "jmeter-plugins" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jmeter-plugins/xkhtVT3XZhQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jmeter-plugin...@googlegroups.com.

raghunath...@gmail.com

unread,
Dec 3, 2018, 11:01:53 AM12/3/18
to jmeter-plugins
HI,

Because of company securities I am not able to build the end to end flow which you mentioned in documents. So could you please share your Simulap git repository along with Target folder. So that I can build just JMeter part with Maven.

Thanks,
Raghunath

DPeyrton

unread,
Dec 3, 2018, 11:30:47 AM12/3/18
to jmeter-...@googlegroups.com
Could you please have a look at the releases we tagged under https://github.com/SIMULAP/simulap-plugin-sip/releases ?
Is it ok for you ? 

raghunath...@gmail.com

unread,
Dec 3, 2018, 11:38:18 AM12/3/18
to jmeter-plugins
HI ,

This is fine for me. Just confirm I am correct with below points:

I need to place :

jain-sip-api-1.2.0-3.jar  -- should place in JMETER_HOME/lib folder
jain-sip-ri-1.2.234.2-hpe-1.jar  -- should place in JMETER_HOME/lib folder
javasimon-core-3.5.2.jar --  should place in JMETER_HOME/lib folder
simulap-plugin-sip-1.10.1.jar  --  should place in JMETER_HOME/ext folder

please confirm is this correct?

DPeyrton

unread,
Dec 4, 2018, 10:38:30 AM12/4/18
to jmeter-...@googlegroups.com
Yes, almost.
simulap-plugin-sip-1.10.1.jar  should be placed in JMETER_HOME/lib/ext folder  
Regards.
David

RAGHU NATH

unread,
Dec 4, 2018, 11:20:48 AM12/4/18
to jmeter-...@googlegroups.com
Hi,

I tried this way. While I am running getting error as sip context not available ?

Any thing I am missing here.


From: jmeter-...@googlegroups.com <jmeter-...@googlegroups.com> on behalf of DPeyrton <chlo...@gmail.com>
Sent: Tuesday, December 4, 2018 4:38:17 PM
To: jmeter-...@googlegroups.com
Subject: Re: [jmeter-plugins] Re: Plugin SIP
 

RAGHU NATH

unread,
Dec 4, 2018, 11:22:03 AM12/4/18
to jmeter-...@googlegroups.com
Sipnode content is not available error I am seeing

From: RAGHU NATH <raghunath...@gmail.com>
Sent: Tuesday, December 4, 2018 5:20:40 PM
To: jmeter-...@googlegroups.com
Subject:
 

DPeyrton

unread,
Dec 4, 2018, 11:24:58 AM12/4/18
to jmeter-...@googlegroups.com
any log ?
when do you get this error ? when starting JMeter or running a scenario ?

RAGHU NATH

unread,
Dec 4, 2018, 12:15:35 PM12/4/18
to jmeter-...@googlegroups.com
When I am running scenario I got this error.

Actually along with jar files , I have changed jmeter properties, upgrade properties and added sip sampler properties to jmeter  as per your simulap repository.

After this only I am able to open jmeter and able to see the sip node and cmd sampler.

Even I am not able to run scenario. Getting sip node context not available. Not sure what I am missing.

Sent: Tuesday, December 4, 2018 5:24:45 PM

raghunath...@gmail.com

unread,
Dec 5, 2018, 4:54:17 AM12/5/18
to jmeter-plugins
Hi ,

Please find below error logs:

2018-12-05 10:52:12,938 ERROR c.h.s.p.s.c.SipNodeContext: createSipStack FAILED for localhost:5060:UDP
javax.sip.PeerUnavailableException: The Peer SIP Stack: gov.nist.javax.sip.SipStackImpl could not be instantiated. Ensure the Path Name has been set.
at javax.sip.SipFactory.createStack(SipFactory.java:324) ~[jain-sip-api-1.2.jar:?]
at javax.sip.SipFactory.createSipStack(SipFactory.java:152) ~[jain-sip-api-1.2.jar:?]
at com.hpe.simulap.protocol.sip.config.SipNodeContext.<init>(SipNodeContext.java:267) [simulap-plugin-sip.jar:0.0-0.0]
at com.hpe.simulap.protocol.sip.config.SipNodeElement.testStarted(SipNodeElement.java:90) [simulap-plugin-sip.jar:0.0-0.0]
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:215) [ApacheJMeter_core.jar:5.0 r1840935]
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:384) [ApacheJMeter_core.jar:5.0 r1840935]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_171]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_171]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_171]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_171]
at javax.sip.SipFactory.createStack(SipFactory.java:314) ~[jain-sip-api-1.2.jar:?]
... 6 more
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/SimpleLayout
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_171]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_171]
at gov.nist.javax.sip.SipStackImpl.<init>(SipStackImpl.java:748) ~[jain-sip-ri-1.2.1111.jar:?]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_171]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_171]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_171]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_171]
at javax.sip.SipFactory.createStack(SipFactory.java:314) ~[jain-sip-api-1.2.jar:?]
... 6 more
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.SimpleLayout
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_171]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_171]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_171]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_171]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_171]
at gov.nist.javax.sip.SipStackImpl.<init>(SipStackImpl.java:748) ~[jain-sip-ri-1.2.1111.jar:?]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_171]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_171]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_171]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_171]
at javax.sip.SipFactory.createStack(SipFactory.java:314) ~[jain-sip-api-1.2.jar:?]
... 6 more


On Tuesday, September 4, 2018 at 1:24:20 PM UTC+2, DPeyrton wrote:

raghunath...@gmail.com

unread,
Dec 9, 2018, 4:59:54 AM12/9/18
to jmeter-plugins
Hi,

Finally this where I struck. Please let me know if any solution is there for this :

2018-12-09 10:58:19,691 WARN o.a.j.e.StandardJMeterEngine: Error encountered during shutdown of com.hpe.simulap.protocol.sip.config.SipNodeElement@17e8701
java.lang.NullPointerException: null
at com.hpe.simulap.protocol.sip.config.SipNodeElement.testEnded(SipNodeElement.java:53) ~[simulap-plugin-sip.jar:0.0-0.0]
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfEnd(StandardJMeterEngine.java:227) [ApacheJMeter_core.jar:5.0 r1840935]
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:495) [ApacheJMeter_core.jar:5.0 r1840935]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]

Thanks,
Raghu

On Tuesday, September 4, 2018 at 1:24:20 PM UTC+2, DPeyrton wrote:

Tarun Aggarwal

unread,
Oct 21, 2022, 5:09:48 AM10/21/22
to jmeter-plugins
Hi Raghunath , 

I am trying to do the load test in Jmeter and facing the same issue which you have mentioned which is 

2022-10-21 13:55:28,938 WARN o.a.j.e.StandardJMeterEngine: Error encountered during shutdown of com.hpe.simulap.protocol.sip.config.SipNodeElement@763d64f
java.lang.NullPointerException: null
    at com.hpe.simulap.protocol.sip.config.SipNodeContext.cleanUp(SipNodeContext.java:636) ~[simulap-plugin-sip-0.0-0.0.jar:0.0-0.0]
    at com.hpe.simulap.protocol.sip.config.SipNodeElement.testEnded(SipNodeElement.java:52) ~[simulap-plugin-sip-0.0-0.0.jar:0.0-0.0]
    at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfEnd(StandardJMeterEngine.java:217) [ApacheJMeter_core.jar:5.3]
    at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:491) [ApacheJMeter_core.jar:5.3]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_341]

Can you please help if you were able to resolve this issue or have used some other mechanism to do the load test for SIP 

RAGHU NATH

unread,
Oct 21, 2022, 5:45:40 AM10/21/22
to jmeter-...@googlegroups.com
Hi Tarun,

If maven runs without any issue, you won't see this error. Anyway I have not used this plugin in real time , So can't provide more inputs.
From: jmeter-...@googlegroups.com <jmeter-...@googlegroups.com> on behalf of Tarun Aggarwal <tarun2...@gmail.com>
Sent: Friday, October 21, 2022 2:39:48 PM
To: jmeter-plugins <jmeter-...@googlegroups.com>
Subject: [jmeter-plugins] Re: Plugin SIP
 
--
You received this message because you are subscribed to a topic in the Google Groups "jmeter-plugins" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jmeter-plugins/xkhtVT3XZhQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jmeter-plugin...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages