Re: [rules-users] Unable to resolve class error , drools 5.5 in concurrent execution. JSR94Support and Spring
This is the method which throws Exception during concurrency. Highlighted Line number throws the exception ClassName : ClassFieldAccessorCache public Class getClass(String className) { try { return this.classLoader.loadClass( className ); // Exception happens here. And This happens only during multithreading or concurrent calls. } catch ( ClassNotFoundException e ) { throw new RuntimeDroolsException( "Unable to resolve class '" + className + "'" ); } } -- View this message in context: http://drools.46999.n3.nabble.com/Unable-to-resolve-class-error-drools-5-5-in-concurrent-execution-JSR94Support-and-Spring-tp4030226p4030230.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] Equality semantics of logical assertions and stated assertions
Add - Mike Rodriguez > On Jul 2, 2014, at 10:18 AM, "mikerod [via Drools]" > wrote: > > Thanks a lot for the detailed response. This line of reasoning makes sense > to me. I can see now why the behavior is the way that it is. > > I appreciate the quick feedback too! > > > If you reply to this email, your message will be added to the discussion > below: > http://drools.46999.n3.nabble.com/Equality-semantics-of-logical-assertions-and-stated-assertions-tp4030179p4030228.html > To unsubscribe from Equality semantics of logical assertions and stated > assertions, click here. > NAML -- View this message in context: http://drools.46999.n3.nabble.com/Equality-semantics-of-logical-assertions-and-stated-assertions-tp4030179p4030229.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] Equality semantics of logical assertions and stated assertions
Thanks a lot for the detailed response. This line of reasoning makes sense to me. I can see now why the behavior is the way that it is. I appreciate the quick feedback too! -- View this message in context: http://drools.46999.n3.nabble.com/Equality-semantics-of-logical-assertions-and-stated-assertions-tp4030179p4030228.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] Unable to resolve class error , drools 5.5 in concurrent execution. JSR94Support and Spring
5.5 was not thread-safe and some of these concurrency issues have been fixed in later versions. Could you try 5.6 or 6.x? On 07/02/2014 08:19 AM, maruthi_s wrote: > Hi , > > We use Drools 5.5 and drool implementation is done through Spring > JSR94Support API> > The Rule engine is called in concurrent mode, > i.e , JSR94Support.executeStateless(name,list) is executed through multiple > threads. > > And when the rules are executed we randomly get the following exception > > org.drools.RuntimeDroolsException: Unable to resolve class 'someclass(this > is sample)here actual class is printed>' > at > org.drools.base.ClassFieldAccessorCache.getClass(ClassFieldAccessorCache.java:126) > at > org.drools.base.ClassFieldAccessorCache.getClassObjectType(ClassFieldAccessorCache.java:48) > at > org.drools.reteoo.ClassObjectTypeConf.(ClassObjectTypeConf.java:83) > at > org.drools.common.ObjectTypeConfigurationRegistry.getObjectTypeConf(ObjectTypeConfigurationRegistry.java:71) > at > org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:159) > at > org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:903) > at > org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:847) > at > org.drools.reteoo.ReteooStatelessSession.executeWithResults(ReteooStatelessSession.java:273) > > The rules are registered every 15 minutes through > RuleAdministrator.registerRuleExecutionset , > so whenever we refresh the rules and the subsequent thread even after the > registration is completed, fails with the above message. This happens only > when the rules are invoked concurrently. > > Please advise. > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Unable-to-resolve-class-error-drools-5-5-in-concurrent-execution-JSR94Support-and-Spring-tp4030226.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 mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Unable to resolve class error , drools 5.5 in concurrent execution. JSR94Support and Spring
Hi , We use Drools 5.5 and drool implementation is done through Spring JSR94Support API> The Rule engine is called in concurrent mode, i.e , JSR94Support.executeStateless(name,list) is executed through multiple threads. And when the rules are executed we randomly get the following exception org.drools.RuntimeDroolsException: Unable to resolve class 'someclass(this is sample)here actual class is printed>' at org.drools.base.ClassFieldAccessorCache.getClass(ClassFieldAccessorCache.java:126) at org.drools.base.ClassFieldAccessorCache.getClassObjectType(ClassFieldAccessorCache.java:48) at org.drools.reteoo.ClassObjectTypeConf.(ClassObjectTypeConf.java:83) at org.drools.common.ObjectTypeConfigurationRegistry.getObjectTypeConf(ObjectTypeConfigurationRegistry.java:71) at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:159) at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:903) at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:847) at org.drools.reteoo.ReteooStatelessSession.executeWithResults(ReteooStatelessSession.java:273) The rules are registered every 15 minutes through RuleAdministrator.registerRuleExecutionset , so whenever we refresh the rules and the subsequent thread even after the registration is completed, fails with the above message. This happens only when the rules are invoked concurrently. Please advise. -- View this message in context: http://drools.46999.n3.nabble.com/Unable-to-resolve-class-error-drools-5-5-in-concurrent-execution-JSR94Support-and-Spring-tp4030226.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] Usage of java.util.List in Drools Guvnor 5.5.0
Add the field to the pattern (as you have done for "fieldName") and then enter a variable name for the field (you might need to add a "list != null" constraint, I can't remember) On 2 July 2014 12:18, Rajeswari wrote: > Thanks > How can I do this in Business Rule Editor. > I should be able to use the editor instead of free form DRL > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Usage-of-java-util-List-in-Drools-Guvnor-5-5-0-tp4030217p4030224.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 mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Usage of java.util.List in Drools Guvnor 5.5.0
Thanks How can I do this in Business Rule Editor. I should be able to use the editor instead of free form DRL -- View this message in context: http://drools.46999.n3.nabble.com/Usage-of-java-util-List-in-Drools-Guvnor-5-5-0-tp4030217p4030224.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] Usage of java.util.List in Drools Guvnor 5.5.0
So your FormatConfig object contains a list that you need access to? rule "MyFormat" dialect "mvel" when config : FormatConfig( fieldName == "AMOUNT", $l : listField ) then $l.doWhatEverYouWant(); config.setRegEx( "123" ); retract( config ); end On 2 July 2014 12:05, Rajeswari wrote: > Hi, > I need to modify the List field in my Config object. > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Usage-of-java-util-List-in-Drools-Guvnor-5-5-0-tp4030217p4030222.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 mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Usage of java.util.List in Drools Guvnor 5.5.0
Hi, I need to modify the List field in my Config object. -- View this message in context: http://drools.46999.n3.nabble.com/Usage-of-java-util-List-in-Drools-Guvnor-5-5-0-tp4030217p4030222.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] How to migrate data from Guvnor 5.1.1 to 5.3.3.Final version.
Thanks Michael. What about Drools-ant task for Jackrabbit JCR repository migration?, can we use this for 5.1.1 and import into 5.3.3? Regards, Lakshmi Reddy On Wed, Jul 2, 2014 at 4:04 PM, Michael Anstis wrote: > The only solution that could work is to export your repository from 5.1.1 > and import into 5.3.3. > > You'll loose all history though. > > > On 2 July 2014 10:45, LaKhI ReDdY!!! > wrote: > >> Hi , >> >> I need information on how to migrate existing repository from Guvnor >> 5.1.1 to 5.3.3.Final version. >> >> Currently i am using Guvnor 5.1.1 version and data is stored in Oracle >> database. I am moving to Guvnor 5.3.3.Final version. >> I would like to migrate the existing data from Guvnor 5.1.1 to >> 5.3.3.Final instance. >> >> One way i see is export from Guvnor 5.1.1 and import the exported xml in >> Guvnor 5.3.3.Final instance. >> >> Is there any other way to migrate the data? >> >> Regards, >> Lakshmi Reddy >> >> ___ >> 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] Usage of java.util.List in Drools Guvnor 5.5.0
Do you insert a List into working memory? On 2 July 2014 11:22, Rajeswari wrote: > Created a Model in Guvnor 5.5.0 with 3 fields - 2 Text, 1 java.util.List > The model is verified and validated - correctly. > Source looks like below > declare FormatConfig > fieldName: String > regEx: String > regExPatterns: java.util.List > end > > While trying to create a Business Rule using the above created Model. The > rule gets fired and works fine. > rule "MyFormat" > dialect "mvel" > when > config : FormatConfig( fieldName == "AMOUNT" ) > then > config.setRegEx( "123" ); > retract( config ); > end > > But, the moment I try to use the List, by only declaring a List in the > "When" section, the rule stops working. > rule "MyFormat" > dialect "mvel" > when > config : FormatConfig( fieldName == "AMOUNT" ) > regExPatterns1: java.util.List ( ) > then > config.setRegEx( "123" ); > retract( config ); > end > > My final intention is to modify the regExPatterns list in the "THEN" block > > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Usage-of-java-util-List-in-Drools-Guvnor-5-5-0-tp4030217.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 mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] How to migrate data from Guvnor 5.1.1 to 5.3.3.Final version.
The only solution that could work is to export your repository from 5.1.1 and import into 5.3.3. You'll loose all history though. On 2 July 2014 10:45, LaKhI ReDdY!!! wrote: > Hi , > > I need information on how to migrate existing repository from Guvnor 5.1.1 > to 5.3.3.Final version. > > Currently i am using Guvnor 5.1.1 version and data is stored in Oracle > database. I am moving to Guvnor 5.3.3.Final version. > I would like to migrate the existing data from Guvnor 5.1.1 to 5.3.3.Final > instance. > > One way i see is export from Guvnor 5.1.1 and import the exported xml in > Guvnor 5.3.3.Final instance. > > Is there any other way to migrate the data? > > Regards, > Lakshmi Reddy > > ___ > 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] Usage of List in Drools 5.5.0
Created a Model in Guvnor 5.5.0 with 3 fields - 2 Text, 1 java.util.List The model is verified and validated - correctly. Source looks like below declare FormatConfig fieldName: String regEx: String regExPatterns: java.util.List end While trying to create a Business Rule using the above created Model. The rule gets fired and works fine. rule "MyFormat" dialect "mvel" when config : FormatConfig( fieldName == "AMOUNT" ) then config.setRegEx( "123" ); retract( config ); end But, the moment I try to use the List, by only declaring a List in the "When" section, the rule stops working. rule "MyFormat" dialect "mvel" when config : FormatConfig( fieldName == "AMOUNT" ) regExPatterns1: java.util.List ( ) then config.setRegEx( "123" ); retract( config ); end My final intention is to modify the regExPatterns list in the "THEN" block ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Usage of java.util.List in Drools Guvnor 5.5.0
Created a Model in Guvnor 5.5.0 with 3 fields - 2 Text, 1 java.util.List The model is verified and validated - correctly. Source looks like below declare FormatConfig fieldName: String regEx: String regExPatterns: java.util.List end While trying to create a Business Rule using the above created Model. The rule gets fired and works fine. rule "MyFormat" dialect "mvel" when config : FormatConfig( fieldName == "AMOUNT" ) then config.setRegEx( "123" ); retract( config ); end But, the moment I try to use the List, by only declaring a List in the "When" section, the rule stops working. rule "MyFormat" dialect "mvel" when config : FormatConfig( fieldName == "AMOUNT" ) regExPatterns1: java.util.List ( ) then config.setRegEx( "123" ); retract( config ); end My final intention is to modify the regExPatterns list in the "THEN" block -- View this message in context: http://drools.46999.n3.nabble.com/Usage-of-java-util-List-in-Drools-Guvnor-5-5-0-tp4030217.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] How to migrate data from Guvnor 5.1.1 to 5.3.3.Final version.
Hi , I need information on how to migrate existing repository from Guvnor 5.1.1 to 5.3.3.Final version. Currently i am using Guvnor 5.1.1 version and data is stored in Oracle database. I am moving to Guvnor 5.3.3.Final version. I would like to migrate the existing data from Guvnor 5.1.1 to 5.3.3.Final instance. One way i see is export from Guvnor 5.1.1 and import the exported xml in Guvnor 5.3.3.Final instance. Is there any other way to migrate the data? Regards, Lakshmi Reddy ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users