Getting error in Jmeter point to point test plan - jmeter

I am getting following error
javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory]
what could be the reason?

As per JMeter Getting started user manual chapter
JMeter includes the JMS API jar, but does not include a JMS client implementation. If you want to run JMS tests, you will need to download the appropriate jars from the JMS provider.
You will need to add the jar activemq-all-X.X.X.jar to your classpath, e.g. by storing it in the lib/ directory.
See ActiveMQ initial configuration page for details.
Don't forget to restart JMeter after placing the activemq-all.jar under JMeter Classpath
More information: Building a JMS Testing Plan - Apache JMeter

Related

Cannot load JDBC driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver' error display while running JMeter load test in VSTS

I am trying to run the JMeter load test in VSTS. As this load test runs successfully on my local machine, but displays an error message while using VSTS.
I am using JDBC Connection Configuration step to create a connection with SQL server database.
Error
2019-12-12 11:58:14,882 WARN o.a.j.p.j.p.AbstractJDBCProcessor: SQL Problem in JDBC PostProcessor: java.sql.SQLException: Cannot load JDBC driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
What you can do is to just simply include the required jar files(in this case jdbc driver jar) along with the other supported files(e.g any csv file for data).
This message usually means that the jar file for class com.microsoft.sqlserver.jdbc.SQLServerDriver was not found in VSTS classpath.
Have a look at this thread which sheds some light on how to achieve this:
Visual Studio Code, Java Extension, howto add jar to classpath

While executing jms point to point the error is: javax.naming.NoInitialContextException: Cannot instantiate class:

The connection is not being established and the error is javax.naming.NoInitialContextException: Cannot instantiate class:com.solacesystems.jndi.SolJNDIInitialContextFactory [Root exception is java.lang.ClassNotFoundException: com.solacesystems.jndi.SolJNDIInitialContextFactory]
You need to add in jmeter/lib folder the jar that contains the jndi classes for your JMS implementation.
This might help:
https://repo1.maven.org/maven2/com/solacesystems/sol-jms/10.0.2/sol-jms-10.0.2.pom
You are missing sol-jms-10.3.0.jar which you can download/ use maven from Solace JMS API site.
JMS jars need to be added to JMeter's lib folder. see JMeter classpath:
Other jars (such as JDBC, JMS implementations and any other support libraries needed by the JMeter code) should be placed in the lib directory - not the lib/ext directory, or added to user.classpath.
That's definitely the issue of missing dependency of SOL JMS implementation
Please add the one like (gradle example):
implementation 'com.solacesystems:sol-jms:10.6.3'

could not find a provider for the InitialContextFactory com.sonicsw.jndi.mfcontext.MFContextFactory

I am getting this exception when i am trying to start the WAS server. I have created JMS providers in console and set all the jar files in the classpath.
External initial context factory defined is com.sonicsw.jndi.mfcontext.MFContextFactory with a valid URL.
I am not sure if the issue is with websphere configuration settings or code.
Can someone please provide any context to move forward?
Can you add more information?
classpath, properties set up for your connector
check this documentation :
http://documentation.progress.com/output/Sonic/8.5.1/jca_books/resadapwas_guide.pdf
regards

Configuring WebLogic Logging for Commons Logging

I'm writing a Spring web application deployed to a WebLogic 10.3.3 server. I've tried to enable logging as described by the Oracle documentation here: http://docs.oracle.com/cd/E14571_01/web.1111/e13739/config_logs.htm#WLLOG154
Both commons-logging-1.1.1.jar and com.bea.core.weblogic.commons.logging_1.4.0.0.jar are placed in the lib folder of the WebLogic domain, and I'm attempting to initialize the logger exactly as described in the Oracle example. I see the following exception in the server console:
Caused by: org.apache.commons.logging.LogConfigurationException: The chosen
LogFactory implementation does not extend LogFactory. Please check your
configuration. (Caused by java.lang.ClassCastException:weblogic.logging.commons.LogFactoryImpl)
Does anyone know of any possible solutions?
Works for me. Seems like a classloader issue.
Check whether another commons-logging lib is not loaded before application provided commons-logging.

Publishing messages on HornetQ using JMeter

I'm developing a project wich is using HornetQ, and I want to publish some messages on it to execute a load test using JMeter. Does anyone here ever tried anything like it?
How can I configure JMeter to publish messages on HornetQ?
I already copied all the jars to the JMeter lib and filled all the fields on the "JMS Publisher Sampler". How can I proceed? Any example or JMX file which I could use as an example?
Add HornetQ JARs to jmeter/lib folder
Then for configuration of JMS Sampler use this:
http://docs.jboss.org/hornetq/2.2.5.Final/user-manual/en/html/using-jms.html

Resources