Hi,
My Ovo does have a default constructor and all the other constructor and methods are
public.
I have uploaded the jar file and then clicked on: Save & Validate and also 'Build
Package'.
I have 2 packages with classes in my .jar file. Could that be a problem in any way??
When I try to run 'RunAll Test Scenarios' the tests run but the rules do not run
and I get the same constructor not found error!
Any idea? Please help.
Could it have anything to do with the path set for the environment variables of Java or
MVN?? I set is as per the tutorial online.
Thanks
Jillika
Today's Topics:
1. Re: error running test scenarios (Esteban Aliverti)
----------------------------------------------------------------------
Message: 1
Date: Fri, 28 May 2010 18:11:34 -0300
From: Esteban Aliverti <esteban.aliverti(a)gmail.com>
Subject: Re: [rules-users] error running test scenarios
To: Rules Users List <rules-users(a)lists.jboss.org>
Message-ID:
<AANLkTinOoXQdV9TTDZfnattv0MDmCftIT4FnytPKciHb(a)mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Can you double check that you have a public non-args constructor in Ovo
class? Did you update your jar model and recompile the package in guvnor?
Best,
2010/5/28 Fnu Mahalakshmi <FMahalakshmi(a)nyx.com>
------------------------------
*From:* Fnu Mahalakshmi
*Sent:* Friday, May 28, 2010 3:43 PM
*To:* 'rules-users-request(a)lists.jboss.org'
*Subject:* error running test scenarios
Hi,
I am working on a drools application and I am getting the following error:
I import java files to my application and then create the rules + test
scenarios to run them.
Attaching a jar file of the java classes.
My Test Case:
Run scenario
GIVEN
insert [Ovo]
[TestOvoUseType]
ipAddress:
useType:
EXPECT
Use real date and time Use a simulated date and time
Expect rules
Production Ips:
fired at least once did not fire fired this many times: Choose...
More...
(configuration)
Allow these rules to fire: Prevent these rules from firing: All rules
may fire
(globals)
Test for checking Production Ips
Title: [*ProdIp Test*]
[show more info...]
Rules case:
WHEN
Ovo
useType
--- please choose --- is equal to is not equal to matches sounds like
THEN
Insert *Ip*
type
(options)
* *
*View source*
* *
* *
*Validate*
* *
Ips in Ovo are Production Ips
Title: [*Production Ips*]
[show more info...]
Error stack:
15:36:25,517 INFO [STDOUT] ERROR 28-05 15:36:25,507
(ServiceImplementation.java:runScenario:1942) [Error: unable to find
constructor for:
org.servers.Ovo]
[Near : {... new org.servers.Ovo( ....}]
^
[Line: 1, Column:
0]
I have defined the constructor in the Ovo class and Ip class respectively.
Please let me know if you can throw some light on this.
Thanks,
Jillika
------------------------------
*Please consider the environment before printing this email.*
*Visit our website at
http://www.nyse.com
*****************************************************************************
Note: The information contained in this message and any attachment to it is
privileged, confidential and protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited. If you have received this
communication in error, please notify the sender immediately by replying to
the message, and please delete it from your system. Thank you. NYSE
Euronext. *
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users