Guvnor 5.1.1 Memory leak on Tomcat
by bbarani
Hi,
I have deployed Guvnor 5.1.1 in Tomcat.
I am getting the below error message whenever I shut down Tomcat server.
Sep 21, 2010 3:19:52 PM org.apache.catalina.loader.WebappClassLoader
clearRefere
ncesJdbc
SEVERE: The web application [/drools-5.1.1-guvnor] registered the JBDC
driver [o
rg.apache.derby.jdbc.AutoloadedDriver] but failed to unregister it when the
web
application was stopped. To prevent a memory leak, the JDBC Driver has been
forc
ibly unregistered.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearRefere
ncesThreads
SEVERE: The web application [/drools-5.1.1-guvnor] appears to have started a
thr
ead named [Timer-1] but has failed to stop it. This is very likely to create
a m
emory leak.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearRefere
ncesThreads
SEVERE: The web application [/drools-5.1.1-guvnor] appears to have started a
thr
ead named [pool-1-thread-1] but has failed to stop it. This is very likely
to cr
eate a memory leak.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearRefere
ncesThreads
SEVERE: The web application [/drools-5.1.1-guvnor] appears to have started a
thr
ead named [Thread-23] but has failed to stop it. This is very likely to
create a
memory leak.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearRefere
ncesThreads
SEVERE: The web application [/drools-5.1.1-guvnor] appears to have started a
thr
ead named [Timer-5] but has failed to stop it. This is very likely to create
a m
emory leak.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearThread
LocalMap
SEVERE: The web application [/drools-5.1.1-guvnor] created a ThreadLocal
with ke
y of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@b54ef7]) and
a v
alue of type [org.apache.jackrabbit.core.query.lucene.PerQueryCache] (value
[org
.apache.jackrabbit.core.query.lucene.PerQueryCache@1536ecf]) but failed to
remov
e it when the web application was stopped. This is very likely to create a
memor
y leak.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearThread
LocalMap
SEVERE: The web application [/drools-5.1.1-guvnor] created a ThreadLocal
with ke
y of type [org.apache.derby.iapi.sql.dictionary.TableDescriptor$1] (value
[org.a
pache.derby.iapi.sql.dictionary.TableDescriptor$1@8fdcd1]) and a value of
type [
java.util.WeakHashMap] (value [{=null, ={1, 2, 3}, =null, =null, =null, ={1,
2},
=null, =null, =null, =null, ={1, 2, 3}}]) but failed to remove it when the
web
application was stopped. This is very likely to create a memory leak.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearThread
LocalMap
SEVERE: The web application [/drools-5.1.1-guvnor] created a ThreadLocal
with ke
y of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@ea4081]) and
a v
alue of type [org.apache.derby.iapi.services.context.ContextManager] (value
[org
.apache.derby.iapi.services.context.ContextManager@18facfb]) but failed to
remov
e it when the web application was stopped. This is very likely to create a
memor
y leak.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearThread
LocalMap
SEVERE: The web application [/drools-5.1.1-guvnor] created a ThreadLocal
with ke
y of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@ea4081]) and
a v
alue of type [org.apache.derby.iapi.services.context.ContextManager] (value
[org
.apache.derby.iapi.services.context.ContextManager@1efb003]) but failed to
remov
e it when the web application was stopped. This is very likely to create a
memor
y leak.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearThread
LocalMap
SEVERE: The web application [/drools-5.1.1-guvnor] created a ThreadLocal
with ke
y of type [org.apache.derby.iapi.sql.dictionary.TableDescriptor$1] (value
[org.a
pache.derby.iapi.sql.dictionary.TableDescriptor$1@8fdcd1]) and a value of
type [
java.util.WeakHashMap] (value [{=null}]) but failed to remove it when the
web ap
plication was stopped. This is very likely to create a memory leak.
Has anyone faced this type of issue?
Thanks,
Barani
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-5-1-1-Memory-l...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 5 months
instance level logger
by marton.bokor
Hi All,
I have
logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "rulelog");
But actually I would like to create audit logs for all process instances
with a different file name.
Is it possible to create log files per process instance.
Or the only way to do this is to create a seperate session for all
processes?
Is it possible to close the log file automatically when a process flow has
finished it's execution.
Thanks,
Marton
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/instance-level-logger...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 5 months
Test Scenarios variable binding not working for true/false picklist
by apatel
Hi,
I have a rule that does a null check, as well as a false check on a fact
variable that sets another variable to 'Declined' when it is false or null.
I am testing this using a Test Scenario. I have two test scenarios. One that
check when the fact variable is true and the other when it is false, but
none for the null scenario. When I keep the null check the Decline test
works but the Approve fails. Conversely when I remove the null check the
Approve scenario works but the Decline fails. My conclusion is that the test
fact variable value is not getting bound.
Furthermore the variable that is being set in the test scenario is on a
BankingData fact which is a bind variable on an UnderwritingData fact.
Either the simple variable binding on the BankingData fact is not working or
the fact binding on the UnderwritingData is not working.
How do I debug this. Also is there some specific procedure to follow to bind
a fact? Does the fact that is being bound have to be created before the fact
it is being bound to?
Any help is much appreciated.
Kind regards,
Amisha
ps I also wanted to add that I compiled the Packages in Guvnor and used them
in my Java Tests which are the same as the Test Scenarios and that worked.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Test-Scenarios-variab...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 5 months
Guvnor User Authentication
by apatel
Hi,
I have sucessfully setup Guvnor and created rules, but now I want to setup
user authentication. I have taken the following step to enable it:
(1) added the following to component.xml
<security:identity authenticate-method="#{Authenticator.authenticate}"
jaas-config-name="guvnor" />
and commented out:
<security:identity
authenticate-method="#{defaultAuthenticator.authenticate}"/ >
(2) added the following to $JBOSS_SERVER/conf/login-config.xml:
<application-policy name = "guvnor">
<authentication>
<login-module
code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required">
<module-option
name="usersProperties">users.properties</module-option>
<module-option
name="rolesProperties">roles.properties</module-option>
</login-module>
</authentication>
</application-policy>
(3) added users.properties and roles.properties to
$JBOSS_SERVER/conf/login-config.xml
The admin user defined in the properties has admin, manager, and user roles
assigned to it, but when i login with that user in Guvnor none of the
Packages are available to view and no new ones can be created. Futhermore,
when I navigate to Adminstration -> User permission none of the user that I
created are able to access this page. The message states "TIP: To enable or
disable authorization, open components.xml in WEB-INF".
Have I missed a step? Any help is much appreciated.
Regards,
Amisha
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-User-Authentic...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 5 months
Drools Fusion High Availability
by Thomas Peuß
Hello!
We are thinking about using Drools Fusion 5.1 for Complex Event Processing. We have a prototype running that consumes events from a Tibco JMS server. Everything works as expected. My boss is now asking about HA features that are available. I have read the documentation and found nearly nothing about HA features. In the case of Fusion you have long running threads working on fireUntilHalt(). So when the node goes down you loose all the events that live in the ksession memory. What possibilities do you see to run Fusion in an HA environment?
Thanks for your ideas
Thomas
15 years, 5 months
ForEach element cannot see CollectionExpression
by sam.squire@paretopartners.com
Hello there,
I am experimenting with Drools. I seem to be having problems with making
the ForEach element to work. It cannot 'see' the mappings created when I
start the process. I am hand coding the XML flow files and using the
schema (and documentation) to help me.
The problem seems to be in the flow file before the rule file is even
executed. Is this the correct way to pass a collection to the process?
// the collection to iterate over
Collection<BusinessObject> pending = new ArrayList<BusinessObject>();
pending.add(new BusinessObject());
pending.add(new BusinessObject());
// the parameters for the process
Map<String, Object> params = new HashMap<String, Object>();
params.put("pending", pending);
ksession.startProcess("org.processor", params);
ksession.fireAllRules();
In the rule file, I have:
<forEach id="2" name="processor" variableName="current"
collectionExpression="pending" >
<in-ports>
<in-port type="DROOLS_DEFAULT" nodeId="6"
nodeInType="DROOLS_DEFAULT" />
</in-ports>
<out-ports>
<out-port type="DROOLS_DEFAULT" nodeId="8"
nodeOutType="DROOLS_DEFAULT" />
</out-ports>
<nodes>
<start id="6" name="test" />
<actionNode id="7">
<action type="expression" dialect="mvel">
System.out.println(current);
</action>
</actionNode>
<end id="8" name="done"/>
</nodes>
<connections>
<connection from="6" to="7" />
<connection from="7" to="8" />
</connections>
</forEach>
I cannot tell if the scope inside the ForEach > nodes is separate from the
outer-scope, can I use the same IDs?
The error I receive:
Exception in thread "main" java.lang.IllegalArgumentException: Could not
find collection params
What am I doing wrong?
Regards,
S. Squire
This message may contain confidential and privileged information and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorised. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator and then immediately delete this message. Although we attempt to sweep e-mail and attachments for viruses, we do not guarantee that either are virus-free and accept no liability for any damage sustained as a result of viruses.
Please refer to http://www.bnymellon.com/disclaimer/piml.html for certain disclosures.
15 years, 5 months
garbage collected in process?
by marton.bokor
Hi All,
I have the following code:
Map<String, Object> map = new HashMap<String, Object>();
map.put("form", form);
map.put("error", new Integer(0));
map.put("transaction_id", new Integer(0));
ProcessInstance pi = ksession.startProcess(id, map);
ksession.insert(pi);
ksession.fireAllRules();
Where all map parameters and inserted facts are local variables which will
be destroyed by java garbage collector. My question is, if I have one
session for all processess, will these be freed in the process instance as
well or I need manual disposal?
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/garbage-collected-in-...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 5 months
Complete Solutions Tabu Question
by Steve Ronderos
Hello Drools Users.
Do Solution objects need to implement equals() and hashCode() methods in
order to take advantage of the completeSolutionsTabuSize configuration?
I did a little digging through the code and it appears that Solution
objects are being compared with their clones (implicitly that is, they are
being used as map keys). AbstractTabuAcceptor:87
The documentation mentions that moves need to implement equals and
hashCode, but doesn't talk about Solution needing it.
Thanks in advance,
Steve
15 years, 5 months
Schema Error with Drools spring xsd
by Mohod, Akash
Hi ,
I am using Drools 5.1 with Srping 3.0 . I am getting these errors working in Eclipse :-
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-containe...', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195) [na:1.6.0_19]
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:96) [na:1.6.0_19]
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:380) [na:1.6.0_19]
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318) [na:1.6.0_19]
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:2541) [na:1.6.0_19]
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:2532) [na:1.6.0_19]
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:1836) [na:1.6.0_19]
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:531) [na:1.6.0_19]
Any help is appreciated.
Regards,
Akash
--------------------------------------------------------------------------
NOTICE: If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.
15 years, 5 months
Fixing the "Discouraged access" Eclipse warnings makes all org.drools.* import unresolved
by maurizio
Hi all,
within Eclipse I'm getting several warnings like "Discourages access: the
type SessionPseudoClock is not accessible due to restriction on required
library drools-core.jar". I cannot really understand why using
SessionPseudoClock just as explained in the Fusion manual should be
avoided. Anyway in another thread Kris Verlaenen suggested "You can easily
turn them off by doing: Windows - Preferences -> select Drools on the left
and change the Internal rule classes setting to accessible." Unfortunatly by
doing so I only get a lot of "The import org.drools cannot be resolved"
errors : all drools imports are no more resolved.
Any comment and suggestion will be most welcome.
Thanks and Best regards,
Maurizio
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Fixing-the-Discourage...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 5 months