Hello,
I was successful in converting (see the steps below, for the case somebody
else encounter the problem). JMeter 2.1.1 reads the testcase fine.
However it does not perform it as it did in the 2.0.x.
In the past I was asked for the password for the keystore.
Now this is not the case. JMeter just sends the requests and complains:

avax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: No trusted certificate found
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA12275)
at org.apache.commons.httpclient.HttpConnection$WrappedOutputStream.write(
HttpConnection.java:1368)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(
HttpConnection.java:799)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(
HttpMethodBase.java:2277)
at org.apache.commons.httpclient.HttpMethodBase.processRequest(
HttpMethodBase.java:2657)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java
:1093)
at org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(
HTTPSampler2.java:436)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(
HTTPSamplerBase.java:514)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(
HTTPSamplerBase.java:503)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
at java.lang.Thread.run(Thread.java:534)
Caused by: sun.security.validator.ValidatorException: No trusted certificate
found
at sun.security.validator.SimpleValidator.buildTrustedChain(
SimpleValidator.java:304)
at sun.security.validator.SimpleValidator.engineValidate(
SimpleValidator.java:107)
at sun.security.validator.Validator.validate(Validator.java:202)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted
(DashoA12275)
at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted
(DashoA12275)
... 19 more

I did the following:
1. Export certificate as DER
2. In %JAVA_HOME%\jre\lib\security I performed:
C:\Programme\j2sdk1.4.2_05\jre\lib\security>..\..\..\bin\keytool -import
-trustcacerts -alias DB_ROOT_CA_2 -file c:\temp\db-root-ca.cer -keystore
deuba_root
3. In jmeter.bat in the line calling JMeter I put
-
Djavax.net.ssl.trustStore=C:\Programme\j2sdk1.4.2_05\jre\lib\security\deuba_root

But the problem remains. I must be missing something...
Can anybody help?


=== HTTPSampler to HTTPSampler2 convertion ===

If the testcase was created with an old version, load it into 2.1.1 and save
it.
Edit the testcase and replace the following

Old
===
<HTTPSampler>
<stringProp name="TestElement.test_class">
org.apache.jmeter.protocol.http.sampler.HTTPSampler</stringProp>
<stringProp name="TestElement.gui_class">
org.apache.jmeter.protocol.http.control.gui.HttpTestSampleGui</stringProp>
</HTTPSampler>

New
===
<HTTPSampler2>
<stringProp name="TestElement.test_class">
org.apache.jmeter.protocol.http.sampler.HTTPSampler2</stringProp>
<stringProp name="TestElement.gui_class">
org.apache.jmeter.protocol.http.control.gui.HttpTestSampleGui2</stringProp>
</HTTPSampler2>



