Mail Archive Home | clif List | June 2004 Index
Re: [clif] runnig clif examples
- Subject: Re: [clif] runnig clif examples
- From: Bruno Dillenseger <bruno.dillenseger@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 04 Jun 2004 16:03:52 +0200
Medhi Kessis wrote:
>>> thanks, with the latest version the problem is resolved with
>>> Autotest example but I have still some problems with the Webtest
>>> example.
>>>
>>> java.lang.NullPointerException
>>> [java] at java.io.Reader.<init>(Reader.java:61)
>>> [java] at
>>> java.io.InputStreamReader.<init>(InputStreamReader.java:55)
>>> [java] at Webtest.initURLs(Webtest.java:63)
>>> [java] at Webtest.newSession(Webtest.java:106)
>>> [java] at
>>>
org.objectweb.clif.scenario.util.multithread.MTScenario.init(MTScenario.java:172)
>>>
>>> [java] at
>>>
org.objectweb.fractal.julia.generated.C2526c5d2_0.init(INTERCEPTOR[ActivityControl])
>>>
>>> [java] at
>>>
org.objectweb.fractal.julia.generated.Ca9a59b57_0.init(INTERFACE[ActivityControl])
>>>
>>> [java] at
>>>
org.objectweb.clif.engine.lib.controller.ControllerImpl.do_init(ControllerImpl.java:376)
>>>
>>> [java] at
>>>
org.objectweb.clif.engine.lib.controller.ControllerImpl.run(ControllerImpl.java:134)
>>>
>>> [java] at java.lang.Thread.run(Thread.java:534)
>>> [java] java.lang.NullPointerException
>>> [java] at Webtest$Session.<init>(Webtest.java:126)
>>> [java] at Webtest.newSession(Webtest.java:108)
>>> [java] at
>>>
org.objectweb.clif.scenario.util.multithread.MTScenario.init(MTScenario.java:172)
>>>
>>> [java] at
>>>
org.objectweb.fractal.julia.generated.C2526c5d2_0.init(INTERCEPTOR[ActivityControl])
>>>
>>> [java] at
>>>
org.objectweb.fractal.julia.generated.Ca9a59b57_0.init(INTERFACE[ActivityControl])
>>>
>>> [java] at
>>>
org.objectweb.clif.engine.lib.controller.ControllerImpl.do_init(ControllerImpl.java:376)
>>>
>>> [java] at
>>>
org.objectweb.clif.engine.lib.controller.ControllerImpl.run(ControllerImpl.java:134)
>>>
>>> [java] at java.lang.Thread.run(Thread.java:534)
>>> [java] Webtest requires 2 arguments: <think time in s> <file
>>> containing URL list>
>>> [java] webtest.urls
>>> [java] java.lang.NullPointerException
>>> what do you think about this error message ?
>>
>>
>>
>> It seems that you did not provide arguments enough. This scenario
>> requires 4 arguments: number of threads, test duration (s), think
>> time (s), and a filename (e.g. provided webtest.urls, filled with
>> your own URLs, and copied to examples/classes directory - as managed
>> by build.xml in examples directory).
>
>
> I have passed the 4 arguments like this: 120 120 5 webtest.urls
> I have tried this before sending my first mail. It seams that that it
> cant find the url file in the classpath.
Yes, you must be right.
Could you please check the following:
1- you have invoked ant command in examples/ directory of CLIF binary
distribution,
2- the webtest.urls file is present (all lower case) and readable (with
regard to file access rights) in examples/classes directory,
3- you have edited webtest.urls in examples/classes to set the URLs you
want to test
4- the java.rmi.server.codebase property includes URL
http://your_console_hostname:1357/examples/classes/ (with the trailing /),
5- the working directory when launching the console is the root
directory of CLIF binary distribution
I suspect requirement 2 is not met. If you can't make it work, please
send me the result of ls -lR of your CLIF installation, and your
etc/clif.props.
Regards,
-- Bruno.
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.