errors with GWT-console
by laurence vignollet
I am a new to Drools Flow, guvnor, and GWT-console-server-drools.
I am trying to deploy Gwt-console-server and to get a process running in it.
I am using Drools 5.1.0.M1, JBoss-AS 4.2.3.GA.
I have followed all the instruction in the Drools Flow 5.1.0 Documentation,
the chapter about Console.
When I start the aplication server I get the following errors:
10:31:16,957 INFO [TomcatDeployer] deploy, ctxPath=/gwt-console-server,
warUrl=
.../deploy/gwt-console-server-drools-5.1.0.M1.war/
10:31:17,275 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap contextInitialized
WARNING: The use of javax.ws.rs.core.Application is deprecated, please use
javax
.ws.rs.Application as a context-param instead
10:31:17,277 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap setProviders
INFO: Adding listed @Provider class org.jboss.bpm.report.FileWriter
10:31:17,309 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider DataSourceProvider
10:31:17,312 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider DefaultTextPlain
10:31:17,315 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.StringTextSta
r
10:31:17,319 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.InputStreamPr
ovider
10:31:17,323 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.ByteArrayProv
ider
10:31:17,327 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.FormUrlEncode
dProvider
10:31:17,330 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.FormUrlEncode
dProvider
10:31:17,334 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.StreamingOutp
utProvider
10:31:17,342 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalReader
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.Mu
ltipartReader
10:31:17,361 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalReader
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.Li
stMultipartReader
10:31:17,364 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalReader
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.Mu
ltipartFormDataReader
10:31:17,369 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalReader
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.Ma
pMultipartFormDataReader
10:31:17,373 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalWriter
INFO: Adding built in
providerorg.jboss.resteasy.plugins.providers.multipart.Mul
tipartWriter
10:31:17,380 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalWriter
INFO: Adding built in
providerorg.jboss.resteasy.plugins.providers.multipart.Mul
tipartFormDataWriter
10:31:17,385 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalWriter
INFO: Adding built in
providerorg.jboss.resteasy.plugins.providers.multipart.Lis
tMultipartWriter
10:31:17,388 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalWriter
INFO: Adding built in
providerorg.jboss.resteasy.plugins.providers.multipart.Map
MultipartFormDataWriter
10:31:17,391 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalReader
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.Mu
ltipartFormAnnotationReader
10:31:17,397 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalWriter
INFO: Adding built in
providerorg.jboss.resteasy.plugins.providers.multipart.Mul
tipartFormAnnotationWriter
10:31:17,403 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalProvider
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.IIOImageProv
ider
10:31:17,409 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalProvider
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.Mi
meMultipartProvider
10:31:17,462 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Deploying javax.ws.rs.core.Application: class
org.jboss.bpm.console.server
.ConsoleServerApplication
10:31:17,466 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.report.ReportFacade from
Applicati
on javax.ws.rs.core.Application
10:31:17,502 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.TaskMgmtFacade
from
Application javax.ws.rs.core.Application
10:31:17,519 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource
org.jboss.bpm.console.server.ProcessMgmtFacade f
rom Application javax.ws.rs.core.Application
10:31:17,532 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.TaskListFacade
from
Application javax.ws.rs.core.Application
10:31:17,536 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.UserMgmtFacade
from
Application javax.ws.rs.core.Application
10:31:17,543 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource
org.jboss.bpm.console.server.FormProcessingFacad
e from Application javax.ws.rs.core.Application
10:31:17,552 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.EngineFacade
from A
pplication javax.ws.rs.core.Application
10:31:17,558 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.InfoFacade from
App
lication javax.ws.rs.core.Application
10:31:17,593 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console,
warUrl=.../dep
loy/jmx-console.war/
10:31:17,769 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on
http-127.0.0.1-8
080
10:31:17,797 INFO [AjpProtocol] Starting Coyote AJP/1.3 on
ajp-127.0.0.1-8009
10:31:17,815 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build:
SVNTag=JBos
s_4_2_3_GA date=200807181417)] Started in 26s:425ms
I can enter the GWT-Console but when I search the process I get the
following errors:
- URL: 'http://127.0.0.1:8080/gwt-console-server/rs/process/definitions'
- Action: 'org.jboss.bpm.console.client.process.UpdateDefinitionsAction'
- Exception: 'class com.google.gwt.http.client.RequestException'
- URL: 'http://127.0.0.1:8080/gwt-console-server/rs/process/definitions'
- Action: 'org.jboss.bpm.console.client.process.UpdateDefinitionsAction'
- Exception: 'class com.google.gwt.http.client.RequestException'
HTTP 500: HTTP Status 500 -
------------------------------
*type* Exception report
*message*
*description* *The server encountered an internal error () that prevented it
from fulfilling this request.*
*exception*
org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException:
Could not initialize stateful knowledge session: null
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
*root cause*
java.lang.RuntimeException: Could not initialize stateful knowledge
session: null
org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:69)
org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:77)
org.drools.integration.console.DroolsFlowCommandDelegate.<init>(DroolsFlowCommandDelegate.java:35)
org.drools.integration.console.DroolsFlowProcessManagement.<init>(DroolsFlowProcessManagement.java:20)
org.drools.integration.console.DroolsFlowManagementFactory.createProcessManagement(DroolsFlowManagementFactory.java:11)
org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:83)
org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:107)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96
Thanks a lot in advance for your Help !
15 years, 11 months
Drools Flow: Skipping some LHS evaluations at time of insert
by madchen
Hi,
According to my understanding of Drools Flow, when you insert an object into
drools, it tries to match it against all the existing rules and every rule,
for which the 'When' clause conditions are met, becomes activated.
I was wondering if it was possible, that when an object is inserted into
drools, drools stops trying to match that object against the rules once the
first rule is activated. Or in other words, drools would go through the list
of rules comparing the object with the 'When' clause conditions and then
when it finds a rule that matches, it stops going through the rest of the
rules for that object.
Thanks!
Kevin
--
View this message in context: http://n3.nabble.com/Drools-Flow-Skipping-some-LHS-evaluations-at-time-of...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 11 months
Flow with Rules (RuleFlowGroup): how to share parameters/facts
by Nol de Wit
(using Flow and Rules 5.0)
In a small pilot we are considering to replace part of the work in
some of the subprocesses with rules. I can't seem to figure out how to
transport the parameters within the flow to the data the rules should
act upon.
In the Flow-only model, parameters are added as a parametermap at the
point the flow is started using:
parameterMap.put("report", report);
ksession.startProcess("myModule", parameterMap);
A 'standalone' rule model is given its data by feeding it some 'facts' using:
ksession.insert(report);
ksession.fireAllRules();
(..right? Haven't done to much of that, but I believe that is the way
it is done)
So if I combine Flows and Rules (using RuleFlowGroup), how do I make
sure the rules are given the correct data? My data (report) first
needs to go through a couple of flow actions, next through an XOR, of
which each output is connectedand then after each XOR output contraint
a
Currently I still use the first option, but the rules don't get fired
(the flow is started, and runs untill the RuleFlowGroup....). If I add
a ksession.fireAllRules() I see no difference.
Thanks,
Nol
15 years, 11 months
Facts or rules ?
by Bertrand Grottier
Hello,
I am a newbie with business rules systems.
I would like to implement a component that "compute" the price of products. There can be a great number of potential prices (maybe 10^4 or 10^5).
My first idea was to create template rules, "feeded" by a database. In other words, the information about prices would be contained in the rules.
Eventually, I decided to create Prices objects, that are also inserted in the Knowledge session (Prices become facts). The rule engine just "matches" the appropriate price object with each product (there are other rules then to compute the final price).
Price
{
_productId ;
_beginDate ;
_endDate ;
....
_price ;
}
Product
{
_id ;
_date ;
...
_
}
Are my explanations clear enough ?
Is this a good approach or is it stupid ? Why ? What are the good practices ?
Thank you in advance for your help.
Benoît
_________________________________________________________________
Découvrez comment SURFER DISCRETEMENT sur un site de rencontres !
http://clk.atdmt.com/FRM/go/206608211/direct/01/
15 years, 11 months
5.1 JavaDoc
by David Cracauer
Greetings,
I'm working through some issues with flow, and I want to have a look at the
(complete) doc, including the impl classes. Is this hosted/available
anywhere? I tried to build it from source, and I'm not getting anywhere.
Thanks,
Dave
--
View this message in context: http://n3.nabble.com/5-1-JavaDoc-tp708822p708822.html
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 12 months
drl's and silent failures
by Barry Kaplan
** warning: This is a rant, but it just might save you some head scratching
if you run into these issues **
I really hate writing rules. Not, well not rules, but rules in the DRL
language. There are so many edge conditions that fail silently. Here just
two from today:
...
then
retract(f1) // some comment
retract(f2)
end
In the above retract(f2) will not be invoke. No message about any problems
-- it just doesn't happen. Remove the comment and f2 is retracted.
And, where 'ksession' is a global
...
then
update(ksession.getFactHandle(f1), new MyF1(10, 10))
end
In this one the constructor used for MyF1 does not exists. No message, just
silent failure. Change the rule to:
...
then
MyF1 fi_new = MyF1(10, 10)
update(ksession.getFactHandle(f1), f1_new)
end
And now the error message about the missing constructor is produced.
--
View this message in context: http://n3.nabble.com/drl-s-and-silent-failures-tp704973p704973.html
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 12 months
Logging using JSR94 StatelessRuleSession
by madchen
I set up the rule session basically like this:
RuleServiceProvider ruleServiceProvider =
RuleServiceProviderManager.getRuleServiceProvider("http://drools.org/");
RuleRuntime ruleRuntime = ruleServiceProvider.getRuleRuntime();
(StatelessRuleSession) session = ruleRuntime.createRuleSession( uri, null,
RuleRuntime.STATELESS_SESSION_TYPE);
I can't see a way to use AgendaEventListener because there is no place to
add listeners. I tried using KnowledgeRuntimeLoggerFactory, but I get this
error "org.drools.jsr94.rules.StatelessRuleSessionImpl cannot be cast to
org.drools.event.KnowledgeRuntimeEventManager"
I was wondering if anyone knew of a good way to do logging with this setup?
Thanks,
Kevin
--
View this message in context: http://n3.nabble.com/Logging-using-JSR94-StatelessRuleSession-tp707186p70...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 12 months