<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><SPAN class=366030217-20022009><FONT face=Arial color=#0000ff size=2>The
only thing of interest in the server's log is:</FONT></SPAN></DIV>
<DIV><SPAN class=366030217-20022009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=366030217-20022009><FONT face=Arial color=#0000ff
size=2>2009-02-20 08:48:31,840 INFO [STDOUT] DEBUG 20-02 08:48:31,840
(SelectorManager.java:<init>:27) Loading selectors<BR>2009-02-20
08:48:31,918 INFO [STDOUT] DEBUG 20-02 08:48:31,918
(ContentManager.java:<init>:45) Loading content
properties<BR></FONT></SPAN></DIV>
<DIV><SPAN class=366030217-20022009><FONT face=Arial color=#0000ff size=2>Though
I see no Errors when I clean the estimator project in eclipse, I see the
following in the log:</FONT></SPAN></DIV>
<DIV><SPAN class=366030217-20022009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=366030217-20022009><FONT face=Arial color=#0000ff size=2>!ENTRY
org.drools.eclipse 4 120 2009-02-20 08:22:40.109<BR>!MESSAGE Internal error in
Drools Plugin: <BR>!STACK 0<BR>java.lang.IllegalArgumentException: Could not
parse process L/estimator/src/main/rules/TestFlow.rf<BR> at
org.drools.eclipse.DroolsEclipsePlugin.parseProcess(Unknown Source)
...<BR></FONT></SPAN></DIV>
<DIV><SPAN class=366030217-20022009><FONT face=Arial color=#0000ff size=2>Don't
know where that L comes from as the file is at
/estimator/src/main/rules/TestFlow.rf<BR></FONT></SPAN></DIV>
<DIV><SPAN class=366030217-20022009><FONT face=Arial color=#0000ff size=2>I put
the source of the estimator package into a file in eclipse and tried to build it
with KnowledgeBuilder, but have the same problem. It just hangs
at:</FONT></SPAN><SPAN class=366030217-20022009><FONT face=Arial color=#0000ff
size=2></DIV></FONT></SPAN>
<DIV><SPAN class=366030217-20022009><FONT color=#0000ff>
<P align=left><FONT size=2><FONT
face=Arial>kbuilder.add(ResourceFactory.<I>newClassPathResource</I>(</FONT><FONT
face=Arial><FONT color=#2a00ff>"estimator.txt"</FONT>,<SPAN
class=366030217-20022009> </SPAN>Test.<B><FONT
color=#7f0055>class</B></FONT></FONT></FONT><FONT face=Arial><FONT size=2>),
ResourceType.<I><FONT color=#0000c0>DRL</I></FONT></FONT></FONT><FONT face=Arial
size=2>);</FONT></P></FONT></SPAN></DIV>
<DIV><SPAN class=366030217-20022009></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT
size=2>I've attached the estimator.txt file (renamed to txt so the eclipse build wouldn't process it). I could try diving into the drools code to see where it's deadlocking, </FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT
size=2>but my time is very limited today<SPAN
class=366030217-20022009>. Let me know and I can find some time this
weekend.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=366030217-20022009></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=366030217-20022009>Dan</SPAN></FONT></FONT></FONT></DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Mark Proctor
[mailto:mproctor@codehaus.org] <BR><B>Sent:</B> Friday, February 20, 2009 8:15
AM<BR><B>To:</B> Rules Users List<BR><B>Subject:</B> Re: [rules-users] Problem
using KnowledgeAgent<BR></FONT><BR></DIV>
<DIV></DIV>Mark Proctor wrote:
<BLOCKQUOTE cite=mid:499ED33F.5090003@codehaus.org type="cite">Seaver, Daniel
(GE Healthcare) wrote:
<BLOCKQUOTE
cite=mid:8BC7D3BD84751245B2EF0731B37F02F203E2EEA2@ALPMLVEM07.e2k.ad.ge.com
type="cite">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR>
<DIV><SPAN class=421301305-20022009><FONT face=Arial color=#0000ff
size=2>Thanks for the clarification, Mark. </FONT></SPAN></DIV>
<DIV><SPAN class=421301305-20022009></SPAN> </DIV>
<DIV><SPAN class=421301305-20022009><FONT face=Arial color=#0000ff size=2>I
followed your links to get the latest of the greatest. Happy to see all
those blue circles in the build history. I downloaded:</FONT></SPAN></DIV>
<DIV><SPAN class=421301305-20022009></SPAN> </DIV>
<DIV><SPAN class=421301305-20022009><FONT face=Arial color=#0000ff
size=2>drools-5.0.0.SNAPSHOT-eclipse-all.zip</FONT></SPAN></DIV>
<DIV><SPAN class=421301305-20022009><FONT face=Arial color=#0000ff
size=2>drools-5.0.0.SNAPSHOT-guvnor.zip</FONT></SPAN></DIV>
<DIV><SPAN class=421301305-20022009></SPAN> </DIV>
<DIV><SPAN class=421301305-20022009><FONT face=Arial color=#0000ff
size=2>Then I updated eclipse with the contents of ...eclips-all.zip,
Started eclipse and created a new runtime (which I put in my
jboss/server/default/lib folder and verified that the ones I had installed
there before were changed). I replaced the M5 version of guvnor with the new
one, and restarted everything.</FONT></SPAN></DIV>
<DIV><SPAN class=421301305-20022009></SPAN> </DIV>
<DIV><SPAN class=421301305-20022009><FONT face=Arial color=#0000ff
size=2>That should be all I need to do, right? Been at this for a while, so
I may be having a mental lapse.</FONT></SPAN></DIV>
<DIV><SPAN class=421301305-20022009></SPAN> </DIV>
<DIV><SPAN class=421301305-20022009><FONT face=Arial color=#0000ff
size=2>Anyways, several projects that I could build before the upgrade don't
build anymore. The build process hangs in Guvnor, as well as in Eclipse.
</FONT></SPAN></DIV>
<DIV><SPAN class=421301305-20022009></SPAN> </DIV>
<DIV><SPAN class=421301305-20022009><FONT face=Arial color=#0000ff
size=2>This is the last output I get in the server's log when trying to
compile the package I'm using for our test:</FONT></SPAN></DIV>
<DIV><SPAN class=421301305-20022009><FONT size=2></FONT>
<P align=left><FONT size=2>21:27:25,132 INFO [STDOUT] DEBUG 19-02
21:27:25,132 (</FONT><U><FONT color=#000080
size=2>SelectorManager.java:<init>:27</FONT></U><FONT size=2>) Loading
selectors</FONT></P>
<P><FONT size=2>21:27:25,195 INFO [STDOUT] DEBUG 19-02 21:27:25,195
(</FONT><U><FONT color=#000080
size=2>ContentManager.java:<init>:45</FONT></U><FONT size=2>) Loading
content properties</FONT></P></SPAN></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=421301305-20022009><FONT size=2>The last thing I see in Eclipse when I
try a complete clean on our primary application
is:</FONT></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=421301305-20022009></SPAN></FONT></FONT></FONT> </DIV>
<DIV><SPAN class=421301305-20022009><FONT face=Arial color=#0000ff
size=2> Building Workspace - Building all...: Invoking
"Drools Builder' on '/cbo-ejb'.</FONT></SPAN></DIV>
<DIV><SPAN class=421301305-20022009></SPAN> </DIV>
<DIV><SPAN class=421301305-20022009><FONT face=Arial color=#0000ff
size=2>The status shows 46% complete and just hangs
there.</FONT></SPAN></DIV>
<DIV><SPAN class=421301305-20022009></SPAN> </DIV>
<DIV><SPAN class=421301305-20022009><FONT face=Arial color=#0000ff size=2>I
think it's time for a cocktail and a nice long sleep. I'll check in tomorrow
before rolling back to M5.</FONT></SPAN></DIV></BLOCKQUOTE>can you look in the
error logs? I was really hoping to CR1 over the weekend. But we need to be
sure these issues are gone.<BR></BLOCKQUOTE>Also if it's in guvnor and eclipse
it sounds like a generic problem with drools compiler. Can I ask you to remove
the plugin and try and build the rules via the knowledgebuilder yourself,
hopefully you'll find the deadlock there yourself and be able ot print a stack
trace we can actually use. Along with the offending rules.<BR><BR>Mark<BR>
<BLOCKQUOTE cite=mid:499ED33F.5090003@codehaus.org type="cite">
<BLOCKQUOTE
cite=mid:8BC7D3BD84751245B2EF0731B37F02F203E2EEA2@ALPMLVEM07.e2k.ad.ge.com
type="cite">
<DIV><SPAN class=421301305-20022009></SPAN> </DIV>
<DIV><SPAN class=421301305-20022009><FONT face=Arial color=#0000ff
size=2>Dan</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Mark Proctor [<A
class=moz-txt-link-freetext href="mailto:mproctor@codehaus.org"
moz-do-not-send="true">mailto:mproctor@codehaus.org</A>] <BR><B>Sent:</B>
Thursday, February 19, 2009 3:25 PM<BR><B>To:</B> Rules Users
List<BR><B>Subject:</B> Re: [rules-users] Problem using
KnowledgeAgent<BR></FONT><BR></DIV>On the left side you see a list of red
and blue circles, red indicates that build was a failure and blue a
success:<BR><A class=moz-txt-link-freetext
href="https://hudson.jboss.org/hudson/job/drools/"
moz-do-not-send="true">https://hudson.jboss.org/hudson/job/drools/</A><BR><BR>The
last successful build has it's artifacts at:<BR><A
class=moz-txt-link-freetext
href="https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/"
moz-do-not-send="true">https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/</A><BR><BR>As
you can see the last build was successful so now you can get all the
binaries from above.<BR><BR>Mark<BR>Edson Tirelli wrote:
<BLOCKQUOTE
cite=mid:e6dd5ba30902191209y79f4bd3ya5e156c6b753f253@mail.gmail.com
type="cite"><BR> The tests are fixed and committed to revision
#25353.<BR><BR> []s<BR> Edson<BR><BR>
<DIV class=gmail_quote>2009/2/19 Mark Proctor <SPAN dir=ltr><<A
href="mailto:mproctor@codehaus.org"
moz-do-not-send="true">mproctor@codehaus.org</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV text="#000000" bgcolor="#ffffff">
<DIV class=Ih2E3d>Dan Seaver wrote:
<BLOCKQUOTE type="cite"><PRE>Yes, the exception occurs on both the filesystem and Guvnor, and it happens
whether I set the value to true or false.
</PRE></BLOCKQUOTE></DIV>I found the issue and reviewed the agent code
and this has been fixed in trunk. Edson si just fixing two failing
tests, but as soon as the build turns blue again grab the latest
artifact builds and give it a try:<BR><A
href="https://hudson.jboss.org/hudson/job/drools/" target=_blank
moz-do-not-send="true">https://hudson.jboss.org/hudson/job/drools/</A><BR><FONT
color=#888888><BR>Mark</FONT>
<DIV>
<DIV class=Wj3C7c><BR>
<BLOCKQUOTE type="cite"><PRE>Michael Neale wrote:
</PRE>
<BLOCKQUOTE type="cite"><PRE>So from the filesystem it won't pick up changes? (does it throw the
same exception).
On Thu, Feb 19, 2009 at 5:34 AM, Dan Seaver <A href="mailto:dan.seaver@ge.com" target=_blank moz-do-not-send="true"><dan.seaver@ge.com></A> wrote:
</PRE>
<BLOCKQUOTE type="cite"><PRE>Mark,
I have some more information for you. The exception occurs when I issue:
agent.monitorResourceChangeEvents(true|false)
If I comment out that code, I don't get the exception, but I don't get
changes either. I tried it with both the Guvnor repository and with a
deployed package on the file system.
I won't have time to create the test you requested until the weekend. Let
me
know if you still want it.
Dan
Mark Proctor wrote:
</PRE>
<BLOCKQUOTE type="cite"><PRE>Dan Seaver wrote:
</PRE>
<BLOCKQUOTE type="cite"><PRE>I setup a KnowledgeAgent using the example code in the JavaDoc for
KnowledgeAgentFactory to access a compiled package in Guvnor. The
package
runs fine, but changes to the package are not picked up. I believe this
is
due to the ChangeSet notification thread being interrupted. But why?
</PRE></BLOCKQUOTE><PRE>Hmm that's not good. I have the following unit test:
<A href="http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/agent/KnowledgeAgentTest.java" target=_blank moz-do-not-send="true">http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/agent/KnowledgeAgentTest.java</A>
Could you provide an update for new tests for detecting url changes?
When making the test you might find it easier to look at the previous
ruleagent tests:
<A href="http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-core/src/test/java/org/drools/agent/URLScannerTest.java" target=_blank moz-do-not-send="true">http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-core/src/test/java/org/drools/agent/URLScannerTest.java</A>
Mark
</PRE>
<BLOCKQUOTE type="cite"><PRE>Also, I'm getting some messages about failing to read schema document.
I
think it is caused by the xml for the ChangeSet, but I'm using the
example
from the JavaDocs.
</PRE></BLOCKQUOTE><PRE>We haven't provided an XSD yet, so it'll provide schema validation
issues, those can be ignored.
</PRE>
<BLOCKQUOTE type="cite"><PRE>Here's a snippet from the log:
[2009:02:48 23:02:905:info] KnowledegAgent has started listening for
ChangeSet notifications
[2009:02:48 23:02:905:info] KnowledgAgent created, with configuration:
monitorChangeSetEvents=true scanResources=true scanDirectories=true
[2009:02:48 23:02:905:exception
java.lang.RuntimeException: KnowledgeAgent ChangeSet notification
thread
has
been interrupted
at
org.drools.agent.impl.KnowledgeAgentImpl$ChangeSetNotificationDetector.run(KnowledgeAgentImpl.java:465)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.InterruptedException
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(Unknown
Source)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown
Source)
at java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
at
org.drools.agent.impl.KnowledgeAgentImpl$ChangeSetNotificationDetector.run(KnowledgeAgentImpl.java:463)
... 1 more
[2009:02:48 23:02:937:info] KnowledegAgent has stopped listening for
ChangeSet notifications
(null: 1, 207): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', 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>.
(null: 1, 207): cvc-elt.1: Cannot find the declaration of element
'change-set'.
(null: 1, 216): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', 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>.
(null: 1, 343): schema_reference.4: Failed to read schema document
'drools-change-set-5.0.xsd', 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>.
[2009:02:48 23:02:390:info] KnowledgAgent applying ChangeSet
</PRE></BLOCKQUOTE><PRE>_______________________________________________
rules-users mailing list
<A href="mailto:rules-users@lists.jboss.org" target=_blank moz-do-not-send="true">rules-users@lists.jboss.org</A>
<A href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank moz-do-not-send="true">https://lists.jboss.org/mailman/listinfo/rules-users</A>
</PRE></BLOCKQUOTE><PRE>--
View this message in context:
<A href="http://www.nabble.com/Problem-using-KnowledgeAgent-tp22073944p22085204.html" target=_blank moz-do-not-send="true">http://www.nabble.com/Problem-using-KnowledgeAgent-tp22073944p22085204.html</A>
Sent from the drools - user mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
<A href="mailto:rules-users@lists.jboss.org" target=_blank moz-do-not-send="true">rules-users@lists.jboss.org</A>
<A href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank moz-do-not-send="true">https://lists.jboss.org/mailman/listinfo/rules-users</A>
</PRE></BLOCKQUOTE><PRE>--
Michael D Neale
home: <A href="http://www.michaelneale.net" target=_blank moz-do-not-send="true">www.michaelneale.net</A>
blog: <A href="http://michaelneale.blogspot.com" target=_blank moz-do-not-send="true">michaelneale.blogspot.com</A>
_______________________________________________
rules-users mailing list
<A href="mailto:rules-users@lists.jboss.org" target=_blank moz-do-not-send="true">rules-users@lists.jboss.org</A>
<A href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank moz-do-not-send="true">https://lists.jboss.org/mailman/listinfo/rules-users</A>
</PRE></BLOCKQUOTE><PRE> </PRE></BLOCKQUOTE><BR></DIV></DIV></DIV><BR>_______________________________________________<BR>rules-users
mailing list<BR><A href="mailto:rules-users@lists.jboss.org"
moz-do-not-send="true">rules-users@lists.jboss.org</A><BR><A
href="https://lists.jboss.org/mailman/listinfo/rules-users"
target=_blank
moz-do-not-send="true">https://lists.jboss.org/mailman/listinfo/rules-users</A><BR><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR> Edson Tirelli<BR> JBoss Drools Core
Development<BR> JBoss, a division of Red Hat @ <A
href="http://www.jboss.com" moz-do-not-send="true">www.jboss.com</A><BR><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
rules-users mailing list
<A class=moz-txt-link-abbreviated href="mailto:rules-users@lists.jboss.org" moz-do-not-send="true">rules-users@lists.jboss.org</A>
<A class=moz-txt-link-freetext href="https://lists.jboss.org/mailman/listinfo/rules-users" moz-do-not-send="true">https://lists.jboss.org/mailman/listinfo/rules-users</A>
</PRE></BLOCKQUOTE><BR><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
rules-users mailing list
<A class=moz-txt-link-abbreviated href="mailto:rules-users@lists.jboss.org" moz-do-not-send="true">rules-users@lists.jboss.org</A>
<A class=moz-txt-link-freetext href="https://lists.jboss.org/mailman/listinfo/rules-users" moz-do-not-send="true">https://lists.jboss.org/mailman/listinfo/rules-users</A>
</PRE></BLOCKQUOTE><BR><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
rules-users mailing list
<A class=moz-txt-link-abbreviated href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A>
<A class=moz-txt-link-freetext href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A>
</PRE></BLOCKQUOTE><BR></BODY></HTML>