Re: [rules-users] error running Test Scenarios
by Fnu Mahalakshmi
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
>
>
--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
15 years, 9 months
error uploading jar files: please help
by Mahalakshmi
hi,
I am a new drools user.
I setup the guvnor standalone install from the drools website.
Problem occurs when i upload a .jar file while i created using eclipse.
It shows that the jar file has uploaded successfully but I am unable to
'save & validate'
I get error: "contact system administrator"
When I do 'Build Package' I get error: Pojos have loaded .class files using
java version 1.6 and guvnor is using java version 1.5
I am not understanding how I could change the java version used.
Does it have anything to do with my eclipse? I set my project settings (when
I create a new java project) as J2SE1.5 and JRE6.
Is that the issue???
Please help.
The stack trace I get is:
11:39:44,904 ERROR [STDERR]
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public
abstract org.drools.guvnor.client.modeldriven.SuggestionCompletionEngine
org.drools.guvnor.client.rpc.RepositoryService.loadSuggestionCompletionEngine(java.lang.String)
throws com.google.gwt.user.client.rpc.SerializableException' threw an
unexpected exception: java.lang.reflect.InvocationTargetException
11:39:44,904 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:360)
11:39:44,904 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:546)
11:39:44,904 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
11:39:44,904 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
11:39:44,904 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
11:39:44,904 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
11:39:44,904 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
11:39:44,904 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
11:39:44,904 ERROR [STDERR] at
org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
11:39:44,905 ERROR [STDERR] at
org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
11:39:44,905 ERROR [STDERR] at
org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
11:39:44,905 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
11:39:44,905 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
11:39:44,905 ERROR [STDERR] at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
11:39:44,905 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
11:39:44,905 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
11:39:44,905 ERROR [STDERR] at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
11:39:44,906 ERROR [STDERR] at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
11:39:44,906 ERROR [STDERR] at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
11:39:44,906 ERROR [STDERR] at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
11:39:44,906 ERROR [STDERR] at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
11:39:44,906 ERROR [STDERR] at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
11:39:44,906 ERROR [STDERR] at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
11:39:44,906 ERROR [STDERR] at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
11:39:44,906 ERROR [STDERR] at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
11:39:44,907 ERROR [STDERR] at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
11:39:44,907 ERROR [STDERR] at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
11:39:44,907 ERROR [STDERR] at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
11:39:44,907 ERROR [STDERR] at java.lang.Thread.run(Thread.java:613)
11:39:44,907 ERROR [STDERR] Caused by:
java.lang.reflect.InvocationTargetException
11:39:44,907 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:39:44,907 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:39:44,907 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:39:44,907 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:585)
11:39:44,907 ERROR [STDERR] at
org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
11:39:44,907 ERROR [STDERR] at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
11:39:44,907 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
11:39:44,909 ERROR [STDERR] at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
11:39:44,909 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
11:39:44,909 ERROR [STDERR] at
org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
11:39:44,909 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
11:39:44,909 ERROR [STDERR] at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
11:39:44,910 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
11:39:44,910 ERROR [STDERR] at
org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:157)
11:39:44,910 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
11:39:44,910 ERROR [STDERR] at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
11:39:44,910 ERROR [STDERR] at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
11:39:44,910 ERROR [STDERR] at
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
11:39:44,910 ERROR [STDERR] at
org.drools.guvnor.server.ServiceImplementation_$$_javassist_7.loadSuggestionCompletionEngine(ServiceImplementation_$$_javassist_7.java)
11:39:44,911 ERROR [STDERR] at
org.drools.guvnor.server.RepositoryServiceServlet.loadSuggestionCompletionEngine(RepositoryServiceServlet.java:193)
11:39:44,911 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:39:44,911 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:39:44,911 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:39:44,911 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:585)
11:39:44,911 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
11:39:44,911 ERROR [STDERR] ... 27 more
11:39:44,912 ERROR [STDERR] Caused by: java.lang.ClassFormatError:
Incompatible magic value 175137123 in class file com/rb/model/Contact
11:39:44,912 ERROR [STDERR] at java.lang.ClassLoader.defineClass1(Native
Method)
11:39:44,912 ERROR [STDERR] at
java.lang.ClassLoader.defineClass(ClassLoader.java:675)
11:39:44,912 ERROR [STDERR] at
org.drools.rule.MapBackedClassLoader.fastFindClass(MapBackedClassLoader.java:70)
11:39:44,912 ERROR [STDERR] at
org.drools.rule.MapBackedClassLoader.loadClass(MapBackedClassLoader.java:89)
11:39:44,912 ERROR [STDERR] at
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
11:39:44,912 ERROR [STDERR] at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
11:39:44,912 ERROR [STDERR] at java.lang.Class.forName0(Native Method)
11:39:44,913 ERROR [STDERR] at java.lang.Class.forName(Class.java:242)
11:39:44,913 ERROR [STDERR] at
org.drools.rule.MapBackedClassLoader.loadClass(MapBackedClassLoader.java:94)
11:39:44,913 ERROR [STDERR] at
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
11:39:44,913 ERROR [STDERR] at
org.drools.base.ClassTypeResolver.resolveType(ClassTypeResolver.java:144)
11:39:44,913 ERROR [STDERR] at
org.drools.guvnor.server.rules.SuggestionCompletionLoader.loadClass(SuggestionCompletionLoader.java:387)
11:39:44,913 ERROR [STDERR] at
org.drools.guvnor.server.rules.SuggestionCompletionLoader.populateModelInfo(SuggestionCompletionLoader.java:289)
11:39:44,913 ERROR [STDERR] at
org.drools.guvnor.server.rules.SuggestionCompletionLoader.processPackageHeader(SuggestionCompletionLoader.java:180)
11:39:44,913 ERROR [STDERR] at
org.drools.guvnor.server.rules.SuggestionCompletionLoader.getSuggestionEngine(SuggestionCompletionLoader.java:130)
11:39:44,913 ERROR [STDERR] at
org.drools.guvnor.server.util.BRMSSuggestionCompletionLoader.getSuggestionEngine(BRMSSuggestionCompletionLoader.java:52)
11:39:44,914 ERROR [STDERR] at
org.drools.guvnor.server.ServiceImplementation.loadSuggestionCompletionEngine(ServiceImplementation.java:1361)
11:39:44,914 ERROR [STDERR] ... 52 more
Please help me!!
Thank you
15 years, 9 months
Call for Submissions for RuleML-2010 and edBPM 2010
by Adrian Paschke
Dear Colleagues,
I would like to point you to these upcoming paper submission deadlines which
might be interesting for you.
-----------------------------------------------------------
RuleML-2010
October 21-23, 2010, Washington, DC, USA
http://2010.ruleml.org/
Extended Abstract submission deadline: June 6, 2010
Extended Paper Submission deadline: June 11, 2010
This year it will be a very special event - collocated with the Business
Rules Forum, the Business Analysis Forum and the Business Process Forum.
Alex Kozlenkov and I will organize a special Rule-based Event Processing and
Reaction Rules track at RuleML-2010 and there will be the Int. Rules
Challenge to demonstrate industrial and practical implementations, tools and
use cases / case studies.
Proceedings will be published in Springer LNCS with a high impact factor -
see http://citeseerx.ist.psu.edu/stats/venues - and selected best papers
from the conference will be invited to already agreed upcoming journal
special issues in the International Journal of Cooperative Information
Systems (IJCIS), and the Springer journal AI & Law.
The current IEEE TKDE special issue on Rule Representation, Interchange and
Reasoning in Distributed, Heterogeneous Environments will be published in
June 2010.
Members of W3C as an official collaboration partner will receive a 15%
discount for RuleML-2010.
------------------------------------------------------------------
4th International Workshop on Event-Driven Business Process Management
collocated with BPM 2010
Hoboken, NJ, USA from September 13-16, 2010
http://www.bpm2010.org/conference-events/workshops/edbpm10/
Extended Paper Submission Deadline: June 6, 2010
Selected papers will be considered for extension and publication in a
special issue of the International Journal of Business Process Integration
and Management (IJBPIM) publish ed by InderScience.
And here are some further events which might interest you:
---------------------------------------------------------------------
5th Berlin Semantic Web Meetup on Semantic Business Process Management
June, 18th, Potdam/Berlin
The Meetup will focus on Semantic Business Process Management (SBPM) which
is the combination of Corporate Semantic Web technologies, such as
(business) rules, events (semantic complex event processing) and ontologies,
with BPM.
http://www.meetup.com/The-Berlin-Semantic-Web-Meetup-Group/calendar/12921317
--------------------------------------------------------------------------
The RuleML Semantic Rules track at Semantic Technologies Conference 2010
June 21-25, San Francisco, CA
http://semtech2010.semanticuniverse.com/rules
15 years, 9 months
History log with mySQL Database
by timpe
I'm trying to establish a history log for my Flow. I'm using version 5.0.1
and I set up my project with maven. So I'm using drools-bam-5.0.1.jar
Inside this archive there is a META-INF folder containing the
hibernate-instructions. How can I reconfigure these settings?
I tried to put the hibernate.cfg.xml and the
AuditLog.hbm.xml into the META-INF-folder in my root Project without
success (default Settings from jar-file are used).
While using the drools-bam archive (jar from the maven-repository), I got
the following error:
Not supported session in logger: class
org.drools.process.command.impl.CommandBasedStatefulKnowledgeSession
I debugged it and found out that he jumps out in WorkingMemoryLogger in Line
136:
else if (session instanceof CommandBasedStatefulKnowledgeSession) {
WorkingMemoryEventManager eventManager =
((CommandBasedStatefulKnowledgeSession)
session).getCommandService().getSession();
eventManager.addEventListener( (WorkingMemoryEventListener) this );
eventManager.addEventListener( (AgendaEventListener) this );
eventManager.addEventListener( (RuleFlowEventListener) this );
eventManager.addEventListener( (RuleBaseEventListener) this );
} else {
The Session is an instance of
org.drools.process.command.impl.CommandBasedStatefulKnowledgeSession
When I add the source-File of the WorkingMemoryLogger into my project, then
this error does not occur.
Any Ideas?
Thanks
Timo
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/History-log-with-mySQ...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 9 months
FileNotFoundException for drl file in classpath
by bcarlson
Hello,
I'm relatively new to drools, and although I've gotten my first app working
from the command line, I am not incorporating it into a web app, and having
a heck of a time getting the drl file found!
Long story short, the drl file is in the package: com.abc.xyz
I'm trying to load it with the following:
kbuilder.add(ResourceFactory.newClassPathResource("keyRules.drl",this.getClass()),ResourceType.DRL);
and I've placed it in about 42 places throughout my app in the futile
attempt to get it to load. What am I missing? Can someone help me understand
the whole classpath loading? I mean, I've put the path to the .drl file in
my classpath, and it's simply not finding the file.
Thanks for your help!
-an exasperated newbie drools user
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/FileNotFoundException...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 9 months
Login Names for drools-5.0-guvnor installed on Tomcat 6
by Zhuk, Yefim
My question is related to Login Names for drools-5.0-guvnor installed on Tomcat 6.
A Guvnor tutorial offers an example for JBoss AS on how to provide user name/password.
Can you provide a similar example for the Tomcat 6 case? How to config 2-3 names for the
admin role?
I hope that the question is easy for someone who is already working in this environment.
Thank you so much for your help,
Jeff
15 years, 9 months
Activation-group does not work when using a Stateless Session with Sequential Mode enabled
by Nathan Bell
We spent some time trying to figure out why our activation-group
functionality was not working. Activation groups are supposed to cause only
a single rule to fire within the same group. What we were experiencing is
that all the rules were firing, essentially ignoring the activation-group
setting. We have determined that it is because we were setting an option on
the KnowledgeBaseConfiguration of Sequential.Yes. If we comment out that
line activation-groups work.
I don't know enough to know if this is by design or if it is a bug. I
searched the documentation and the drools-user Nabble forum and could not
find an answer to this issue. I wanted to at least post this information so
that if anyone else has this problem they don't have to go through the same
struggle we had.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Activation-group-does...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 9 months
Re: [rules-users] Guvnor meant for business users?
by nxg912
Thanks for your message.
Regarding the scenario, we were able to build the POJO model and other
required dependencies but are not able to figure out that while working with
Guided Editor, how to get access to internal properties of these objects,
i.e. how to include those in the WHEN and THEN sections.
Also, around Guvnor, our intention is to make this usable for business
analyst and subject matter experts, i.e. they should be able to configure
the rules and test them as well. Our understanding is that Guvnor and DSL
are the options. At this point, to us, DSL seems like a better option than
Guvnor from business analyst perspective. We are currently unable to build
even slightly complex scenario and their corresponding test scenarios in
Guvnor. So we were wondering if others in this forum are also reverting to
DSL in case they want to get BA involved. Our impression on DRL has been
very good as that allows you to build complex rules relatively quickly.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-meant-for-busi...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 9 months
Moving from Jrules to Drools a couple of Issues
by paulnnosh
Hi Chaps,
We currently use Jrules 5 and are looking at our options going forward. We
are going to evaluate Drools alongside some other products. So far I like
the look of Drools but there are a couple of things that are puzzling me...
- In our Jrules implementation our BOM/XOM exposes some of our application
logic so that our rules can access application code and services to make
decisions and updates where necessary. I can't see how this is possible in
Drools.
- Our ruleflows use decision tables to define which rules will run dependant
upon the transaction type received. This makes assigning a rule to a single
ruleflow group inappropriate as one rule could be used by many different
transactions. Is it possible to create an ArrayList of rules and execute
them one at a time via ruleflow action node?
Many Thanks
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Moving-from-Jrules-to...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 9 months