Hi Every one,

I created new Sampler, for now the sampler has just 3 fields (Host Name, Port 
and the command to execute) so created 2 classes :
HttpInvokerNewSampler.java
HttpInvokerNewSamplerBeanInfo.java
And also created the property file :
HttpInvokerNewSamplerResources.properties

These files are located in the following package:
package org.apache.jmeter.protocol.http.sampler;

I did run the package target, it run successfully and then  did run run_gui, 
which throwing the following excetion(see below)

run_gui:
     [java] java.lang.Throwable: Could not access 
C:\dev\JMeter-Source\jakarta-jmeter-2.3.4\lib\junit
     [java]     at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:96)
     [java] FATAL_E 2009-10-23 17:28:31.877 [jmeter.J] (): An error occurred: 
     [java] java.lang.RuntimeException: Could not read JMeter properties file
     [java]     at 
org.apache.jmeter.util.JMeterUtils.loadJMeterProperties(JMeterUtils.java:178)
     [java]     at 
org.apache.jmeter.JMeter.initializeProperties(JMeter.java:485)
     [java]     at org.apache.jmeter.JMeter.start(JMeter.java:273)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown 
Source)
     [java]     at java.lang.reflect.Method.invoke(Unknown Source)
     [java]     at org.apache.jmeter.NewDriver.main(NewDriver.java:207)
     [java] An error occurred: Could not read JMeter properties file
     [java] Java Result: 1
BUILD SUCCESSFUL
Total time: 1 second

Why again this error ? could some help me please ? I'm really stock and have to 
advance on this task, any help is much appreciated.

Thank you very much in advance for your response,

Best Regards,

Ghania

-----Original Message-----
From: Jakub Białek [mailto:ragno...@gmail.com] 
Sent: Friday, October 23, 2009 1:41 AM
To: JMeter Users List
Subject: Re: Exception error when Running Jmeter in Eclipse

Hi,

As you see the problem is with properties file. When jmeter start it
looks up properties files in ..\bin directory, so there is 2 ways to
make it happy:
1. put the bin directory with properties file next to jmeter project
directory, so you should have jmeter-project directory and bin
directory on the same level, both in eclipse's workspace directory, or
2. in eclipse go to Profile Configuration, select your jmeter run
cronfiguration and in 'Arguments' view on the bottom in 'Working
directory' section select 'Other' and choose some subdirectory of you
jmeter project i.e. src or lib

Best regards
Jakub


2009/10/22 Ghania Ferrag <ghania.fer...@vantrix.com>:
> Hi Every one,
>
> I created ExtendingJmeterSampler project in Eclipse ( where I did downloaded 
> the Source code and added the Binary libs ).
>  I run the ant target package and it compile successfully, then I want it to 
> Run it under Eclipse and got the following exception( see below)
>
> Do I have to copy manually the Jmeter properties file from 
> ${binaryJmeter_Home_Directory/bin/jmeter.properties} ? in case yes where I do 
> have to leave the file in the Jmeter-source eclipse project ?
>
> If someone get the same error before while trying running Jmeter in Eclipse 
> or knows what's the answer please help me !
>
> Thanks in advance for your responses,
>
> Regards,
>
> Ghania Ferrag
>
> java.lang.RuntimeException: Could not read JMeter properties file
>      at 
> org.apache.jmeter.util.JMeterUtils.loadJMeterProperties(JMeterUtils.java:178)
>      at org.apache.jmeter.JMeter.initializeProperties(JMeter.java:485)
>      at org.apache.jmeter.JMeter.start(JMeter.java:273)
>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>      at java.lang.reflect.Method.invoke(Unknown Source)
>      at org.apache.jmeter.NewDriver.main(NewDriver.java:207)
> An error occurred: Could not read JMeter properties file
>
>

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



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

Reply via email to