Re: [rules-users] CompositiveClassLoader$CachingLoader$load method intermittently hangs
On 19 May 2014, at 03:21, mikerod mjr4...@gmail.com wrote: I'm not sure how any of this relates to the Drools v6.x family. CompositeClassLoader is all gone, so I don’t think this issue will exist in 6.x. Would be good if you could verify with beta3: http://downloads.jboss.org/drools/release/6.1.0.Beta3/ We’ll look into 5.x too at some point in the next few weeks. Mark ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Startup KIE Workbench without network connection
This is true. It looks like we don't handle errors thrown when attempting to set-uphttps://github.com/droolsjbpm/kie-wb-distributions/blob/master/kie-drools-wb/kie-drools-wb-webapp/src/main/java/org/kie/workbench/drools/backend/server/AppSetup.java#L101the default repositories. Could you please raise a JIRA https://issues.jboss.org/browse/GUVNOR to prevent this issue from being lost (or submit a Pull Request with a fix). Thanks, Mike On 15 May 2014 16:58, Sandjaja, Dominik dominik.sandj...@it-motive.dewrote: Hello, many thanks for that information! I somehow never got that far down in the properties-page to notice. Nevertheless I think that the startup should not fail completely, if the sample repositories cannot be downloaded. Shouldn’t a warning suffice? Thank you! Dominik *Von:* rules-users-boun...@lists.jboss.org [mailto: rules-users-boun...@lists.jboss.org] *Im Auftrag von *Ioannis Christodoulou *Ge**sendet:* Donnerstag, 15. Mai 2014 17:40 *An:* Rules Users List *Betreff:* Re: [rules-users] Startup KIE Workbench without network connection Hello, you probably need to set: -Dorg.kie.demo=false and -Dorg.kie.example=false in your startup variables. For example, using jboss, I have in standalone.conf file (used during jboss startup) JAVA_OPTS=$JAVA_OPTS -Dorg.kie.demo=false -Dorg.kie.example=false This will disable the demo and the example sources from the workbench. Ευχαριστώ πολύ, Ιωάννης Χριστοδούλου On Thu, May 15, 2014 at 6:27 PM, Sandjaja, Dominik dominik.sandj...@it-motive.de wrote: Hello, I try to setup KIE Workbench (6.1.0.BetaX) on Tomcat 7 on a Windows 2012 Server without connection to the internet. When starting up, the KIE-WB does not start up. I get the following errors in localhost.log (cut for better readability): Mai 15, 2014 5:08:18 PM org.apache.catalina.core.StandardContext listenerStart Schwerwiegend: Exception sending context initialized event to listener instance of class org.jboss.weld.environment.servlet.Listener org.jboss.weld.exceptions.DeploymentException: Exception List with 1 exceptions: […] Caused by: java.lang.RuntimeException: https://github.com/guvnorngtestuser1/guvnorng-playground.git: cannot open git-upload-pack […] Caused by: java.net.ConnectException: Connection time out: github.com This happens because the initial demo repository is downloaded – I do not want and need those repositories! I could work around this by copying the TOMCAT_HOME/bin/.niogit directory to that server and have it start up then. BUT: IMHO it is an inconvenience, maybe even a bug, that an internet connection is needed to set up the Drools KIE Workbench. How are we supposed to tell our infrastructure team that we need an open connection to “some website with code” to setup an editing system for internal knowledge … Should I file a bug for that? Is there a way to deactivate the downloading of the initial demo repository? Could it somehow be delivered with the KIE-WB package? Thanks Dominik … mit freundlichen Grüßen / kind regards Dominik Sandjaja Fon: +49 (0) 203 60878 183 Fax: +49 (0) 203 60878 222 e-mail: dominik.sandj...@it-motive.de it-motive AG Zum Walkmüller 6 47269 Duisburg i...@it-motive.de http://www.it-motive.de …… Vorsitzender des Aufsichtsrats: Dr.-Ing. Jürgen Sturm Vorstand: Horst-Dieter Deelmann (Vors.), Matthias Heming, Christoph Tim Klose HRB 9207, Amtsgericht Duisburg ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users … mit freundlichen Grüßen / kind regards Dominik Sandjaja Fon: +49 (0) 203 60878 183 Fax: +49 (0) 203 60878 222 e-mail: dominik.sandj...@it-motive.de it-motive AG Zum Walkmüller 6 47269 Duisburg i...@it-motive.de http://www.it-motive.de …… Vorsitzender des Aufsichtsrats: Dr.-Ing. Jürgen Sturm Vorstand: Horst-Dieter Deelmann (Vors.), Matthias Heming, Christoph Tim Klose HRB 9207, Amtsgericht Duisburg ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] drools 6.0 update site
Hi Team, Whenever i try to update drools 6.0 to eclipse . It gives error details such as Some sites could not be found. See the error log for more detail. No repository found at file:/C:/java/. No repository found at http://anonsvn.labs.jboss.com/labs/jbossrules/updates/drools-ide-update/. No repository found at http://testng.org/doc/download.html. No repository found at jar:file:/D:/jboss/jboss-6.0.0.Final/bin/run.jar!/. No repository found at http://marketplace.eclipse.org/repo/. Unable to read repository at jar:file:/D:/jboss/jboss-6.0.0.Final/bin/run.jar/content.xml. Exception creating URL for {0} No repository found at http://beust.com/eclipse%2522. Is there any update site for 6 release Regards Ganesh Neelekani http://drools.46999.n3.nabble.com/file/n4029600/drools.png -- View this message in context: http://drools.46999.n3.nabble.com/drools-6-0-update-site-tp4029600.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Rules compilation error with OSGi integration (6.1.0.Beta3)
Hello. We have a very simple rules file that works as expected when running as a JUnit test in Eclipse with Maven dependencies, but fails when it is executing in ServiceMix with OSGi integration. The code is just like : raw MapString, Object dialog = new LinkedHashMap(); KieSession kieSession = kieContainer.newKieSession(MyKSession); kieSession.setGlobal(dialog, dialog); kieSession.insert(problem); kieSession.fireAllRules(); kieSession.dispose(); The rules file : And the kmodule.xml : The compilation error is about Java 7 syntax elements (as generics or thousand separators in number literals for example), and seems to indicate that in this case the compiler is not the same, and it expects another Java syntax. No error is reported when the KieContainer is created from the KModule.xml, but the following error occurs when using it for KSession creation. This occurs both with the prepackaged feature (http://repo1.maven.org/maven2/org/drools/drools-karaf-features/6.1.0.Beta3/drools-karaf-features-6.1.0.Beta3-features.xml), or with an adapted one. For example, the Maven dependancies classpath in eclipse mentions newer versions of the Eclipse's ECJ. But changing the version of bundles has no effect... What is missing in the feature to activate the correct rules compiler ? Thanks for your help ? Regards. -- View this message in context: http://drools.46999.n3.nabble.com/Rules-compilation-error-with-OSGi-integration-6-1-0-Beta3-tp4029601.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Efficiency questions about DSL
Hello, any progress or new on this issue? I am currently facing the situation that I'd like to create a basic DSL for different projects, placing it in a separate artifact which only gets included. It would be great if the KIE Workbench (and, obviously, the underlying engine) supported that. Thank you Dominik Von: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] Im Auftrag von Michael Anstis Gesendet: Freitag, 21. März 2014 15:19 An: Rules Users List Betreff: Re: [rules-users] Efficiency questions about DSL It's a deliberate decision in the workbench; as it follows what is supported by the core engine. I've asked the core engine developers to comment on whether the underlying Drools engine supports (does support, should support or will support) cross-JAR DSLs. With kind regards, Mike On 21 March 2014 08:52, mfalaize maxime.fala...@gmail.commailto:maxime.fala...@gmail.com wrote: Is it a deliberate choice to not include DSL files in the same package ? If we are limited to the same folder (or same package), what do you think about supporting inheritance in DSL files ? With this feature we could provide to the community generic translation DSL files for many languages. Sorry for the new questions ! :D I'd like to help to develop but I don't want to make useless contributions... 2014-03-20 20:19 GMT+01:00 manstis [via Drools] [hidden email]http://user/SendEmail.jtp?type=nodenode=4028867i=0: So many questions I can comment on the workbench related aspects. The workbench only includes DSL files for authoring DSLR (or RDSLR) files that are in the same folder as the rule. I use the term folder as we don't support same package (which would imply if the same package existed in different JARs we'd include all DSL files - we do not). The expander keyword is, AFAIK, deprecated. DSL/DSLR expansion depends upon the files being in the same folder. @Mario, @Mark, @Edson. Can you comment on whether KIE does handle DSL expansion across different JARs? Sent on the move On 18 Mar 2014 09:20, mfalaize [hidden email]http://user/SendEmail.jtp?type=nodenode=4028841i=0 wrote: Hi, I was wondering how to use efficiently DSL with my rules and I have several questions about it : - First, I have the impression that we can use DSL files only in the same package of the DSLR file. When I tried to load DSL files by the kmodule.xml (specifying the different packages in the packages attribute of kbase) it does not work. Do I have to load each DSL files programmatically or is there a way to load it automatically by the kmodule.xml (and if it is the case, how can we handle the parsing order of these files ?) ? - An underlying question is is this a good practice to divide DSL files ? I would like to translate all my rules in french and to put the generic translations in a unique DSL file to reuse it in all of my different DSLR files. - I noted that we can use more than one DSL file for one DSLR file (it works at the runtime) but when it is the case the DRL viewer of the DSL rule editor does not work and I don't have autocompletion. I tried to put several expander instructions but it fails. Is there a way to make it work ? I think DSL stuff is underestimate at this moment by the community and for my last question I would like to know what is the future plans about this feature ? Maybe I could help to develop it. Regards -- View this message in context: http://drools.46999.n3.nabble.com/Efficiency-questions-about-DSL-tp4028774.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list [hidden email]http://user/SendEmail.jtp?type=nodenode=4028841i=1 https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list [hidden email]http://user/SendEmail.jtp?type=nodenode=4028841i=2 https://lists.jboss.org/mailman/listinfo/rules-users If you reply to this email, your message will be added to the discussion below: http://drools.46999.n3.nabble.com/Efficiency-questions-about-DSL-tp4028774p4028841.html To unsubscribe from Efficiency questions about DSL, click here. NAMLhttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- Maxime FALAIZE View this message in context: Re: [rules-users] Efficiency questions about DSLhttp://drools.46999.n3.nabble.com/Efficiency-questions-about-DSL-tp4028774p4028867.html Sent from the Drools: User forum mailing list archivehttp://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html at Nabble.com.
[rules-users] newbie question about KnowledgeBuilder
Hi, I'm inheriting Drools 6.0 application where all rules are in one huge drl file. Would behavior be different if I broke rules into multiple files and loaded with multiple calls to KnowledgeBuilder.add()? Also, KnowledgeBuilder is being created with each session: KnowledgeBuilder.newKnowledgeBuilder() and then knowledgeBuilder.add(). Since rules don't change, any reason why can't create KnowledgeBuilder at startup and share it? Is it thread safe and can it be re-used? Thanks, Ken -- View this message in context: http://drools.46999.n3.nabble.com/newbie-question-about-KnowledgeBuilder-tp4029604.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Drools and GPU
Hi all We have finding drools to be very resource hungry - and we are looking at having to have very many servers just to satisfy our drools requirements. So I am wondering, has anyone experimented with running drools on a GPU server? Thanks and regards Anton ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools and GPU
Graphics Processing Unit??? Gosudarstvennoe Politicheskoe Upravlenie?? So as not to appear too derogative, let me ask how this resource hunger exhibits itself. Very frequently, some misconception w.r.t. rule structure and/or data model results in an inadequate resource consumptation that might easily have avoided. -W On 19/05/2014, Anton Hughes kurren...@gmail.com wrote: Hi all We have finding drools to be very resource hungry - and we are looking at having to have very many servers just to satisfy our drools requirements. So I am wondering, has anyone experimented with running drools on a GPU server? Thanks and regards Anton ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools and GPU
I agree with Wolfgang... My first version of the rules regarding expiration of events in a length sliding windows took 120s in my benchmark. After thinking a little bit, the second version took 2s. Changed dramatically the behavior of the application, now can process several thousands of events in no time! If I were you, my first try was to optimize the rules, doing some benchmark/profiling, to know where the bottleneck is. Just my 2c, Vítor Rui Moreira On 19/05/2014, 18:31, Wolfgang Laun wrote: Graphics Processing Unit??? Gosudarstvennoe Politicheskoe Upravlenie?? So as not to appear too derogative, let me ask how this resource hunger exhibits itself. Very frequently, some misconception w.r.t. rule structure and/or data model results in an inadequate resource consumptation that might easily have avoided. -W On 19/05/2014, Anton Hughes kurren...@gmail.com wrote: Hi all We have finding drools to be very resource hungry - and we are looking at having to have very many servers just to satisfy our drools requirements. So I am wondering, has anyone experimented with running drools on a GPU server? Thanks and regards Anton Declaração: A informação contida nesta mensagem, e os ficheiros anexos, é privilegiada e confidencial, destinando-se exclusivamente ao(s) destinatário(s).Se não é o destinatário (ou o responsável pela sua entrega ao destinatário) e recebeu a mesma por engano, fica notificado que é estritamente proibido reproduzir, guardar ou distribuir toda ou qualquer parte desta mensagem e ficheiros anexos. Por favor reencaminhe a mensagem para o responsável pelo seu envio ou contacte-nos por telefone e elimine a mensagem e ficheiros anexos do seu computador, sem os reproduzir. Disclaimer: The information contained in this message, and any files attached, is privileged and confidential, and intended exclusively for the included addresses. If you are not the intended recipient (or the person responsible for delivering to the intended recipient) and received this message by mistake, be aware that copy, storage, distribution or any other use of all or part of this message and the files attached is strictly prohibited. Please notify the sender by reply e-mail or contact us by telephone and delete this message and the files attached, without retaining a copy. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools and GPU
GPUs do not allow state/reference sharing. So it’s not as ideal as you think. Mark On 19 May 2014, at 18:16, Anton Hughes kurren...@gmail.com wrote: Hi all We have finding drools to be very resource hungry - and we are looking at having to have very many servers just to satisfy our drools requirements. So I am wondering, has anyone experimented with running drools on a GPU server? Thanks and regards Anton ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools and GPU
About rule structure and / or, i thought that builded graph was in conjunctive normal form to avoid this problem!? Should we use conjunctive normal form as is recommended into tho old CLIPS ? Le lundi 19 mai 2014 à 19:31 +0200, Wolfgang Laun a écrit : Graphics Processing Unit??? Gosudarstvennoe Politicheskoe Upravlenie?? So as not to appear too derogative, let me ask how this resource hunger exhibits itself. Very frequently, some misconception w.r.t. rule structure and/or data model results in an inadequate resource consumptation that might easily have avoided. -W On 19/05/2014, Anton Hughes kurren...@gmail.com wrote: Hi all We have finding drools to be very resource hungry - and we are looking at having to have very many servers just to satisfy our drools requirements. So I am wondering, has anyone experimented with running drools on a GPU server? Thanks and regards Anton ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools and GPU
There is neither a golden rule nor a silver bullet. Understanding what a rule does on the assembly of your facts is crucial. You may get by, happily, with an occasional deviation from some normal form, and you may be bitten, severely, by constantly neglecting it. -W On 19/05/2014, jonathan MERCIER jmerc...@genoscope.cns.fr wrote: About rule structure and / or, i thought that builded graph was in conjunctive normal form to avoid this problem!? Should we use conjunctive normal form as is recommended into tho old CLIPS ? Le lundi 19 mai 2014 à 19:31 +0200, Wolfgang Laun a écrit : Graphics Processing Unit??? Gosudarstvennoe Politicheskoe Upravlenie?? So as not to appear too derogative, let me ask how this resource hunger exhibits itself. Very frequently, some misconception w.r.t. rule structure and/or data model results in an inadequate resource consumptation that might easily have avoided. -W On 19/05/2014, Anton Hughes kurren...@gmail.com wrote: Hi all We have finding drools to be very resource hungry - and we are looking at having to have very many servers just to satisfy our drools requirements. So I am wondering, has anyone experimented with running drools on a GPU server? Thanks and regards Anton ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] setup Drools
That article is over 3 years old, and not relevant for 6.0. Please try the documentation here: http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html/index.html Mark On 19 May 2014, at 19:35, Gopu Shrestha gshres...@tmghealth.com wrote: I want to try Guvnor and try to install following this linkhttp://www.integratingstuff.com/2011/01/28/setting-up-drools-guvnor/ But confused to download, it says “ After you get Guvnor from http://www.jboss.org/drools, you rename the drools-5.1.1-guvnor.war to drools-guvnor.war. Which one should I download? image001.png Best Regards Gopu ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools and GPU
Yes, we have done some benchmarking and profiling. And we have found some improvements. We are processing a lot of data. We receive price changes from foreign exchange markets, and have customers who have automated trading strategies using this data as facts in individual drools sessions. Ok, we will keep looking to optimize, however I am doubtful that we will see much improvement. -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Drools-and-GPU-tp4029607p4029615.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Upgrade to protobuf 2.5 - Prevents Upgrading to Drools 6.x
Upgrading Hadoop is not possible for sometime still. It requires a fairly large coordinated effort. I don't suppose there is any chance that there will be a workaround for this in Drools 6? Perhaps a configuration options or something? -- View this message in context: http://drools.46999.n3.nabble.com/Upgrade-to-protobuf-2-5-Prevents-Upgrading-to-Drools-6-x-tp4028636p4029616.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] CompositiveClassLoader$CachingLoader$load method intermittently hangs
Thanks for the response. I thought I had read that the CompositeClassLoader was not being used in v6.x. I'd like to be able to experiment with the current version of Drools v6.x, but I'm still trying to work past the issue I have with the non-passive changes of protobuf v.2.5.0 that Drools v6.x has been upgraded to. I explained @ http://drools.46999.n3.nabble.com/Upgrade-to-protobuf-2-5-Prevents-Upgrading-to-Drools-6-x-tp4028636.html If I can come up with something and try out Drools v6.x, I'll update this post with any issues seen regarding this issue. -- View this message in context: http://drools.46999.n3.nabble.com/CompositiveClassLoader-CachingLoader-load-method-intermittently-hangs-tp4028780p4029617.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users