Memory leak error when deploying Guvnor in Tomcat
by bbarani
Hi,
I am getting the below now and then when I try to export the repository from
one system to another system (move the repository folder / repository.xml
file present in bin folder of tomcat to tomcat bin folder of another
system). Can someone let me know what might be the root cause of this issue.
Sometimes it works fine after migrating the above folders / files but most
of the time I am getting the below error.
SEVERE: A web application registered the JBDC driver
[org.apache.derby.jdbc.Auto
loadedDriver] but failed to unregister it when the web application was
stopped.
To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Sep 15, 2010 4:54:42 PM org.apache.catalina.loader.WebappClassLoader
clearRefere
ncesThreads
SEVERE: A web application appears to have started a thread named [Thread-5]
but
has failed to stop it. This is very likely to create a memory leak.
Sep 15, 2010 4:54:42 PM org.apache.catalina.loader.WebappClassLoader
clearRefere
ncesThreads
SEVERE: A web application appears to have started a thread named [Timer-2]
but h
as failed to stop it. This is very likely to create a memory leak.
Sep 15, 2010 4:54:42 PM org.apache.catalina.loader.WebappClassLoader
clearRefere
ncesThreads
SEVERE: A web application appears to have started a thread named
[derby.antiGC]
but has failed to stop it. This is very likely to create a memory leak.
Sep 15, 2010 4:54:42 PM org.apache.catalina.loader.WebappClassLoader
clearThread
LocalMap
SEVERE: A web application created a ThreadLocal with key of type
[org.apache.jac
krabbit.name.NameFormat$1] (value
[org.apache.jackrabbit.name.NameFormat$1@1104d
a7]) and a value of type [java.util.regex.Matcher] (value
[java.util.regex.Match
er[pattern=(([^ /:\[\]*'"|](?:[^/:\[\]*'"|]*[^ /:\[\]*'"|])?):)?([^
/:\[\]*'"|](
?:[^/:\[\]*'"|]*[^ /:\[\]*'"|])?) region=0,7 lastmatch=nt:base]]) but failed
to
remove it when the web application was stopped. To prevent a memory leak,
the Th
readLocal has been forcibly removed.
Thanks,
Barani
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Memory-leak-error-whe...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 2 months
Re: [rules-users] EntityManager is closed
by Eugenio Abello
I have the same problem with drools 5.2 Using JPA with tomcat on bitronix.
I temporarily resolved with:
env.set (EnvironmentName.CMD_SCOPED_ENTITY_MANAGER, emf.createEntityManager
());
Every time I use the session.
14 years, 2 months
URGENT - using lock-on-active or not
by Yaniv Itzhaki
Hi All,
I have an urgent problem which I hope someone can explain it to me and how
it can be solved.
I created 2 rules "Update 1" and "Update 2", basically the rules are the
same, get all the CaseLog objects according to "Category" and "Value" and
update the Case, which holds a list of CaseLogs, with a new object.
Note that in the update method I am updating the working memory by
retracting the old log and inserting the new one.
Now for the problem:
The problem is that on one hand, when I insert a new log line all rules
without lock-on-active re-fire. On the other hand, rules with lock-on-active
seem to disregard the addition of the new object and fire only on the lines
that were present when their group was activated.
Please see the rules below
Thanks
Yaniv
* *
*rule* "Update 1"
*salience* 4
*ruleflow-group* "group1"
*lock-on-active*
*when*
$case : Case()
$myLog : CaseLog( myClass == "Category",
myValue == "1" )
*then*
System.out.println("Logic: Update 1");
$case.update($myLog,40.0,*null*);
*end*
*rule* "Update 2"
*salience* 0
*ruleflow-group* "group1"
*lock-on-active*
*when*
$case : Case()
$myLog : CaseLog( myClass == "Category",
myValue == "1", $score : myScore )
*then*
System.out.println("Logic: Update 2 " + $score + 5.0);
$case.update($myLog,$score + 5,*null*);
*end*
14 years, 2 months
On Entry On Exit actions question
by Gustavo Tenrreiro
Hi,
When using an "Email" node for example, where On Entry, and On Exit
actions are available. If I create an object within the On Entry
action ( Let's say a list of recipients for the email ), how do I
access that data from the body of the email ? What is the best
strategy to access data that was created on the On Entry action, from
the node itself ?
Thanks
14 years, 2 months
Guvnor InvalidClassException
by Robert Morse
I have a Seam 2.2 application that works perfectly with Drools when it references the drl file directly. Using Guvnor 5.1.0.M1 and the same drl, I'm getting the exception listed below.
I've used earlier releases of Guvnor without any issues, but was curious why this would occur. I've stayed away from the latest release of Guvnor because my cursory evaluation leads me to believe
it's unstable. Clicking on the "verify" button for a particular rule locks JBoss 5.0.
Thanks for your help.
14:13:55,777 ERROR [STDERR] java.io.InvalidClassException: org.drools.base.ClassFieldAccessorStore; local class incompatible: stream classdesc serialVersionUID = 400, local class serialVersionUID = 487535245723988666
The human mind is an iterative processor, it never does anything right the first time. What it does well is to make improvements on every iteration (deMarco)
14 years, 2 months
How to remove a persisted session from the database ?
by Gustavo Tenrreiro
Hi,
I am using persistence, and since the sessions don't seem to have a
standard way of getting removed from the database when they are not
needed anymore, I am wondering how to do that.
I am using JPA but if I call :
em.remove(someSessionInfo);
where em is the JPA EntityManager, that does not remove the entry from
the database.
if I try to use a Query returned by the em.createQuery("delete from
SessionInfo where id = 1") it complains that it needs a transaction,
and since I don't know how to get around the issue I am stuck.
Any help would be appreciated.
Thanks
14 years, 2 months
Drools dependencies
by Evert Penninckx
Hello
I'm using ant to compile and deploy a project which uses drools. I ran in
some jar dependency problems and have a hard time understanding which
packages are required for what and which dependent libs are really needed.
I read the README_DEPENDENCIES file, but it's rather outdated by now. Is it
possible to update this file?
Tnx
Evert
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-dependencies-t...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 2 months