A model class incompatibility issue causing most operations on BRMS fail
by Kunal Shah
I just started playing with BRMS (4.0.0 GA). After trying to upload one
particular model jar, my BRMS is almost inaccessible. Seems like all
calls (to open any rule assets/package) results in populating model info
and hence in following error:
Is there any way to remove this model jar file now and get back by other
configurations? I would think that this should be handled little
gracefully so that entire system doesn't become inaccessible. I am just
using default database configuration right now. I can start from scratch
again but if I have to do that, it will be bad.
10:47:27,358 INFO [STDOUT] ERROR 31-08 10:47:27,358
(Log4JLogger.java:error:119) Exception while dispatching incoming
RPC call
java.lang.ClassFormatError: Incompatible magic value 791289923 in class
file com/sensorlogic/offboard/drools/facts/GenerateAlarm
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
org.drools.rule.MapBackedClassLoader.fastFindClass(MapBackedClassLoader.
java:60)
at
org.drools.rule.MapBackedClassLoader.loadClass(MapBackedClassLoader.java
:79)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.drools.base.ClassTypeResolver.resolveType(ClassTypeResolver.java:148
)
at
org.drools.brms.server.rules.SuggestionCompletionLoader.loadClass(Sugges
tionCompletionLoader.java:269)
at
org.drools.brms.server.rules.SuggestionCompletionLoader.populateModelInf
o(SuggestionCompletionLoader.java:212)
at
org.drools.brms.server.rules.SuggestionCompletionLoader.processPackageHe
ader(SuggestionCompletionLoader.java:118)
at
org.drools.brms.server.rules.SuggestionCompletionLoader.getSuggestionEng
ine(SuggestionCompletionLoader.java:91)
at
org.drools.brms.server.util.BRMSSuggestionCompletionLoader.getSuggestion
Engine(BRMSSuggestionCompletionLoader.java:38)
at
org.drools.brms.server.ServiceImplementation.loadSuggestionCompletionEng
ine(ServiceImplementation.java:708)
at
org.drools.brms.server.ServiceImplementation$$FastClassByCGLIB$$8f2fab45
.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationCon
text.java:45)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationCon
text.java:57)
at
org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInt
erceptor.java:34)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationCon
text.java:69)
at
org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionI
nterceptor.java:47)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationCon
text.java:69)
at
org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(Method
ContextInterceptor.java:27)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationCon
text.java:69)
at
org.jboss.seam.interceptors.SecurityInterceptor.aroundInvoke(SecurityInt
erceptor.java:37)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationCon
text.java:69)
at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103
)
at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBea
nInterceptor.java:154)
at
org.jboss.seam.intercept.JavaBeanInterceptor.intercept(JavaBeanIntercept
or.java:89)
at
org.drools.brms.server.ServiceImplementation$$EnhancerByCGLIB$$fc786c20.
loadSuggestionCompletionEngine(<generated>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.seam.remoting.gwt.GWTToSeamAdapter.callWebRemoteMethod(GWTToSe
amAdapter.java:70)
at
org.jboss.seam.remoting.gwt.GWTRemoteServiceServlet.processCall(GWTRemot
eServiceServlet.java:300)
at
org.jboss.seam.remoting.gwt.GWTRemoteServiceServlet.doPost(GWTRemoteServ
iceServlet.java:181)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:56)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
sociationValve.java:175)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:74)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
9)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorker
Thread.java:112)
at java.lang.Thread.run(Thread.java:595)
10:48:06,775 INFO [STDOUT] DEBUG 31-08 10:48:06,775
(ServiceImplementation.java:listAssets:503) time for asset list
load: 31
10:48:11,978
Kunal Shah
Development
www.sensorlogic.com
17 years, 3 months
Possible to check for null and empty string in same rule?
by Brian Enderle
One of the checks that we are required to do on our data is that the data is
not blank, meaning the value retrieved from the DB is not null and not ""
(empty string) or '' (empty characer), etc..
Is there anyway to create a DSL entry to do this check regardless of the data
type (Stirng, character, Date, etc.) that is returned?
I have tried the obvious ({field} == null || {field} == "") but this only
works for String types. I would really like to have just one DSL entry that
would handle all cases.
Thanks,
Brian Enderle
17 years, 3 months
PDF documntation
by Simon Giesecke
Hi...
currently the Drools reference manual is only available as HTML, is it
possible to also generate a PDF document from the documentation sources?
Kind regards
Simon
--
Dipl.-Inform. Simon Giesecke
Wissenschaftlicher Mitarbeiter
OFFIS e.V.
F&E-Bereich Betriebliches Informationsmanagement
Escherweg 2, 26121 Oldenburg
Tel.: +49 441 9722 581 | Fax: +49 441 9722 111
E-Mail: simon.giesecke(a)offis.de | URL: http://www.offis.de
17 years, 3 months
Execution problems with (or and (and
by vdelbart
Hi,
I have a problem with this execution :
rule "Your First Rule"
when
(or
not Venue()
(and v:Venue()
l:ListeSousVenue()
p:Param()))
then
System.out.println("OK - 1");
end
rule "Your Second Rule"
when
(or
not Venue()
(and p:Param()
l:ListeSousVenue()
v:Venue()))
then
System.out.println("OK - 2");
end
In my WM, I have a Param and a ListeSousVenue but no Venue
But after execution, I have just this result :
"OK - 1"
Why the second rule doesn't execute ?
Thanks,
Vdelbart
--
View this message in context: http://www.nabble.com/Execution-problems-with-%28or-and-%28and-tf4352997....
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 3 months
Ruleflow and Global ?
by vdelbart
Hello,
How to use global in my split condition of a Ruleflow ? :confused::confused:
I try this :
-----------------------------------------------------------------------------
My global map is a HashMap
when I write this :
Boolean(eval((Boolean)map.get("decision") == true)) from Boolean.TRUE;
I have this error :-( :
initPackage/Rule_RuleFlow_mcoProcess_31_32_0.java (10:386) : map cannot be
resolved
when I write this :
Boolean(booleanValue == false) from map.get("decision")
I have this error :-( :
Unable to build expression for 'from' node map.get("decision")' : [Rule
name=RuleFlow-mcoProcess-31-32, agendaGroup=MAIN, salience=0, no-loop=false]
-----------------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/Ruleflow-and-Global---tf4347589.html#a12386433
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 3 months
add process only -> bug ?
by hypnosat7
hi,
I try to add a ruleflow to my rule base :
builder.addRuleFlow(RULE_FLOW);
Package pkg = builder.getPackage();
ruleBase.addPackage(builder.getPackage());
But !!:
java.lang.NullPointerException
at
org.drools.compiler.PackageBuilder.addRuleFlowsToPackage(PackageBuilder.java:469)
at org.drools.compiler.PackageBuilder.getPackage(PackageBuilder.java:449)
at mcmipih.rules.demo.service.TestDraft.main(TestDraft.java:31)
--
View this message in context: http://www.nabble.com/add-process-only--%3E-bug---tf4334017.html#a12343434
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 3 months