Hi Sebb,

Thank you very much for your response, it's run successfully after creating 
junit folder!
My Best regards,

Ghania

-----Original Message-----
From: sebb [mailto:[email protected]] 
Sent: Monday, October 26, 2009 4:54 PM
To: JMeter Users List
Subject: Re: New added Sampler and Exception error when Running Jmeter in 
Eclipse

On 26/10/2009, Ghania Ferrag <[email protected]> wrote:
> Hi Jakub,
>
>  Thank you very much for your response, and to answer your question, yes I 
> did copy lib and bin from the binary distribution (C:\Program 
> Files\jakarta-jmeter\jakarta-jmeter-2.3.4\)to my source directory 
> C:\dev\JMeter-Source\jakarta-jmeter-2.3.4\. For now didn't I didn't change 
> the build, just created the mentioned classes and property files below and 
> recompile and run Jmeter under Eclipse.
>
>  Any  idea ?

The stack traces clearly says:

java.lang.Throwable: Could not access
C:\dev\JMeter-Source\jakarta-jmeter-2.3.4\lib\junit

Try creating the junit directory.

>  Thanks again for your response,
>
>
>  Ghania
>
>  -----Original Message-----
>  From: Jakub Białek [mailto:[email protected]]
>
> Sent: Monday, October 26, 2009 2:48 AM
>  To: JMeter Users List
>
> Subject: Re: New added Sampler and Exception error when Running Jmeter in 
> Eclipse
>
>  Hi,
>
>  Do you have test.jar in
>  C:\dev\JMeter-Source\jakarta-jmeter-2.3.4\lib\junit? You need to copy
>  at least lib and bin directory (from jmeter binary distribution) to
>  C:\dev\JMeter-Source\jakarta-jmeter-2.3.4\ if you want to start jmeter
>  from this directory.
>
>  Best regards,
>  Jakub
>
>
>  2009/10/23 Ghania Ferrag <[email protected]>:
>  > 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:[email protected]]
>  > 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 <[email protected]>:
>  >> 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: [email protected]
>  > For additional commands, e-mail: [email protected]
>  >
>  >
>  >
>  > ---------------------------------------------------------------------
>  > 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]
>
>
>
>  ---------------------------------------------------------------------
>  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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to