[jBPM] - gwt-console problem
by Mai A. S
Mai A. S [https://community.jboss.org/people/mai.s] created the discussion
"gwt-console problem"
To view the discussion, visit: https://community.jboss.org/message/761670#761670
--------------------------------------------------------------
Hi All,
I have a problem while running gwt-console project in eclipse. I can't connect to get processes definitions from guvnor.
In the function of loadKnowledgeBase () while reaching the line
|
|
|
|
| kagent.applyChangeSet(ResourceFactory.newReaderResource(guvnorUtils.createChangeSet())); |
then it throws null pointer exception and print it in the catch
logger.error("Could not load processes from Guvnor: " + t.getMessage());
| 0 | 26/09 16:14:28,489[main] ERROR integration.console.StatefulKnowledgeSessionUtil.loadKnowledgeBase - Could not load processes from Guvnor: null |
my jbpm.console.properties file:
jbpm.console.server.host=localhost
jbpm.console.server.port=8080
jbpm.console.task.service.strategy=HornetQ
jbpm.console.task.service.host=127.0.0.1
jbpm.console.task.service.port=8080
jbpm.console.directory=D\:\\My_Project\\ConsoleDirectory
guvnor.protocol=http
guvnor.host=localhost:8080
guvnor.subdomain=drools-guvnor
guvnor.usr=admin
guvnor.pwd=admin
guvnor.packages=defaultPackage
guvnor.connect.timeout=10000
guvnor.read.timeout=10000
guvnor.snapshot.name=LATEST
ConnectToGuvnorFlag=true
Thanks and sorry for disturbance
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/761670#761670]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months
[IronJacamar] - java.lang.IllegalStateException: JBAS014666: Duplicate resource resource-adapters
by Aryan RS
Aryan RS [https://community.jboss.org/people/aryan02130] created the discussion
"java.lang.IllegalStateException: JBAS014666: Duplicate resource resource-adapters"
To view the discussion, visit: https://community.jboss.org/message/761638#761638
--------------------------------------------------------------
Hi,
I am using ironjacamar.xml in my resource adapter. I have defined two connectionfactories (one for queue and topic - with different JNDI). This seems to fail in JBoss AS7.1.2 with the following error :-
16:59:45,716 ERROR [org.jboss.msc.service] (MSC service thread 1-6) MSC00002: Invocation of listener "org.jboss.as.connector.deployers.ra.processors.ParsedRaDeplo
ymentProcessor$1@7d557ee8" failed: java.lang.IllegalStateException: JBAS014666: Duplicate resource resource-adapters
at org.jboss.as.controller.registry.AbstractModelResource$DefaultResourceProvider.register(AbstractModelResource.java:225) [jboss-as-controller-7.1.2.Fina
l.jar:7.1.2.Final]
at org.jboss.as.controller.registry.AbstractModelResource.registerChild(AbstractModelResource.java:135) [jboss-as-controller-7.1.2.Final.jar:7.1.2.Final]
at org.jboss.as.connector.deployers.ra.processors.AbstractResourceAdapterDeploymentServiceListener.transition(AbstractResourceAdapterDeploymentServiceList
ener.java:109) [jboss-as-connector-7.1.2.Final.jar:7.1.2.Final]
at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1416) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl.access$2700(ServiceControllerImpl.java:49) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1954) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]
The files I have used are from http://blog.coffeebeans.at/?p=230 http://blog.coffeebeans.at/?p=230 .
(I read few responses which asks to pick the nightly build but they were old posts. Is this fix in a newer version after 7.1.2 or a wrong usage ? )
Regards,
Aryan
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/761638#761638]
Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months
[jBPM] - Using drools in a web app is my approach correct
by gerasalus
gerasalus [https://community.jboss.org/people/gerasalus] created the discussion
"Using drools in a web app is my approach correct"
To view the discussion, visit: https://community.jboss.org/message/761632#761632
--------------------------------------------------------------
Hi all,
some newbie questions. I'm wondering is my thinking and my architecture correct?
Preconditions:
1. We have a set of rules stored in DB.Rules will be reloaded from DB only once a day
2. We have a set of meta-facts. Retrieval of those facts is expensive, and they only get updated once a day, after midnight - current meta-facts are immutable for a day.
3. We have user facts - some user specific data which we should be using together with meta-facts and producing output for specific user.
4. Our SLA is 150 req/s.
Typical flow would be something like: we have rules together with meta facts. Along comes user with his general facts and request specific facts. For this input we run rules and produce results - calculate some data.
Basically a typical quote calculation, just we are not calculating quotes :)
Rules may change working memory (cart explosion pattern)
So how would i make this work for multi user environment in a spring web apps? My ideas:
1. Create a custom Spring scope that will cache KnowledgeBase and invalidate it once it expires (at the beginning of new day)
2. Cache meta-facts (they are expensive to retrieve) for given time
3. For each user request (user comes in with its own facts) - create a new StatefulKnowledgeSession from existing KnowledgeBase byt inserting meta-facts and user specific facts and execute fireAllRules
4. Retrieve the result and dispose the StatefulKnowledgeSession()
As i unserstand, if my rules are modifying working memory, i cannot reuse StatefulKnowledgeSession for different users (as they bring their own facts). Is there a better approach ? By reading forums and mailing lists i have mixed data about StatefulKnowledgeSession creation. There are threads that state cpu spikes while creating sessions.
Maybe i should be considering pool of StatefulKnowledgeSession and inserting/retracing user facts while keeping meta-facts?
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/761632#761632]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months