[rules-users] xls decisiontable - unable to resolve method using strict-mode
Hello! I'm using a knowledgeagent to point out a changeset XML which contains the following DTABLE: ... resource source='file:/../templatetest.xls' type='DTABLE' / ... when I compile I get the following error: Unable to Analyse Expression request == /: [Error: unable to resolve method using strict-mode: ultra.Default.ultra.MYHTTPD.request()] [Near : {... request == / }] ^ [Line: 7, Column: 10] : [Rule name='print the incoming query_9'] The weird this is that MYHTTPD class is a javabean and contains getRequest and setRequest methods. notice that it tries a no getter method ultra.Default.ultra.MYHTTPD.request(). If I do the same logic from a normal DRL rules file it works fine. MYHTTPD is generated so I cannot past the source here, but it's correct and as I mentioned working in DRL files. this is how the XSL file looks like: RuleSet A rules test Import ultra.Default.ultra.MYHTTPD RuleTableprint the incoming query CONDITIONACTION MYHTTPD request System.out.println($param); Matcher Logger /webserver root Anybody who knows what this is about? Thanks // Olle -- View this message in context: http://drools.46999.n3.nabble.com/xls-decisiontable-unable-to-resolve-method-using-strict-mode-tp3635460p3635460.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] cron timer not running
Hi! I have a problem with getting cron based timers to start running. The rules compiles just fine it's just that the timer never executes the rule. When I use timer ( int: 1m ) it works fine but not with cron timers. My rule looks like the following: rule whatever timer(cron:* 0/1 * * * ?) when .. -- View this message in context: http://drools.46999.n3.nabble.com/cron-timer-not-running-tp3567205p3567205.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] ASMAccessorImpl classloader issue?
Hi! I'm trying to use jackson to deserialize JSON to declared types. When I do that I get classloading problems when inserting the fact into knowledgespace. I have explicitly set the context classloader to org.drools.rule.JavaDialectRuntimeData$PackageClassLoader during deserialization. The problem only occurs when I insert facts at a high rate. I use a http to send data that will be inserted as facts and when I send only 100 facts I have no problems, when I step this up to around 500 I get the following stacktrace. Has anybody seen anything like this? Please help me! Best Regards // Olle MÃ¥rtensson java.lang.ClassNotFoundException: com.digitalroute.betssonpoc.Registration at java.lang.ClassLoader.findClass:358 at java.lang.ClassLoader.loadClass:306 at java.lang.ClassLoader.loadClass:247 at ASMAccessorImpl_8562899311323165422700.getValue at org.mvel2.optimizers.dynamic.DynamicGetAccessor.getValue:73 at org.mvel2.ast.ASTNode.getReducedValueAccelerated:106 at org.mvel2.MVELRuntime.execute:87 at org.mvel2.compiler.CompiledExpression.getValue:122 at org.mvel2.MVEL.executeExpression:954 at org.drools.base.extractors.MVELClassFieldReader.getValue:100 at org.drools.base.extractors.BaseObjectClassFieldReader.getLongValue:146 at org.drools.reteoo.ReteooFactHandleFactory.newFactHandle:61 at org.drools.common.AbstractFactHandleFactory.newFactHandle:80 at org.drools.common.AbstractFactHandleFactory.newFactHandle:65 at org.drools.common.NamedEntryPoint.createHandle:720 at org.drools.common.NamedEntryPoint.insert:280 at org.drools.common.AbstractWorkingMemory.insert:886 at org.drools.base.DefaultKnowledgeHelper.insert:180 at org.drools.base.DefaultKnowledgeHelper.insert:174 at com.digitalroute.betssonpoc.Rule_incoming_registration_event.defaultConsequence:14 at com.digitalroute.betssonpoc.Rule_incoming_registration_eventDefaultConsequenceInvoker.evaluate at org.drools.common.DefaultAgenda.fireActivation:1091 at org.drools.common.DefaultAgenda.fireNextItem:1029 at org.drools.common.DefaultAgenda.fireAllRules:1251 at org.drools.common.AbstractWorkingMemory.fireAllRules:708 at org.drools.common.AbstractWorkingMemory.fireAllRules:672 at org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules:218 .. .. -- View this message in context: http://drools.46999.n3.nabble.com/ASMAccessorImpl-classloader-issue-tp3563940p3563940.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] Custom file format
I'm in a situation where my domain models are stored with automatically generated package and class names. I'm looking for a way to somehow map a fake import to the real import att compile time. I guess a dialect is not the way since it only deals with the rules part. I'v been thinking about using ResourceTypeBuilder. Any ideas ? Thanks // Olle -- View this message in context: http://drools.46999.n3.nabble.com/Custom-file-format-tp3489846p3489846.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