core icon indicating copy to clipboard operation
core copied to clipboard

We ship with JBossRules Firing

Open wezell opened this issue 11 years ago • 6 comments

Seen in a thread dump running from distro:

"url:GET//demo.dotcms.com/ | lang:1 | ip:127.0.0.1 | Admin:false | start:05-01-2015 09:15:34 EDT" daemon prio=10 tid=0x0000000000a8d800 nid=0x12eb runnable [0x00007f28c8fcd000]
   java.lang.Thread.State: RUNNABLE
    at java.util.WeakHashMap.put(WeakHashMap.java:521)
    at com.dotcms.repackage.org.drools.common.AbstractRuleBase.addWorkingMemory(Unknown Source)
    at com.dotcms.repackage.org.drools.reteoo.ReteooRuleBase.newWorkingMemory(Unknown Source)
    at com.dotcms.repackage.org.drools.common.AbstractRuleBase.newWorkingMemory(Unknown Source)
    at com.dotmarketing.util.JBossRulesUtils.checkObjectRulesFromXML(JBossRulesUtils.java:161)
    at com.dotmarketing.filters.CMSFilter.doFilter(CMSFilter.java:213)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.dotmarketing.filters.AutoLoginFilter.doFilter(AutoLoginFilter.java:61)

Looking at the code, it is calling https://github.com/dotCMS/core/blob/master-3.2/src/com/dotmarketing/util/JBossRulesUtils.java#L160 and XMLRuleBase is set and !=null

wezell avatar May 01 '15 13:05 wezell

Actually, I am doing benchmarks and all the threads are in this method. Not sure what it is doing but it can't be good.

wezell avatar May 01 '15 13:05 wezell

@wezell what is the purpose of JBossRulesUtils?

https://github.com/dotCMS/core/blob/master-3.2/src/com/dotmarketing/filters/CMSFilter.java#L213

oarrietadotcms avatar May 08 '15 14:05 oarrietadotcms

Long story, but needless to say, the new rules engine will replace it. I would just remove it from the CMSFilter - if people want to use the old JBoss rules functionality, they can uncomment the JBossRulesFilter in their web.xml

On Fri, May 8, 2015 at 10:57 AM, Oscar Arrieta [email protected] wrote:

@wezell https://github.com/wezell what is the purpose of JBossRulesUtils?

https://github.com/dotCMS/core/blob/master-3.2/src/com/dotmarketing/filters/CMSFilter.java#L213

— Reply to this email directly or view it on GitHub https://github.com/dotCMS/core/issues/7681#issuecomment-100261992.

3059 Grand Avenue Suite 410-B Miami FL 33133 Main: 305-900-2001 | Direct: 978.294.9429

[email protected] | dotcms.com http://www.dotcms.com/

https://twitter.com/dotcms http://www.linkedin.com/company/dotcms https://plus.google.com/+Dotcms https://www.facebook.com/dotCMS

dotcmsCodeReview avatar May 08 '15 15:05 dotcmsCodeReview

got it.

oarrietadotcms avatar May 08 '15 15:05 oarrietadotcms

PR: https://github.com/dotCMS/core/pull/7715

oarrietadotcms avatar May 11 '15 21:05 oarrietadotcms

Fixed, tested on release 3.2.2 // Postgres // FF

bryanboza avatar Jul 02 '15 15:07 bryanboza