<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Seaver, Daniel (GE Healthcare) wrote:
<blockquote
 cite="mid:8BC7D3BD84751245B2EF0731B37F02F203E2EEA2@ALPMLVEM07.e2k.ad.ge.com"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2900.3492" name="GENERATOR">
  <div><span class="421301305-20022009"><font color="#0000ff"
 face="Arial" size="2">Thanks for the clarification, Mark. </font></span></div>
  <div><span class="421301305-20022009"></span>&nbsp;</div>
  <div><span class="421301305-20022009"><font color="#0000ff"
 face="Arial" 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>&nbsp;</div>
  <div><span class="421301305-20022009"><font color="#0000ff"
 face="Arial" size="2">drools-5.0.0.SNAPSHOT-eclipse-all.zip</font></span></div>
  <div><span class="421301305-20022009"><font color="#0000ff"
 face="Arial" size="2">drools-5.0.0.SNAPSHOT-guvnor.zip</font></span></div>
  <div><span class="421301305-20022009"></span>&nbsp;</div>
  <div><span class="421301305-20022009"><font color="#0000ff"
 face="Arial" 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>&nbsp;</div>
  <div><span class="421301305-20022009"><font color="#0000ff"
 face="Arial" 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>&nbsp;</div>
  <div><span class="421301305-20022009"><font color="#0000ff"
 face="Arial" 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>&nbsp;</div>
  <div><span class="421301305-20022009"><font color="#0000ff"
 face="Arial" 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:&lt;init&gt;: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:&lt;init&gt;: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>&nbsp;</div>
  <div><span class="421301305-20022009"><font color="#0000ff"
 face="Arial" size="2">&nbsp;&nbsp;&nbsp; Building Workspace - Building all...:
Invoking "Drools Builder' on '/cbo-ejb'.</font></span></div>
  <div><span class="421301305-20022009"></span>&nbsp;</div>
  <div><span class="421301305-20022009"><font color="#0000ff"
 face="Arial" size="2">The status shows 46% complete and just hangs
there.</font></span></div>
  <div><span class="421301305-20022009"></span>&nbsp;</div>
  <div><span class="421301305-20022009"><font color="#0000ff"
 face="Arial" 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
 cite="mid:8BC7D3BD84751245B2EF0731B37F02F203E2EEA2@ALPMLVEM07.e2k.ad.ge.com"
 type="cite">
  <div><span class="421301305-20022009"></span>&nbsp;</div>
  <div><span class="421301305-20022009"><font color="#0000ff"
 face="Arial" size="2">Dan</font></span></div>
  <br>
  <div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us">
  <hr tabindex="-1"><font face="Tahoma" size="2"><b>From:</b> Mark
Proctor [<a class="moz-txt-link-freetext" href="mailto:mproctor@codehaus.org">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 moz-do-not-send="true" class="moz-txt-link-freetext"
 href="https://hudson.jboss.org/hudson/job/drools/">https://hudson.jboss.org/hudson/job/drools/</a><br>
  <br>
The last successful build has it's artifacts at:<br>
  <a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/">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>
&nbsp;&nbsp; The tests are fixed and committed to revision #25353.<br>
    <br>
&nbsp;&nbsp; []s<br>
&nbsp;&nbsp; Edson<br>
    <br>
    <div class="gmail_quote">2009/2/19 Mark Proctor <span dir="ltr">&lt;<a
 href="mailto:mproctor@codehaus.org" moz-do-not-send="true">mproctor@codehaus.org</a>&gt;</span><br>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
      <div bgcolor="#ffffff" text="#000000">
      <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">&lt;dan.seaver@ge.com&gt;</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
&lt;xsd:schema&gt;.
(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
&lt;xsd:schema&gt;.
(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
&lt;xsd:schema&gt;.
[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>
&nbsp;Edson Tirelli<br>
&nbsp;JBoss Drools Core Development<br>
&nbsp;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 size="4" width="90%">
_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" 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>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>