On 10/19/05, sebb <[EMAIL PROTECTED]> wrote:
>
> Create two identical test plans, one with each sampler and compare them.
>
> Make sure that the editting script is as specific as possible when
> changing strings - i.e. include as much context as possible to ensure
> only the correct strings are changed.
>
> S.
> On 19/10/05, Nop Lists <[EMAIL PROTECTED]> wrote:
> > Yes, probably. And this is exactly the problem - how do I know what to
> > convert and what not?
> > Has anybody done such a convertion before?
> > Changing manually each and every sampler is really a awkward...
> > If I knew WHERE JMeter has problems loading the jmx-file I could
> "deconvert"
> > the disturbing positions. Problem is, jmeter.log is not very
> informative...
> > Thanks
> > NL
> >
> > On 10/19/05, sebb <[EMAIL PROTECTED]> wrote:
> > >
> > > Perhaps you've converted too many strings.
> > >
> > > For example:
> > >
> > > httpsampler2.basicauth=false
> > >
> > > does not look right.
> > >
> > > S.
> > > On 19/10/05, Nop Lists <[EMAIL PROTECTED]> wrote:
> > > > Hello,
> > > > because of problems in a load test involving HTTPS I want to convert
> all
> > > my
> > > > HTTPSampler-components to HTTPSampler2-components.
> > > > What is the quickest and most safety way to do this?
> > > >
> > > > I converted with a text editor all
> > > > HTTPSampler to HTTPSampler2
> > > > and
> > > > HttpTestSampleGui to HttpTestSampleGui2
> > > > but JMeter complains when loading the new jmx-file.
> > > > Here the logfile:
> > > >
> > > > 2005/10/19 11:29:46 INFO - jmeter.util.JMeterUtils: Setting Locale
> to
> > > de_DE
> > > > 2005/10/19 11:29:46 INFO - jmeter.JMeter: Version 2.1.1
> > > > 2005/10/19 11:29:46 INFO - jmeter.JMeter: java.version=1.4.2_05
> > > > 2005/10/19 11:29:46 INFO - jmeter.JMeter: Locale=Deutsch
> (Deutschland)
> > > > 2005/10/19 11:29:46 INFO - jmeter.JMeter: Copyright (c) 1998-2005
> The
> > > Apache
> > > > Software Foundation
> > > > 2005/10/19 11:29:46 INFO - jmeter.JMeter: Loaded icon properties
> from
> > > > org/apache/jmeter/images/icon.properties
> > > > 2005/10/19 11:29:48 INFO -
> > > > jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Entered
> access
> > > log
> > > > sampler bean info
> > > > 2005/10/19 11:29:48 INFO -
> > > > jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: found
> parsers: [
> > > >
> org.apache.jmeter.protocol.http.util.accesslog.OrderPreservingLogParser,
> > > > org.apache.jmeter.protocol.http.util.accesslog.SharedTCLogParser,
> > > > org.apache.jmeter.protocol.http.util.accesslog.TCLogParser]
> > > > 2005/10/19 11:29:48 INFO -
> > > > jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Got to end of
> > > access
> > > > log samper bean info init
> > > > 2005/10/19 11:29:48 WARN - jmeter.gui.util.MenuFactory: Missing jar?
> > > Could
> > > > not create org.apache.jmeter.visualizers.MailerVisualizer.
> > > > java.lang.NoClassDefFoundError: javax/mail/MessagingException
> > > > 2005/10/19 11:29:49 INFO - jmeter.samplers.SampleResult: Note:
> Sample
> > > > TimeStamps are END times
> > > > 2005/10/19 11:29:49 INFO - jmeter.samplers.SampleResult:
> > > > sampleresult.default.encoding is set to ISO-8859-1
> > > > 2005/10/19 11:30:01 INFO - jmeter.gui.action.Load: Loading file:
> > > > C:\programme\jakarta-
> > > > jmeter-2.1.1\CPO\CoSMOS_NDC_2005-10-19_ihwk_Sampler2.jmx
> > > > 2005/10/19 11:30:01 INFO - jmeter.protocol.http.sampler.HTTPSampler2
> :
> > > > httpsampler2.basicauth=false
> > > > 2005/10/19 11:30:01 INFO - jmeter.save.SaveService: Using
> SaveService
> > > > properties file 1.7
> > > > 2005/10/19 11:30:01 WARN - jmeter.save.SaveService: Could not set up
> > > alias
> > > > WebServiceSampler java.lang.NoClassDefFoundError:
> > > > javax/mail/MessagingException
> > > > 2005/10/19 11:30:01 INFO - jmeter.save.SaveService: All converter
> > > versions
> > > > present and correct
> > > > 2005/10/19 11:30:01 WARN - jmeter.save.SaveService: Problem loading
> new
> > > > style: node : node
> > > > 2005/10/19 11:30:02 WARN - jmeter.gui.action.Load: Unexpected error
> > > > java.lang.NullPointerException
> > > > at org.apache.jmeter.gui.AbstractJMeterGuiComponent.configure(
> > > > AbstractJMeterGuiComponent.java:163)
> > > > at org.apache.jmeter.config.gui.ArgumentsPanel.configure(
> > > ArgumentsPanel.java
> > > > :166)
> > > > at org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel.configure(
> > > > HTTPArgumentsPanel.java:91)
> > > > at
> org.apache.jmeter.protocol.http.config.gui.HttpDefaultsGui.configure(
> > > > HttpDefaultsGui.java:98)
> > > > at org.apache.jmeter.gui.tree.JMeterTreeModel.addComponent(
> > > > JMeterTreeModel.java:109)
> > > > at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(
> > > > JMeterTreeModel.java:95)
> > > > at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(
> > > > JMeterTreeModel.java:95)
> > > > at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(
> > > > JMeterTreeModel.java:88)
> > > > at org.apache.jmeter.gui.GuiPackage.addSubTree(GuiPackage.java:457)
> > > > at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:135)
> > > > at org.apache.jmeter.gui.action.Load.doAction(Load.java:94)
> > > > at org.apache.jmeter.gui.action.ActionRouter.performAction(
> > > ActionRouter.java
> > > > :76)
> > > > at org.apache.jmeter.gui.action.ActionRouter.access$000(
> > > ActionRouter.java
> > > > :44)
> > > > at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java
> :61)
> > > > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
> > > > at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
> > > > at java.awt.EventDispatchThread.pumpOneEventForHierarchy(
> > > > EventDispatchThread.java:201)
> > > > at java.awt.EventDispatchThread.pumpEventsForHierarchy(
> > > > EventDispatchThread.java:151)
> > > > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java
> :145)
> > > > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java
> :137)
> > > > at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
> > > >
> > > >
> > > >
> > > > Thanks
> > > > NL
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to