[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jmeter-user
Subject:    Re: Using JMS point to point
From:       waseemfa <fazal.waseem () gmail ! com>
Date:       2010-06-24 9:55:01
Message-ID: 28980809.post () talk ! nabble ! com
[Download RAW message or body]


Hi,

I have activemq-all-5.3.0.jar in the lib folder but it still gives the same
error.

-Waseem


sebb-2-2 wrote:
> 
> http://activemq.apache.org/initial-configuration.html
> 
> 2010/6/24 Joćo Tiago Ferreira <joao.tiago.ferreira@novabase.pt>:
>> I think those jars have the same classes. What is missing is the JMS
>> implementation, in this case ActiveMQ. Maybe try one of these:
>> http://www.findjar.com/index.x?query=activemq
>>
>>> -----Original Message-----
>>> From: waseemfa [mailto:fazal.waseem@gmail.com]
>>> Sent: quinta-feira, 24 de Junho de 2010 6:50
>>> To: jmeter-user@jakarta.apache.org
>>> Subject: Re: Using JMS point to point
>>>
>>>
>>>
>>> I have copied jms.jar and javax.jms.jar into the lib folder
>>>
>>>
>>> Deepak Shetty wrote:
>>> >
>>> > org.activemq.jndi.
>>> >>
>>> >> ActiveMQInitialContextFactory [Root exception is
>>> >> java.lang.ClassNotFoundException:
>>> >>
>>> > Did you copy all the needed jars into jmeter/lib
>>> >
>>> > regards
>>> > deepak
>>> >
>>> >
>>> > On Wed, Jun 23, 2010 at 3:59 AM, waseemfa <fazal.waseem@gmail.com>
>>> wrote:
>>> >
>>> >>
>>> >> I get the following error in Jmeter logs when i try to run a test
>>> using
>>> >> JMS
>>> >> P2P.
>>> >>
>>> >> Can any suggest me whats wrong?
>>> >>
>>> >>
>>> >> --------------------------------------------------------------------
>>> ----------------------------
>>> >> 2010/06/21 15:49:57 WARN  - jmeter.protocol.jms.sampler.JMSSampler:
>>> >> Cannot
>>> >> instantiate class: org.activemq.jndi.ActiveMQInitialContextFactory
>>> >> javax.naming.NoInitialContextException: Cannot instantiate class:
>>> >> org.activemq.jndi.ActiveMQInitialContextFactory [Root exception is
>>> >> java.lang.ClassNotFoundException:
>>> >> org.activemq.jndi.ActiveMQInitialContextFactory]
>>> >>        at javax.naming.spi.NamingManager.getInitialContext(Unknown
>>> >> Source)
>>> >>        at javax.naming.InitialContext.getDefaultInitCtx(Unknown
>>> Source)
>>> >>        at javax.naming.InitialContext.init(Unknown Source)
>>> >>        at javax.naming.InitialContext.<init>(Unknown Source)
>>> >>        at
>>> >>
>>> >>
>>> org.apache.jmeter.protocol.jms.sampler.JMSSampler.getInitialContext(JMS
>>> Sampler.java:399)
>>> >>        at
>>> >>
>>> >>
>>> org.apache.jmeter.protocol.jms.sampler.JMSSampler.threadStarted(JMSSamp
>>> ler.java:294)
>>> >>        at
>>> >>
>>> >>
>>> org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(
>>> JMeterThread.java:504)
>>> >>        at
>>> >>
>>> org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:984)
>>> >>        at
>>> >> org.apache.jorphan.collections.HashTree.traverse(HashTree.java:967)
>>> >>        at
>>> >>
>>> org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:
>>> 479)
>>> >>        at
>>> >>
>>> org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:468)
>>> >>        at
>>> >> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:239)
>>> >>        at java.lang.Thread.run(Unknown Source)
>>> >> Caused by: java.lang.ClassNotFoundException:
>>> >> org.activemq.jndi.ActiveMQInitialContextFactory
>>> >>        at java.net.URLClassLoader$1.run(Unknown Source)
>>> >>        at java.security.AccessController.doPrivileged(Native Method)
>>> >>        at java.net.URLClassLoader.findClass(Unknown Source)
>>> >>        at java.lang.ClassLoader.loadClass(Unknown Source)
>>> >>        at java.lang.ClassLoader.loadClass(Unknown Source)
>>> >>        at java.lang.Class.forName0(Native Method)
>>> >>        at java.lang.Class.forName(Unknown Source)
>>> >>        at com.sun.naming.internal.VersionHelper12.loadClass(Unknown
>>> >> Source)
>>> >>        ... 13 more
>>> >>
>>> >> 2010/06/21 15:49:57 WARN  - jmeter.protocol.jms.sampler.JMSSampler:
>>> >> Session
>>> >> may not be null while creating message
>>> java.lang.IllegalStateException:
>>> >> Session may not be null while creating message
>>> >>        at
>>> >>
>>> >>
>>> org.apache.jmeter.protocol.jms.sampler.JMSSampler.createMessage(JMSSamp
>>> ler.java:173)
>>> >>        at
>>> >>
>>> >>
>>> org.apache.jmeter.protocol.jms.sampler.JMSSampler.sample(JMSSampler.jav
>>> a:136)
>>> >>        at
>>> >>
>>> >>
>>> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.jav
>>> a:346)
>>> >>        at
>>> >> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
>>> >>        at java.lang.Thread.run(Unknown Source)
>>> >>
>>> >> --------------------------------------------------------------------
>>> ---------------------------
>>> >>
>>> >> Thanks,
>>> >> Waseem
>>> >>
>>> >> waseemfa wrote:
>>> >> >
>>> >> > Hi,
>>> >> >
>>> >> > i am using JMS Publisher and JMS subscriber for Topics and JMS
>>> Point to
>>> >> > Point sampler for Queues
>>> >> >
>>> >> >
>>> >> >
>>> >> > Joćo Tiago Ferreira wrote:
>>> >> >>
>>> >> >> Hi
>>> >> >>
>>> >> >> I only have experience with Tibco JMS and it does not require
>>> jndi
>>> >> >> property file, maybe because it is my local JMS provider and has
>>> the
>>> >> >> default configurations...
>>> >> >>
>>> >> >> I only use the following settings: Initial Context Factory,
>>> Prodiver
>>> >> URL,
>>> >> >> and Connection Factory, and Topic ofc.
>>> >> >>
>>> >> >> However I am not certain of which sampler you are using. You
>>> mention
>>> >> >> topics, then queues :s ....
>>> >> >>
>>> >> >> Best Regards
>>> >> >>
>>> >> >> Joćo Ferreira
>>> >> >>
>>> >> >>> -----Original Message-----
>>> >> >>> From: waseemfa [mailto:fazal.waseem@gmail.com]
>>> >> >>> Sent: terēa-feira, 22 de Junho de 2010 7:21
>>> >> >>> To: jmeter-user@jakarta.apache.org
>>> >> >>> Subject: RE: Using JMS point to point
>>> >> >>>
>>> >> >>>
>>> >> >>> Hi,
>>> >> >>>
>>> >> >>> Could some one guide me how the JNDI property file should look
>>> like.
>>> >> >>> Previously when i tested the application for "TOPICS" i used to
>>> call
>>> >> >>> the
>>> >> >>> topic by "topic.MyTopic = TopicName".  Apart from the broker
>>> details,
>>> >> >>> how do
>>> >> >>> i specify the Queue name that I will be using.
>>> >> >>>
>>> >> >>>
>>> >> >>>
>>> >> >>>
>>> >> >>> waseemfa wrote:
>>> >> >>> >
>>> >> >>> > Thanks for the reply.
>>> >> >>> >
>>> >> >>> > While running JMS P2P through JMeter what additional .jar
>>> files do
>>> >> we
>>> >> >>> > require.
>>> >> >>> >
>>> >> >>> >
>>> >> >>> >
>>> >> >>> >
>>> >> >>> > Joćo Tiago Ferreira wrote:
>>> >> >>> >>
>>> >> >>> >> Hi
>>> >> >>> >>
>>> >> >>> >> http://jakarta.apache.org/jmeter/usermanual/build-jms-point-
>>> to-
>>> >> >>> point-test-plan.html
>>> >> >>> >> should be a good start point. Another completely different
>>> way of
>>> >> >>> testing
>>> >> >>> >> java JMS code is using a mock JMS provider, I currently use
>>> >> >>> >> http://mockrunner.sourceforge.net/.  I hope it helps
>>> >> >>> >>
>>> >> >>> >> Best Regards
>>> >> >>> >>
>>> >> >>> >> Joćo Ferreira
>>> >> >>> >>
>>> >> >>> >>> -----Original Message-----
>>> >> >>> >>> From: waseemfa [mailto:fazal.waseem@gmail.com]
>>> >> >>> >>> Sent: segunda-feira, 21 de Junho de 2010 10:26
>>> >> >>> >>> To: jmeter-user@jakarta.apache.org
>>> >> >>> >>> Subject: Using JMS point to point
>>> >> >>> >>>
>>> >> >>> >>>
>>> >> >>> >>> Hi all,
>>> >> >>> >>>
>>> >> >>> >>> I am currently testing an application that uses Queues.  I
>>> am new
>>> >> >>> to
>>> >> >>> >>> this
>>> >> >>> >>> kind of testing.  Could someone guide me how to run a test
>>> using
>>> >> >>> JMS
>>> >> >>> >>> Point-to-Point in Jmeter.
>>> >> >>> >>>
>>> >> >>> >>> Thanks in advance,
>>> >> >>> >>> Waseem
>>> >> >>> >>> --
>>> >> >>> >>> View this message in context: http://old.nabble.com/Using-
>>> JMS-
>>> >> >>> point-to-
>>> >> >>> >>> point-tp28946564p28946564.html
>>> >> >>> >>> Sent from the JMeter - User mailing list archive at
>>> Nabble.com.
>>> >> >>> >>>
>>> >> >>> >>>
>>> >> >>> >>>
>>> >> -------------------------------------------------------------------
>>> >> >>> --
>>> >> >>> >>> To unsubscribe, e-mail:
>>> >> jmeter-user-unsubscribe@jakarta.apache.org
>>> >> >>> >>> For additional commands, e-mail: jmeter-user-
>>> >> >>> help@jakarta.apache.org
>>> >> >>> >>>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> --------------------------------------------------------------------
>>> >> >>> -
>>> >> >>> >> To unsubscribe, e-mail: jmeter-user-
>>> unsubscribe@jakarta.apache.org
>>> >> >>> >> For additional commands, e-mail:
>>> >> jmeter-user-help@jakarta.apache.org
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >
>>> >> >>> >
>>> >> >>>
>>> >> >>> --
>>> >> >>> View this message in context:
>>> >> http://old.nabble.com/Using-JMS-point-to-
>>> >> >>> point-tp28946564p28956536.html
>>> >> >>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>> >> >>>
>>> >> >>>
>>> >> >>> ----------------------------------------------------------------
>>> -----
>>> >> >>> To unsubscribe, e-mail: jmeter-user-
>>> unsubscribe@jakarta.apache.org
>>> >> >>> For additional commands, e-mail: jmeter-user-
>>> help@jakarta.apache.org
>>> >> >>>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >
>>> >> >
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >> http://old.nabble.com/Using-JMS-point-to-point-
>>> tp28946564p28970326.html
>>> >> Sent from the JMeter - User mailing list archive at Nabble.com.
>>> >>
>>> >>
>>> >> --------------------------------------------------------------------
>>> -
>>> >> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>> >> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>> >>
>>> >>
>>> >
>>> >
>>>
>>> --
>>> View this message in context: http://old.nabble.com/Using-JMS-point-to-
>>> point-tp28946564p28979117.html
>>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Using-JMS-point-to-point-tp28946564p28980809.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic