jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rutherford, Matthew [CIB-IT]" <matthew.rutherf...@citigroup.com>
Subject NPE on org.apache.jmeter.protocol.jms.client.Publisher.initConnection(Publisher.java:86)
Date Wed, 02 Aug 2006 11:05:27 GMT
Hi
I have avoided the ldap route for setting jndi props for now and am supplying actual jndi
values to my (TibcoEMS) jms publisher sampler.  I supply the following settings:
InitialContextFactory:	com.tibco.tibjms.naming.TibjmsInitialContextFactory
ProviderURL:		tcp://hostname:port
ConnectionFactory:	jndiNameOfFactory
Topic:			jndiNameOfTopic

Authentication is used, and cfg is in txt format from a file.

When I run the test, I get the following:

2006/08/01 18:41:09 INFO  - jmeter.protocol.jms.client.InitialContextFactory: created the
JNDI initial context factory 
2006/08/01 18:41:09 ERROR - jmeter.threads.JMeterThread:  java.lang.NullPointerException
	at org.apache.jmeter.protocol.jms.client.Publisher.initConnection(Publisher.java:86)
	at org.apache.jmeter.protocol.jms.client.Publisher.<init>(Publisher.java:63)
	at org.apache.jmeter.protocol.jms.sampler.PublisherSampler.initClient(PublisherSampler.java:110)
	at org.apache.jmeter.protocol.jms.sampler.PublisherSampler.sample(PublisherSampler.java:134)
	at org.apache.jmeter.protocol.jms.sampler.PublisherSampler.sample(PublisherSampler.java:121)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
	at java.lang.Thread.run(Unknown Source)

from what I can tell in the jmeter src the call to ctx.lookup(fac), where fac is the jndiNameOfFactory
string, is not returning an instanceof TopicConnectionFactory...

Do I need to supply more parameters/different ones?

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


Mime
View raw message