<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-2643</id>
	<title>Nabble - Jess</title>
	<updated>2009-11-20T12:39:36Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Jess-f2643.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Jess-f2643.html" />
	<subtitle type="html">Jess is a rule engine and scripting environment written entirely in Sun's JavaTM language by Ernest Friedman-Hill at Sandia National Laboratories in Livermore, CA. Jess was originally inspired by the CLIPS expert system shell, but has grown into a complete, distinct, dynamic environment of its own. Using Jess, you can build Java software that has the capacity to 'reason' using knowledge you supply in the form of declarative rules. Jess is small, light, and one of the fastest rule engines available.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26453621</id>
	<title>Re: JESS: Jess IDE in Eclipse 3.5.1</title>
	<published>2009-11-20T12:39:36Z</published>
	<updated>2009-11-20T12:39:36Z</updated>
	<author>
		<name>Hal Hildebrand-4</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;I'm going to see if I can find out more info on the fail so we can at least understand the failure mode...&lt;div&gt;&lt;br&gt;&lt;div&gt;&lt;div&gt;On Nov 20, 2009, at 11:53 AM, Socrates Frangis wrote:&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;They load for me in 3.5.1, but I have had some issues in the past couple of weeks where I would run and rules would not fire. watch all was enabled and I could see the facts were all in the engine which 'should' trigger the rules. Closing and restarting Eclipse with a -clear fixed it temporarily but there have been some issues where I just had to restart eclipse for it to work. I never received any errors, just not replication in the execution.&lt;br&gt;
&lt;br&gt;This situation only occurs for me when I am creating dynamic web applications and using Tomcat, JSP's, Servlets, and JXL API (Excell API).&lt;br&gt;&lt;br&gt;Also, Jason provided me with a Jess-Eclipse fix patch during our training a few months back. I can not remember if it was just for the debug archive or not, but perhaps the fix is enough to get me by in 3.5.1 without errors.&lt;br&gt;
&lt;br&gt;Odd that this was brought up, I was actually having the problem i describe last night. And just restarting eclipse with a clear fixes it for me. Its not until I add something to my Elcipse plugins directory that odd things happen again.&lt;br&gt;
&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 20, 2009 at 7:51 AM, Ernest Friedman-Hill &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26453621&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
I'm not sure that means anything (although I don't know quite what it means:) the gov.sandia.jess plugin is just a holder for the Jess library, and contains no extensions.&lt;br&gt;
&lt;br&gt;
But that said: they don't seem to load for me under 3.5.1 either. It looks like it's time for a refresh, as Eclipse has changed how plugins work since these were first released. For quite a while they've been supporting two mechanisms, but perhaps the old one has finally stopped working.&lt;br&gt;

&lt;br&gt;
Unless they're working for anybody else under 3.5.1 ?&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;br&gt;
On Nov 19, 2009, at 7:24 PM, Hal Hildebrand wrote:&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Well, still having issues with this. &amp;nbsp;found this warning in the log, which explains why things are getting messed up:&lt;br&gt;
&lt;br&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The extensions and extension-points from the bundle &quot;gov.sandia.jess&quot; are ignored. The bundle is not marked as singleton.&lt;br&gt;
&lt;br&gt;
Anyone else having issues with the IDE under Eclipse 3.5.1?&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------&lt;br&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;
Ernest Friedman-Hill&lt;br&gt;
Informatics &amp;amp; Decision Sciences, Sandia National Laboratories&lt;br&gt;
PO Box 969, MS 9012, Livermore, CA 94550&lt;br&gt;
&lt;a href=&quot;http://www.jessrules.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26453621&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'&lt;br&gt;
in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26453621&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list&lt;br&gt;
(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26453621&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Jess-IDE-in-Eclipse-3.5.1-tp26437945p26453621.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26449782</id>
	<title>Re: JESS: Jess IDE in Eclipse 3.5.1</title>
	<published>2009-11-20T11:53:22Z</published>
	<updated>2009-11-20T11:53:22Z</updated>
	<author>
		<name>Socrates Frangis</name>
	</author>
	<content type="html">They load for me in 3.5.1, but I have had some issues in the past couple of weeks where I would run and rules would not fire. watch all was enabled and I could see the facts were all in the engine which &amp;#39;should&amp;#39; trigger the rules. Closing and restarting Eclipse with a -clear fixed it temporarily but there have been some issues where I just had to restart eclipse for it to work. I never received any errors, just not replication in the execution.&lt;br&gt;
&lt;br&gt;This situation only occurs for me when I am creating dynamic web applications and using Tomcat, JSP&amp;#39;s, Servlets, and JXL API (Excell API).&lt;br&gt;&lt;br&gt;Also, Jason provided me with a Jess-Eclipse fix patch during our training a few months back. I can not remember if it was just for the debug archive or not, but perhaps the fix is enough to get me by in 3.5.1 without errors.&lt;br&gt;
&lt;br&gt;Odd that this was brought up, I was actually having the problem i describe last night. And just restarting eclipse with a clear fixes it for me. Its not until I add something to my Elcipse plugins directory that odd things happen again.&lt;br&gt;
&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 20, 2009 at 7:51 AM, Ernest Friedman-Hill &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26449782&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
I&amp;#39;m not sure that means anything (although I don&amp;#39;t know quite what it means:) the gov.sandia.jess plugin is just a holder for the Jess library, and contains no extensions.&lt;br&gt;
&lt;br&gt;
But that said: they don&amp;#39;t seem to load for me under 3.5.1 either. It looks like it&amp;#39;s time for a refresh, as Eclipse has changed how plugins work since these were first released. For quite a while they&amp;#39;ve been supporting two mechanisms, but perhaps the old one has finally stopped working.&lt;br&gt;

&lt;br&gt;
Unless they&amp;#39;re working for anybody else under 3.5.1 ?&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;br&gt;
On Nov 19, 2009, at 7:24 PM, Hal Hildebrand wrote:&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Well, still having issues with this.  found this warning in the log, which explains why things are getting messed up:&lt;br&gt;
&lt;br&gt;
        The extensions and extension-points from the bundle &amp;quot;gov.sandia.jess&amp;quot; are ignored. The bundle is not marked as singleton.&lt;br&gt;
&lt;br&gt;
Anyone else having issues with the IDE under Eclipse 3.5.1?&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------&lt;br&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;
Ernest Friedman-Hill&lt;br&gt;
Informatics &amp;amp; Decision Sciences, Sandia National Laboratories&lt;br&gt;
PO Box 969, MS 9012, Livermore, CA 94550&lt;br&gt;
&lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
To unsubscribe, send the words &amp;#39;unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26449782&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;&amp;#39;&lt;br&gt;
in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26449782&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list&lt;br&gt;
(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26449782&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Jess-IDE-in-Eclipse-3.5.1-tp26437945p26449782.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26445602</id>
	<title>Re: JESS: Jess IDE in Eclipse 3.5.1</title>
	<published>2009-11-20T07:51:42Z</published>
	<updated>2009-11-20T07:51:42Z</updated>
	<author>
		<name>Ernest Friedman-Hill</name>
	</author>
	<content type="html">I'm not sure that means anything (although I don't know quite what it &amp;nbsp;
&lt;br&gt;means:) the gov.sandia.jess plugin is just a holder for the Jess &amp;nbsp;
&lt;br&gt;library, and contains no extensions.
&lt;br&gt;&lt;br&gt;But that said: they don't seem to load for me under 3.5.1 either. It &amp;nbsp;
&lt;br&gt;looks like it's time for a refresh, as Eclipse has changed how plugins &amp;nbsp;
&lt;br&gt;work since these were first released. For quite a while they've been &amp;nbsp;
&lt;br&gt;supporting two mechanisms, but perhaps the old one has finally stopped &amp;nbsp;
&lt;br&gt;working.
&lt;br&gt;&lt;br&gt;Unless they're working for anybody else under 3.5.1 ?
&lt;br&gt;&lt;br&gt;On Nov 19, 2009, at 7:24 PM, Hal Hildebrand wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Well, still having issues with this. &amp;nbsp;found this warning in the log, &amp;nbsp;
&lt;br&gt;&amp;gt; which explains why things are getting messed up:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 	The extensions and extension-points from the bundle &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;quot;gov.sandia.jess&amp;quot; are ignored. The bundle is not marked as singleton.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Anyone else having issues with the IDE under Eclipse 3.5.1?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------
&lt;br&gt;Ernest Friedman-Hill
&lt;br&gt;Informatics &amp; Decision Sciences, Sandia National Laboratories
&lt;br&gt;PO Box 969, MS 9012, Livermore, CA 94550
&lt;br&gt;&lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26445602&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26445602&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26445602&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Jess-IDE-in-Eclipse-3.5.1-tp26437945p26445602.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26437945</id>
	<title>JESS: Jess IDE in Eclipse 3.5.1</title>
	<published>2009-11-19T16:24:59Z</published>
	<updated>2009-11-19T16:24:59Z</updated>
	<author>
		<name>Hal Hildebrand-4</name>
	</author>
	<content type="html">Well, still having issues with this. &amp;nbsp;found this warning in the log, which explains why things are getting messed up:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The extensions and extension-points from the bundle &amp;quot;gov.sandia.jess&amp;quot; are ignored. The bundle is not marked as singleton.
&lt;br&gt;&lt;br&gt;Anyone else having issues with the IDE under Eclipse 3.5.1?
&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26437945&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26437945&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26437945&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Jess-IDE-in-Eclipse-3.5.1-tp26437945p26437945.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26427222</id>
	<title>JESS: ICNC'10-FSKD'10 Papers Due 15 January: EI Compendex &amp; IEEE Xplore</title>
	<published>2009-11-18T16:22:49Z</published>
	<updated>2009-11-18T16:22:49Z</updated>
	<author>
		<name>ICNC'10-FSKD'10</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:st1=&quot;urn:schemas-microsoft-com:office:smarttags&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;
&lt;title&gt;2009&amp;#24180;&amp;#20840;&amp;#29699;&amp;#35745;&amp;#31639;&amp;#26426;&amp;#31185;&amp;#23398;&amp;#19982;&amp;#20449;&amp;#24687;&amp;#24037;&amp;#31243;&amp;#20250;&amp;#35758;
 &amp;#65288;CSIE 2009&amp;#65289;&lt;/title&gt;
&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;PlaceType&quot; /&gt;
&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;PlaceName&quot; /&gt;
&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;City&quot; /&gt;
&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;place&quot; /&gt;
&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;country-region&quot; /&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
st1\:*{behavior:url(#default#ieooui) }
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-SG link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;Dear
Colleague,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;We
cordially invite you to submit a paper or invited session proposal to the upcoming
6th International Conference on Natural Computation (ICNC'10) and the 7th
International Conference on Fuzzy Systems and Knowledge Discovery (FSKD'10), to
be jointly held from 10-12 August 2010, in &lt;st1:place w:st=&quot;on&quot;&gt;&lt;st1:City w:st=&quot;on&quot;&gt;Yantai&lt;/st1:City&gt;, &lt;st1:country-region w:st=&quot;on&quot;&gt;China&lt;/st1:country-region&gt;&lt;/st1:place&gt;.
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;Yantai
was listed as one of the world's most inhabitable places by the United Nations
and was recognized as the &amp;quot;most charming city of &lt;st1:place w:st=&quot;on&quot;&gt;&lt;st1:country-region w:st=&quot;on&quot;&gt;China&lt;/st1:country-region&gt;&lt;/st1:place&gt;&amp;quot; by China Central
Television. Undulating hills rise above the area's many rivers and are framed
by beaches and neighboring islands. During summer, the breeze wafts from the
sea, and the hills become ornamented with a sea of wildflowers. Famous tourist
attractions include the &lt;st1:PlaceName w:st=&quot;on&quot;&gt;Tashan&lt;/st1:PlaceName&gt; &lt;st1:PlaceType w:st=&quot;on&quot;&gt;Mountain&lt;/st1:PlaceType&gt;, &lt;st1:place w:st=&quot;on&quot;&gt;&lt;st1:PlaceName w:st=&quot;on&quot;&gt;Kongdong&lt;/st1:PlaceName&gt;
 &lt;st1:PlaceType w:st=&quot;on&quot;&gt;Island&lt;/st1:PlaceType&gt;&lt;/st1:place&gt;, and Penglai
Pavilion Scenic Area. Seafood and fruits are plentiful in Yantai.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;Selected
best papers will appear in SCI-indexed journal(s). All papers in conference
proceedings will be indexed by both EI &lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span lang=EN-US style='font-size:11.0pt;font-family:
&quot;Times New Roman&quot;'&gt;Compendex &lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;and ISTP, as well as the
IEEE Xplore. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;ICNC-FSKD
is a premier international forum for scientists and researchers to present the
state of the art of data mining and intelligent methods inspired from nature,
particularly biological, linguistic, and physical systems, with applications to
signal processing, design, and more. Previously, the joint conferences in 2005
through 2009 each attracted over 3000 submissions from around the world.
ICNC'10-FSKD'10 is technically co-sponsored by the IEEE Circuits and Systems
Society. The registration fee of US*D 390 includes proceedings, lunches,
dinners, banquet, coffee breaks, and all technical sessions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;To
promote international participation of researchers from outside the country/region
where the conference is held (i.e., &lt;st1:place w:st=&quot;on&quot;&gt;&lt;st1:country-region w:st=&quot;on&quot;&gt;China&lt;/st1:country-region&gt;&lt;/st1:place&gt;), foreign experts are
encouraged to propose invited sessions. The first author of each paper in an
invited session must not be affiliated with an organization in &lt;st1:place w:st=&quot;on&quot;&gt;&lt;st1:country-region w:st=&quot;on&quot;&gt;China&lt;/st1:country-region&gt;&lt;/st1:place&gt;&amp;#8217;s
mainland. All papers in the invited sessions can be marked as &amp;quot;Invited
Paper&amp;quot;. One organizer for each invited session with at least 6 registered
papers will enjoy an honorarium of US*D 400. Invited session organizers will
solicit submissions, conduct reviews and recommend accept/reject decisions on
the submitted papers. Invited session organizers will be able to set their own
submission and review schedules, as long as a list of recommended papers is
determined by 30 March 2010. Each invited session proposal should include: (1)
the name, bio, and contact information of each organizer of the invited session;
(2) the title and a short synopsis of the invited session. Please send your
proposal to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26427222&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;icnc2010@...&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;For
more information, visit the conference web page:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;&amp;nbsp;&amp;nbsp;
http://icnc-fskd2010.ytu.edu.cn/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;If
you have any questions after visiting the conference web page, please email the
secretariat at &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26427222&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;icnc2010@...&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;Join
us at this major event in &lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span lang=EN-US style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;beautiful
Yantai &lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;!!!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;Organizing
Committee&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;P.S.:
Kindly forward to your colleagues or students who may be interested.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;If
you wish to unsubscribe, in which case we apologize, please reply with
&amp;quot;unsubscribe &lt;/span&gt;&lt;/font&gt;&lt;font size=2&gt;&lt;span style='font-size:11.0pt'&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26427222&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jess-users@...&lt;/a&gt;&lt;/span&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Times New Roman&quot;'&gt;
&amp;quot; in your email subject. Thanks.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'&gt;&lt;strong&gt;&lt;b&gt;&lt;font size=2 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:11.0pt;font-weight:normal'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-ICNC%2710-FSKD%2710-Papers-Due-15-January%3A-EI-Compendex---IEEE-Xplore-tp26427222p26427222.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26393858</id>
	<title>Re: JESS: XMLPrinter and class loading.</title>
	<published>2009-11-17T09:14:57Z</published>
	<updated>2009-11-17T09:14:57Z</updated>
	<author>
		<name>Wolfgang Laun-2</name>
	</author>
	<content type="html">Given that JessML doesn&amp;#39;t represent the X in (deftemplate (declare ...(from-class X)...)...) any more but&lt;br&gt;only the results from reflection-analysis of that class X, I&amp;#39;m not sure that it would be possible without &lt;br&gt;
changing JessML.&lt;br&gt;-W&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 16, 2009 at 9:09 PM, Ernest Friedman-Hill &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26393858&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
I agree that this would be *possible*, but it&amp;#39;s just not how it works right now.&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Nov 16, 2009, at 2:11 PM, Nguyen, Son wrote:&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
Hi,&lt;br&gt;
&lt;br&gt;
I am wondering why XMLPrinter must load classes that are imported.&lt;br&gt;
&lt;br&gt;
Turning clp into jessML could be done during desing time without the need of the imported classes.&lt;br&gt;
It is at runtime that the Rule engine needs the imported classes.&lt;br&gt;
&lt;br&gt;
Any help is appreciated.&lt;br&gt;
&lt;br&gt;
Son Nguyen&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
---------------------------------------------------------&lt;br&gt;
Ernest Friedman-Hill&lt;br&gt;
Informatics &amp;amp; Decision Sciences, Sandia National Laboratories&lt;br&gt;
PO Box 969, MS 9012, Livermore, CA 94550&lt;br&gt;
&lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
To unsubscribe, send the words &amp;#39;unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26393858&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;&amp;#39;&lt;br&gt;
in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26393858&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list&lt;br&gt;
(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26393858&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-XMLPrinter-and-class-loading.-tp26378506p26393858.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26378641</id>
	<title>Re: JESS: XMLPrinter and class loading.</title>
	<published>2009-11-16T12:09:59Z</published>
	<updated>2009-11-16T12:09:59Z</updated>
	<author>
		<name>Ernest Friedman-Hill</name>
	</author>
	<content type="html">I agree that this would be *possible*, but it's just not how it works &amp;nbsp;
&lt;br&gt;right now.
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Nov 16, 2009, at 2:11 PM, Nguyen, Son wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am wondering why XMLPrinter must load classes that are imported.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Turning clp into jessML could be done during desing time without the &amp;nbsp;
&lt;br&gt;&amp;gt; need of the imported classes.
&lt;br&gt;&amp;gt; It is at runtime that the Rule engine needs the imported classes.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any help is appreciated.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Son Nguyen
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------
&lt;br&gt;Ernest Friedman-Hill
&lt;br&gt;Informatics &amp; Decision Sciences, Sandia National Laboratories
&lt;br&gt;PO Box 969, MS 9012, Livermore, CA 94550
&lt;br&gt;&lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378641&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378641&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378641&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-XMLPrinter-and-class-loading.-tp26378506p26378641.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26378616</id>
	<title>Re: JESS: defquery parameters</title>
	<published>2009-11-16T12:08:06Z</published>
	<updated>2009-11-16T12:08:06Z</updated>
	<author>
		<name>Ernest Friedman-Hill</name>
	</author>
	<content type="html">That is *really* clever. Sweet!
&lt;br&gt;&lt;br&gt;On Nov 16, 2009, at 10:59 AM, Wolfgang Laun wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Given this deffunction:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (deffunction list2lambda ($?list)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; (return (eval (str-cat &amp;quot;(lambda (?arg) (return (eq (list &amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(implode$ $?list)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;) ?arg)))&amp;quot; ))))
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; the run-query* call could even be written as simply as
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; (run-query* q1 1 (list2lambda p q r ))
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ah, the beauty of Lisp ;-)
&lt;br&gt;&amp;gt; -W
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Mon, Nov 16, 2009 at 8:45 AM, Wolfgang Laun &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378616&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wolfgang.laun@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;gt; wrote:
&lt;br&gt;&amp;gt; As a workaround, you can use a lambda for smuggling the list into &amp;nbsp;
&lt;br&gt;&amp;gt; the query:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (bind ?eq-pqr (lambda (?arg) (return (eq (list p q r) ?arg))) )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (defquery q1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;(declare (variables ?pa ?lam))
&lt;br&gt;&amp;gt; &amp;nbsp;(myfact (a ?pa) (b ?b) (c $?v &amp;:(?lam $?v))
&lt;br&gt;&amp;gt; &amp;nbsp;)
&lt;br&gt;&amp;gt; )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -W
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Fri, Nov 13, 2009 at 7:04 PM, Ernest Friedman-Hill &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378616&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;gt; wrote:
&lt;br&gt;&amp;gt; Hmmm. Indeed, you're right, and it's a limitation of the &amp;nbsp;
&lt;br&gt;&amp;gt; implementation, not easily lifted. I'll add it to the issues list.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 13, 2009, at 12:20 PM, Michael Welter wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can't a list be passed to defquery?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (deftemplate myfact
&lt;br&gt;&amp;gt; &amp;nbsp;(slot a)
&lt;br&gt;&amp;gt; &amp;nbsp;(slot b)
&lt;br&gt;&amp;gt; &amp;nbsp;(multislot c)
&lt;br&gt;&amp;gt; )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (deffacts f1
&lt;br&gt;&amp;gt; &amp;nbsp;(myfact (a 1)(b 1)(c (create$ p q c)))
&lt;br&gt;&amp;gt; &amp;nbsp;(myfact (a 1)(b 2)(c (create$ p q r)))
&lt;br&gt;&amp;gt; &amp;nbsp;(myfact (a 1)(b 3)(c (create$ p q z)))
&lt;br&gt;&amp;gt; )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (defquery q1
&lt;br&gt;&amp;gt; &amp;nbsp;(declare (variables ?pa ?pc)) &amp;nbsp; &amp;nbsp; &amp;nbsp;; $?pc throws an error
&lt;br&gt;&amp;gt; &amp;nbsp;(myfact
&lt;br&gt;&amp;gt; &amp;nbsp; (a ?pa)
&lt;br&gt;&amp;gt; &amp;nbsp; (b ?b)
&lt;br&gt;&amp;gt; &amp;nbsp; (c $?v&amp;:(eq $?v $?pc)) &amp;nbsp; &amp;nbsp; ; won't work
&lt;br&gt;&amp;gt; &amp;nbsp; ;(c $?v&amp;:(eq (nth$ 1 $?v) ?pc)) &amp;nbsp; &amp;nbsp; ; works
&lt;br&gt;&amp;gt; &amp;nbsp;)
&lt;br&gt;&amp;gt; )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (defrule r1
&lt;br&gt;&amp;gt; &amp;nbsp;(initial-fact)
&lt;br&gt;&amp;gt; =&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;(try
&lt;br&gt;&amp;gt; &amp;nbsp; (bind ?result (run-query* q1 1 (create$ p q r)))
&lt;br&gt;&amp;gt; &amp;nbsp;catch
&lt;br&gt;&amp;gt; &amp;nbsp; (printout t &amp;quot;query failed&amp;quot; crlf)
&lt;br&gt;&amp;gt; &amp;nbsp;)
&lt;br&gt;&amp;gt; &amp;nbsp;(while (?result next) do
&lt;br&gt;&amp;gt; &amp;nbsp; (printout t
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;quot;b: &amp;quot; (?result getString b)
&lt;br&gt;&amp;gt; &amp;nbsp; crlf)
&lt;br&gt;&amp;gt; &amp;nbsp;)
&lt;br&gt;&amp;gt; )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, send the words 'unsubscribe jess-users &amp;nbsp;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378616&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;&amp;gt; in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378616&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;&amp;gt; (use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378616&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; .
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------
&lt;br&gt;&amp;gt; Ernest Friedman-Hill
&lt;br&gt;&amp;gt; Informatics &amp; Decision Sciences &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Phone: (925) 294-2154
&lt;br&gt;&amp;gt; Sandia National Labs
&lt;br&gt;&amp;gt; PO Box 969, MS 9012 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378616&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Livermore, CA 94550 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, send the words 'unsubscribe jess-users &amp;nbsp;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378616&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;&amp;gt; in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378616&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;&amp;gt; (use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378616&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; .
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------
&lt;br&gt;Ernest Friedman-Hill
&lt;br&gt;Informatics &amp; Decision Sciences &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Phone: (925) 294-2154
&lt;br&gt;Sandia National Labs
&lt;br&gt;PO Box 969, MS 9012 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378616&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;
&lt;br&gt;Livermore, CA 94550 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378616&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378616&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378616&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-defquery-parameters-tp26340343p26378616.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26378599</id>
	<title>Re: JESS: Jess Unit Testing</title>
	<published>2009-11-16T12:06:50Z</published>
	<updated>2009-11-16T12:06:50Z</updated>
	<author>
		<name>Ernest Friedman-Hill</name>
	</author>
	<content type="html">This idea -- creating some kind of &amp;quot;JessUnit&amp;quot; -- comes up from time to &amp;nbsp;
&lt;br&gt;time. I've solicited ideas, but unfortunately the conversation tends &amp;nbsp;
&lt;br&gt;to die down too quickly. I think just using JUnit along with some &amp;nbsp;
&lt;br&gt;custom fixtures -- for example, the &amp;quot;assertRuleFired&amp;quot; built using &amp;nbsp;
&lt;br&gt;JessEvents that other people have suggested -- is just about all &amp;nbsp;
&lt;br&gt;anyone really needs.
&lt;br&gt;&lt;br&gt;There's some material in &amp;quot;Jess in Action&amp;quot; about testing, and our &amp;nbsp;
&lt;br&gt;friend George Williamson has written some stuff here:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.jessrules.com/jesswiki/view?TestingStrategies&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com/jesswiki/view?TestingStrategies&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Nov 14, 2009, at 3:02 PM, Socrates Frangis wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; That is what I am doing as of now. Its just that JUnit test cases &amp;nbsp;
&lt;br&gt;&amp;gt; begin to grow and grow and when I noticed how lisp-unit and even the &amp;nbsp;
&lt;br&gt;&amp;gt; JB tester are implemented, they were a little more clean cut and fit &amp;nbsp;
&lt;br&gt;&amp;gt; better for testing a rulebase than just making many Unit tests that &amp;nbsp;
&lt;br&gt;&amp;gt; (create rete object, batch CLP, shove in fatcs, and try to get &amp;nbsp;
&lt;br&gt;&amp;gt; results out).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;I am in a situation where I will not be able to modify the beans &amp;nbsp;
&lt;br&gt;&amp;gt; used in the fact base, they are read only, so I have no luxury of &amp;nbsp;
&lt;br&gt;&amp;gt; the rules setting a flag in the bean and having JUnit check to see &amp;nbsp;
&lt;br&gt;&amp;gt; if the flag was set. So I am currently using a String Writer and &amp;nbsp;
&lt;br&gt;&amp;gt; grabbing the &amp;quot;t&amp;quot; output router. Then doing horrible string.equals in &amp;nbsp;
&lt;br&gt;&amp;gt; my test cases to see if the expected result is what I expect. Aside &amp;nbsp;
&lt;br&gt;&amp;gt; from watchAll() dumping everything, is there a way to just check if &amp;nbsp;
&lt;br&gt;&amp;gt; certain rules fired in a Rete object by passing in their name?
&lt;br&gt;&amp;gt; Something like the following would be ideal, if there was a boolean &amp;nbsp;
&lt;br&gt;&amp;gt; RuleFired method:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; @Test
&lt;br&gt;&amp;gt; public void test_Rule_1_Fired(){
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;//Lets just forget about the Try/Catch blocks for now...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Rete engine = new Rete();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;ExampleBean b = new ExampleBean(12345,first,last);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;engine.add(b);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;engine.batch(rules.clp);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;engine.run();
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;boolean result = engine.RuleFired(&amp;quot;rule-number-one&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;assertTrue(result == true);
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Does something like RuleFired exist and I just missed it in the &amp;nbsp;
&lt;br&gt;&amp;gt; documentation?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Fri, Nov 13, 2009 at 10:59 PM, Wolfgang Laun &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378599&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wolfgang.laun@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;gt; wrote:
&lt;br&gt;&amp;gt; You can create a Rete object and feed it with rules and facts from &amp;nbsp;
&lt;br&gt;&amp;gt; Java code. So you could use JUnit to test individual rules with &amp;nbsp;
&lt;br&gt;&amp;gt; different fact combinations. I see no reason why this should not &amp;nbsp;
&lt;br&gt;&amp;gt; give you satisfactory results. Also, notice that the Rete mehod eval &amp;nbsp;
&lt;br&gt;&amp;gt; lets you pass gobs of CLP to a Rete object.
&lt;br&gt;&amp;gt; -W
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Sat, Nov 14, 2009 at 1:03 AM, Socrates Frangis &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378599&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;soc.frangis@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;gt; wrote:
&lt;br&gt;&amp;gt; Ive been looking around for any good implementation of Unit Testing &amp;nbsp;
&lt;br&gt;&amp;gt; on Jess Rules. LispUnit &lt;a href=&quot;http://www.cliki.net/lisp-unit&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cliki.net/lisp-unit&lt;/a&gt;&amp;nbsp;provides &amp;nbsp;
&lt;br&gt;&amp;gt; something similar for Lisp and I've been messing around with JUnit &amp;nbsp;
&lt;br&gt;&amp;gt; and 'shoe-horning' inputs / expected results. Just wondering if &amp;nbsp;
&lt;br&gt;&amp;gt; anyone has came up with a productive way of testing declarative &amp;nbsp;
&lt;br&gt;&amp;gt; programming when only something procedural (JUnit) is available.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Socrates Frangis
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------
&lt;br&gt;Ernest Friedman-Hill
&lt;br&gt;Informatics &amp; Decision Sciences, Sandia National Laboratories
&lt;br&gt;PO Box 969, MS 9012, Livermore, CA 94550
&lt;br&gt;&lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378599&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378599&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378599&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Jess-Unit-Testing-tp26347289p26378599.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26378506</id>
	<title>JESS: XMLPrinter and class loading.</title>
	<published>2009-11-16T11:11:41Z</published>
	<updated>2009-11-16T11:11:41Z</updated>
	<author>
		<name>Nguyen, Son</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 3.2//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META NAME=&quot;Generator&quot; CONTENT=&quot;MS Exchange Server version 6.5.7653.38&quot;&gt;
&lt;TITLE&gt;XMLPrinter and class loading.&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;!-- Converted from text/rtf format --&gt;
&lt;BR&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;Hi,&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;I am wondering why XMLPrinter must load classes that are imported.&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;Turning clp into jessML could be done during desing time without the need of the imported classes.&lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;It is at runtime that the Rule engine needs the imported classes.&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;Any help is appreciated.&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;Son Nguyen&lt;/FONT&gt;
&lt;/P&gt;

&lt;/BODY&gt;
&lt;/HTML&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-XMLPrinter-and-class-loading.-tp26378506p26378506.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26378500</id>
	<title>Re: JESS: defquery parameters</title>
	<published>2009-11-16T07:59:25Z</published>
	<updated>2009-11-16T07:59:25Z</updated>
	<author>
		<name>Wolfgang Laun-2</name>
	</author>
	<content type="html">Given this deffunction:&lt;br&gt;&lt;br&gt;(deffunction list2lambda ($?list)&lt;br&gt;    (return (eval (str-cat &amp;quot;(lambda (?arg) (return (eq (list &amp;quot; &lt;br&gt;                         (implode$ $?list)&lt;br&gt;                         &amp;quot;) ?arg)))&amp;quot; ))))&lt;br&gt;
&lt;br&gt;the run-query* call could even be written as simply as&lt;br&gt;&lt;br&gt;  (run-query* q1 1 (list2lambda p q r ))&lt;br&gt;&lt;br&gt;Ah, the beauty of Lisp ;-)&lt;br&gt;-W&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 16, 2009 at 8:45 AM, Wolfgang Laun &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378500&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wolfgang.laun@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;As a workaround, you can use a lambda for smuggling the list into the query:&lt;br&gt;
&lt;br&gt;(bind ?eq-pqr (lambda (?arg) (return (eq (list p q r) ?arg))) )&lt;br&gt;&lt;br&gt;&lt;/div&gt;(defquery q1&lt;div class=&quot;im&quot;&gt;&lt;br&gt; (declare (variables ?pa ?lam))&lt;br&gt; (myfact (a ?pa) (b ?b) (c $?v &amp;amp;:(?lam $?v))&lt;br&gt;
 )&lt;br&gt;)&lt;br&gt;&lt;br&gt;-W&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;div class=&quot;im&quot;&gt;On Fri, Nov 13, 2009 at 7:04 PM, Ernest Friedman-Hill &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378500&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;



&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hmmm. Indeed, you&amp;#39;re right, and it&amp;#39;s a limitation of the implementation, not easily lifted. I&amp;#39;ll add it to the issues list.&lt;div&gt;



&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Nov 13, 2009, at 12:20 PM, Michael Welter wrote:&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Can&amp;#39;t a list be passed to defquery?&lt;br&gt;
&lt;br&gt;
(deftemplate myfact&lt;br&gt;
 (slot a)&lt;br&gt;
 (slot b)&lt;br&gt;
 (multislot c)&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
(deffacts f1&lt;br&gt;
 (myfact (a 1)(b 1)(c (create$ p q c)))&lt;br&gt;
 (myfact (a 1)(b 2)(c (create$ p q r)))&lt;br&gt;
 (myfact (a 1)(b 3)(c (create$ p q z)))&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
(defquery q1&lt;br&gt;
 (declare (variables ?pa ?pc))      ; $?pc throws an error&lt;br&gt;
 (myfact&lt;br&gt;
   (a ?pa)&lt;br&gt;
   (b ?b)&lt;br&gt;
   (c $?v&amp;amp;:(eq $?v $?pc))     ; won&amp;#39;t work&lt;br&gt;
   ;(c $?v&amp;amp;:(eq (nth$ 1 $?v) ?pc))     ; works&lt;br&gt;
 )&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
(defrule r1&lt;br&gt;
 (initial-fact)&lt;br&gt;
=&amp;gt;&lt;br&gt;
 (try&lt;br&gt;
   (bind ?result (run-query* q1 1 (create$ p q r)))&lt;br&gt;
 catch&lt;br&gt;
   (printout t &amp;quot;query failed&amp;quot; crlf)&lt;br&gt;
 )&lt;br&gt;
 (while (?result next) do&lt;br&gt;
   (printout t&lt;br&gt;
     &amp;quot;b: &amp;quot; (?result getString b)&lt;br&gt;
   crlf)&lt;br&gt;
 )&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
To unsubscribe, send the words &amp;#39;unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378500&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;&amp;#39;&lt;br&gt;
in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378500&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list&lt;br&gt;
(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378500&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
---------------------------------------------------------&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;
Ernest Friedman-Hill&lt;br&gt;
Informatics &amp;amp; Decision Sciences          Phone: (925) 294-2154&lt;br&gt;
Sandia National Labs&lt;br&gt;
PO Box 969, MS 9012                            &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378500&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;&lt;br&gt;
Livermore, CA 94550                             &lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
To unsubscribe, send the words &amp;#39;unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378500&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;&amp;#39;&lt;br&gt;
in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378500&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list&lt;br&gt;
(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378500&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-defquery-parameters-tp26340343p26378500.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26370718</id>
	<title>Re: JESS: defquery parameters</title>
	<published>2009-11-15T23:45:56Z</published>
	<updated>2009-11-15T23:45:56Z</updated>
	<author>
		<name>Wolfgang Laun-2</name>
	</author>
	<content type="html">As a workaround, you can use a lambda for smuggling the list into the query:&lt;br&gt;&lt;br&gt;(bind ?eq-pqr (lambda (?arg) (return (eq (list p q r) ?arg))) )&lt;br&gt;&lt;br&gt;(defquery q1&lt;br&gt; (declare (variables ?pa ?lam))&lt;br&gt; (myfact (a ?pa) (b ?b) (c $?v &amp;amp;:(?lam $?v))&lt;br&gt;
 )&lt;br&gt;)&lt;br&gt;&lt;br&gt;-W&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 13, 2009 at 7:04 PM, Ernest Friedman-Hill &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26370718&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;


&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hmmm. Indeed, you&amp;#39;re right, and it&amp;#39;s a limitation of the implementation, not easily lifted. I&amp;#39;ll add it to the issues list.&lt;div&gt;


&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Nov 13, 2009, at 12:20 PM, Michael Welter wrote:&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Can&amp;#39;t a list be passed to defquery?&lt;br&gt;
&lt;br&gt;
(deftemplate myfact&lt;br&gt;
 (slot a)&lt;br&gt;
 (slot b)&lt;br&gt;
 (multislot c)&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
(deffacts f1&lt;br&gt;
 (myfact (a 1)(b 1)(c (create$ p q c)))&lt;br&gt;
 (myfact (a 1)(b 2)(c (create$ p q r)))&lt;br&gt;
 (myfact (a 1)(b 3)(c (create$ p q z)))&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
(defquery q1&lt;br&gt;
 (declare (variables ?pa ?pc))      ; $?pc throws an error&lt;br&gt;
 (myfact&lt;br&gt;
   (a ?pa)&lt;br&gt;
   (b ?b)&lt;br&gt;
   (c $?v&amp;amp;:(eq $?v $?pc))     ; won&amp;#39;t work&lt;br&gt;
   ;(c $?v&amp;amp;:(eq (nth$ 1 $?v) ?pc))     ; works&lt;br&gt;
 )&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
(defrule r1&lt;br&gt;
 (initial-fact)&lt;br&gt;
=&amp;gt;&lt;br&gt;
 (try&lt;br&gt;
   (bind ?result (run-query* q1 1 (create$ p q r)))&lt;br&gt;
 catch&lt;br&gt;
   (printout t &amp;quot;query failed&amp;quot; crlf)&lt;br&gt;
 )&lt;br&gt;
 (while (?result next) do&lt;br&gt;
   (printout t&lt;br&gt;
     &amp;quot;b: &amp;quot; (?result getString b)&lt;br&gt;
   crlf)&lt;br&gt;
 )&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
To unsubscribe, send the words &amp;#39;unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26370718&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;&amp;#39;&lt;br&gt;
in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26370718&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list&lt;br&gt;
(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26370718&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
---------------------------------------------------------&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;
Ernest Friedman-Hill&lt;br&gt;
Informatics &amp;amp; Decision Sciences          Phone: (925) 294-2154&lt;br&gt;
Sandia National Labs&lt;br&gt;
PO Box 969, MS 9012                            &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26370718&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;&lt;br&gt;
Livermore, CA 94550                             &lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
To unsubscribe, send the words &amp;#39;unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26370718&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;&amp;#39;&lt;br&gt;
in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26370718&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list&lt;br&gt;
(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26370718&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-defquery-parameters-tp26340343p26370718.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26355690</id>
	<title>Re: JESS: Jess Unit Testing</title>
	<published>2009-11-14T16:52:42Z</published>
	<updated>2009-11-14T16:52:42Z</updated>
	<author>
		<name>Jason Morris</name>
	</author>
	<content type="html">Hi Socrates,
&lt;br&gt;&lt;br&gt;Take a look at the Jess event model, beginning with the JessEvent
&lt;br&gt;class. &amp;nbsp;The Rete engine throws all kinds of event as it is processing.
&lt;br&gt;&amp;nbsp;It's easy to rig up log4j or something to see which rules fired. &amp;nbsp;You
&lt;br&gt;can use the JessEventAdapter to write a custom logging handler.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Jason
&lt;br&gt;&lt;br&gt;On Sat, Nov 14, 2009 at 3:02 PM, Socrates Frangis &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26355690&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;soc.frangis@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; That is what I am doing as of now. Its just that JUnit test cases begin to
&lt;br&gt;&amp;gt; grow and grow and when I noticed how lisp-unit and even the JB tester are
&lt;br&gt;&amp;gt; implemented, they were a little more clean cut and fit better for testing a
&lt;br&gt;&amp;gt; rulebase than just making many Unit tests that (create rete object, batch
&lt;br&gt;&amp;gt; CLP, shove in fatcs, and try to get results out).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  I am in a situation where I will not be able to modify the beans used in
&lt;br&gt;&amp;gt; the fact base, they are read only, so I have no luxury of the rules setting
&lt;br&gt;&amp;gt; a flag in the bean and having JUnit check to see if the flag was set. So I
&lt;br&gt;&amp;gt; am currently using a String Writer and grabbing the &amp;quot;t&amp;quot; output router. Then
&lt;br&gt;&amp;gt; doing horrible string.equals in my test cases to see if the expected result
&lt;br&gt;&amp;gt; is what I expect. Aside from watchAll() dumping everything, is there a way
&lt;br&gt;&amp;gt; to just check if certain rules fired in a Rete object by passing in their
&lt;br&gt;&amp;gt; name?
&lt;br&gt;&amp;gt; Something like the following would be ideal, if there was a boolean
&lt;br&gt;&amp;gt; RuleFired method:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; @Test
&lt;br&gt;&amp;gt; public void test_Rule_1_Fired(){
&lt;br&gt;&amp;gt;    //Lets just forget about the Try/Catch blocks for now...
&lt;br&gt;&amp;gt;    Rete engine = new Rete();
&lt;br&gt;&amp;gt;    ExampleBean b = new ExampleBean(12345,first,last);
&lt;br&gt;&amp;gt;    engine.add(b);
&lt;br&gt;&amp;gt;    engine.batch(rules.clp);
&lt;br&gt;&amp;gt;    engine.run();
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;    boolean result = engine.RuleFired(&amp;quot;rule-number-one&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;    assertTrue(result == true);
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Does something like RuleFired exist and I just missed it in the
&lt;br&gt;&amp;gt; documentation?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Fri, Nov 13, 2009 at 10:59 PM, Wolfgang Laun &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26355690&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wolfgang.laun@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; You can create a Rete object and feed it with rules and facts from Java
&lt;br&gt;&amp;gt;&amp;gt; code. So you could use JUnit to test individual rules with different fact
&lt;br&gt;&amp;gt;&amp;gt; combinations. I see no reason why this should not give you satisfactory
&lt;br&gt;&amp;gt;&amp;gt; results. Also, notice that the Rete mehod eval lets you pass gobs of CLP to
&lt;br&gt;&amp;gt;&amp;gt; a Rete object.
&lt;br&gt;&amp;gt;&amp;gt; -W
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Sat, Nov 14, 2009 at 1:03 AM, Socrates Frangis &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26355690&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;soc.frangis@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Ive been looking around for any good implementation of Unit Testing on
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Jess Rules. LispUnit &lt;a href=&quot;http://www.cliki.net/lisp-unit&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cliki.net/lisp-unit&lt;/a&gt;&amp;nbsp;provides something
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; similar for Lisp and I've been messing around with JUnit and 'shoe-horning'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; inputs / expected results. Just wondering if anyone has came up with a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; productive way of testing declarative programming when only something
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; procedural (JUnit) is available.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -Socrates Frangis
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Cheers,
&lt;br&gt;Jason
&lt;br&gt;----------------------------------------------------------
&lt;br&gt;Morris Technical Solutions LLC
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26355690&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;consulting@...&lt;/a&gt;
&lt;br&gt;(517) 304-5883
&lt;br&gt;&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26355690&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26355690&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26355690&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Jess-Unit-Testing-tp26347289p26355690.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26354027</id>
	<title>Re: JESS: Jess Unit Testing</title>
	<published>2009-11-14T12:02:01Z</published>
	<updated>2009-11-14T12:02:01Z</updated>
	<author>
		<name>Socrates Frangis</name>
	</author>
	<content type="html">That is what I am doing as of now. Its just that JUnit test cases begin to grow and grow and when I noticed how lisp-unit and even the JB tester are implemented, they were a little more clean cut and fit better for testing a rulebase than just making many Unit tests that (create rete object, batch CLP, shove in fatcs, and try to get results out).&lt;br&gt;
&lt;br&gt; I am in a situation where I will not be able to modify the beans used in the fact base, they are read only, so I have no luxury of the rules setting a flag in the bean and having JUnit check to see if the flag was set. So I am currently using a String Writer and grabbing the &amp;quot;t&amp;quot; output router. Then doing horrible string.equals in my test cases to see if the expected result is what I expect. Aside from watchAll() dumping everything, is there a way to just check if certain rules fired in a Rete object by passing in their name? &lt;br&gt;
Something like the following would be ideal, if there was a boolean RuleFired method:&lt;br&gt;&lt;br&gt;@Test&lt;br&gt;public void test_Rule_1_Fired(){&lt;br&gt;   //Lets just forget about the Try/Catch blocks for now...&lt;br&gt;   Rete engine = new Rete();&lt;br&gt;
   ExampleBean b = new ExampleBean(12345,first,last);&lt;br&gt;   engine.add(b);&lt;br&gt;   engine.batch(rules.clp);&lt;br&gt;  
engine.run(); &lt;br&gt;&lt;br&gt;   boolean result = engine.RuleFired(&amp;quot;rule-number-one&amp;quot;); &lt;br&gt;&lt;br&gt;   assertTrue(result == true);&lt;br&gt;}&lt;a name=&quot;Let’s_write_a_test&quot; target=&quot;_top&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;br&gt;
Does something like RuleFired exist and I just missed it in the documentation?&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 13, 2009 at 10:59 PM, Wolfgang Laun &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26354027&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wolfgang.laun@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;You can create a Rete object and feed it with rules and facts from Java code. So you could use JUnit to test individual rules with different fact combinations. I see no reason why this should not give you satisfactory results. Also, notice that the Rete mehod eval lets you pass gobs of CLP to a Rete object.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;
-W &lt;br&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sat, Nov 14, 2009 at 1:03 AM, Socrates Frangis &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26354027&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;soc.frangis@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Ive been looking around for any good implementation of Unit Testing on Jess Rules. LispUnit &lt;a href=&quot;http://www.cliki.net/lisp-unit&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.cliki.net/lisp-unit&lt;/a&gt; provides something similar for Lisp and I&amp;#39;ve been messing around with JUnit and &amp;#39;shoe-horning&amp;#39; inputs / expected results. Just wondering if anyone has came up with a productive way of testing declarative programming when only something procedural (JUnit) is available.&lt;br&gt;

&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;-Socrates Frangis&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Jess-Unit-Testing-tp26347289p26354027.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26349987</id>
	<title>Re: JESS: Jess Unit Testing</title>
	<published>2009-11-13T22:59:43Z</published>
	<updated>2009-11-13T22:59:43Z</updated>
	<author>
		<name>Wolfgang Laun-2</name>
	</author>
	<content type="html">You can create a Rete object and feed it with rules and facts from Java code. So you could use JUnit to test individual rules with different fact combinations. I see no reason why this should not give you satisfactory results. Also, notice that the Rete mehod eval lets you pass gobs of CLP to a Rete object.&lt;br&gt;
-W &lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sat, Nov 14, 2009 at 1:03 AM, Socrates Frangis &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26349987&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;soc.frangis@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Ive been looking around for any good implementation of Unit Testing on Jess Rules. LispUnit &lt;a href=&quot;http://www.cliki.net/lisp-unit&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.cliki.net/lisp-unit&lt;/a&gt; provides something similar for Lisp and I&amp;#39;ve been messing around with JUnit and &amp;#39;shoe-horning&amp;#39; inputs / expected results. Just wondering if anyone has came up with a productive way of testing declarative programming when only something procedural (JUnit) is available.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;-Socrates Frangis&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Jess-Unit-Testing-tp26347289p26349987.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26347289</id>
	<title>JESS: Jess Unit Testing</title>
	<published>2009-11-13T16:03:53Z</published>
	<updated>2009-11-13T16:03:53Z</updated>
	<author>
		<name>Socrates Frangis</name>
	</author>
	<content type="html">Ive been looking around for any good implementation of Unit Testing on Jess Rules. LispUnit &lt;a href=&quot;http://www.cliki.net/lisp-unit&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cliki.net/lisp-unit&lt;/a&gt; provides something similar for Lisp and I&amp;#39;ve been messing around with JUnit and &amp;#39;shoe-horning&amp;#39; inputs / expected results. Just wondering if anyone has came up with a productive way of testing declarative programming when only something procedural (JUnit) is available.&lt;br&gt;
&lt;br&gt;-Socrates Frangis&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Jess-Unit-Testing-tp26347289p26347289.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26340799</id>
	<title>Re: JESS: defquery parameters</title>
	<published>2009-11-13T10:04:34Z</published>
	<updated>2009-11-13T10:04:34Z</updated>
	<author>
		<name>Ernest Friedman-Hill</name>
	</author>
	<content type="html">Hmmm. Indeed, you're right, and it's a limitation of the &amp;nbsp;
&lt;br&gt;implementation, not easily lifted. I'll add it to the issues list.
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Nov 13, 2009, at 12:20 PM, Michael Welter wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Can't a list be passed to defquery?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (deftemplate myfact
&lt;br&gt;&amp;gt; &amp;nbsp;(slot a)
&lt;br&gt;&amp;gt; &amp;nbsp;(slot b)
&lt;br&gt;&amp;gt; &amp;nbsp;(multislot c)
&lt;br&gt;&amp;gt; )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (deffacts f1
&lt;br&gt;&amp;gt; &amp;nbsp;(myfact (a 1)(b 1)(c (create$ p q c)))
&lt;br&gt;&amp;gt; &amp;nbsp;(myfact (a 1)(b 2)(c (create$ p q r)))
&lt;br&gt;&amp;gt; &amp;nbsp;(myfact (a 1)(b 3)(c (create$ p q z)))
&lt;br&gt;&amp;gt; )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (defquery q1
&lt;br&gt;&amp;gt; &amp;nbsp;(declare (variables ?pa ?pc)) &amp;nbsp; &amp;nbsp; &amp;nbsp;; $?pc throws an error
&lt;br&gt;&amp;gt; &amp;nbsp;(myfact
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;(a ?pa)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;(b ?b)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;(c $?v&amp;:(eq $?v $?pc)) &amp;nbsp; &amp;nbsp; ; won't work
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;;(c $?v&amp;:(eq (nth$ 1 $?v) ?pc)) &amp;nbsp; &amp;nbsp; ; works
&lt;br&gt;&amp;gt; &amp;nbsp;)
&lt;br&gt;&amp;gt; )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (defrule r1
&lt;br&gt;&amp;gt; &amp;nbsp;(initial-fact)
&lt;br&gt;&amp;gt; =&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;(try
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;(bind ?result (run-query* q1 1 (create$ p q r)))
&lt;br&gt;&amp;gt; &amp;nbsp;catch
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;(printout t &amp;quot;query failed&amp;quot; crlf)
&lt;br&gt;&amp;gt; &amp;nbsp;)
&lt;br&gt;&amp;gt; &amp;nbsp;(while (?result next) do
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;(printout t
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;b: &amp;quot; (?result getString b)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;crlf)
&lt;br&gt;&amp;gt; &amp;nbsp;)
&lt;br&gt;&amp;gt; )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, send the words 'unsubscribe jess-users &amp;nbsp;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340799&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;&amp;gt; in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340799&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;&amp;gt; (use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340799&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; .
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------
&lt;br&gt;Ernest Friedman-Hill
&lt;br&gt;Informatics &amp; Decision Sciences &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Phone: (925) 294-2154
&lt;br&gt;Sandia National Labs
&lt;br&gt;PO Box 969, MS 9012 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340799&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;
&lt;br&gt;Livermore, CA 94550 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340799&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340799&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340799&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-defquery-parameters-tp26340343p26340799.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26340343</id>
	<title>JESS: defquery parameters</title>
	<published>2009-11-13T09:20:34Z</published>
	<updated>2009-11-13T09:20:34Z</updated>
	<author>
		<name>Michael Welter</name>
	</author>
	<content type="html">Can't a list be passed to defquery?
&lt;br&gt;&lt;br&gt;(deftemplate myfact
&lt;br&gt;&amp;nbsp; (slot a)
&lt;br&gt;&amp;nbsp; (slot b)
&lt;br&gt;&amp;nbsp; (multislot c)
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;(deffacts f1
&lt;br&gt;&amp;nbsp; (myfact (a 1)(b 1)(c (create$ p q c)))
&lt;br&gt;&amp;nbsp; (myfact (a 1)(b 2)(c (create$ p q r)))
&lt;br&gt;&amp;nbsp; (myfact (a 1)(b 3)(c (create$ p q z)))
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;(defquery q1
&lt;br&gt;&amp;nbsp; (declare (variables ?pa ?pc)) &amp;nbsp; &amp;nbsp; &amp;nbsp;; $?pc throws an error
&lt;br&gt;&amp;nbsp; (myfact
&lt;br&gt;&amp;nbsp; &amp;nbsp; (a ?pa)
&lt;br&gt;&amp;nbsp; &amp;nbsp; (b ?b)
&lt;br&gt;&amp;nbsp; &amp;nbsp; (c $?v&amp;:(eq $?v $?pc)) &amp;nbsp; &amp;nbsp; ; won't work
&lt;br&gt;&amp;nbsp; &amp;nbsp; ;(c $?v&amp;:(eq (nth$ 1 $?v) ?pc)) &amp;nbsp; &amp;nbsp; ; works
&lt;br&gt;&amp;nbsp; )
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;(defrule r1
&lt;br&gt;&amp;nbsp; (initial-fact)
&lt;br&gt;=&amp;gt;
&lt;br&gt;&amp;nbsp; (try
&lt;br&gt;&amp;nbsp; &amp;nbsp; (bind ?result (run-query* q1 1 (create$ p q r)))
&lt;br&gt;&amp;nbsp; catch
&lt;br&gt;&amp;nbsp; &amp;nbsp; (printout t &amp;quot;query failed&amp;quot; crlf)
&lt;br&gt;&amp;nbsp; )
&lt;br&gt;&amp;nbsp; (while (?result next) do
&lt;br&gt;&amp;nbsp; &amp;nbsp; (printout t
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;b: &amp;quot; (?result getString b)
&lt;br&gt;&amp;nbsp; &amp;nbsp; crlf)
&lt;br&gt;&amp;nbsp; )
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340343&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340343&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340343&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-defquery-parameters-tp26340343p26340343.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26339938</id>
	<title>Re: JESS: Jess Boot Camp at ORF '09</title>
	<published>2009-11-13T09:04:47Z</published>
	<updated>2009-11-13T09:04:47Z</updated>
	<author>
		<name>Jason Morris</name>
	</author>
	<content type="html">&amp;gt; Are there any other &amp;quot;Jess Boot Camps&amp;quot; planned?
&lt;br&gt;&lt;br&gt;Hi Bob,
&lt;br&gt;&lt;br&gt;The boot camp was really a last-minute idea in support of the October
&lt;br&gt;Rules Fest 2009 conference. &amp;nbsp;The emphasis was placed not just on
&lt;br&gt;learning Jess per se, but on learning Jess in the context of solving a
&lt;br&gt;real application development problem in some domain. &amp;nbsp;This is similar
&lt;br&gt;to what I do in my formal Jess training classes. &amp;nbsp;By all indications,
&lt;br&gt;it was very successful. &amp;nbsp;However, I don't have the facilities to offer
&lt;br&gt;these on a regular basis. &amp;nbsp;I suppose the next official Jess boot camp
&lt;br&gt;isn't until ORF 2010! &amp;nbsp;:-)
&lt;br&gt;&lt;br&gt;That said, let me pose a few questions to the Jess User group:
&lt;br&gt;&lt;br&gt;If I were to create a &amp;quot;boot camp&amp;quot; series of video &amp;quot;shorts&amp;quot; on using
&lt;br&gt;Jess, would people:
&lt;br&gt;&amp;nbsp; [ ] Not use them.
&lt;br&gt;&amp;nbsp; [ ] Use them only if they were free.
&lt;br&gt;&amp;nbsp; [ ] Use them for a nominal contribution.
&lt;br&gt;&amp;nbsp; [ ] Actually purchase them (assuming a professional production value).
&lt;br&gt;&lt;br&gt;If I were to create a series of formal Jess training videos, would people:
&lt;br&gt;&amp;nbsp; [ ] Not use them.
&lt;br&gt;&amp;nbsp; [ ] Use them only if they were free.
&lt;br&gt;&amp;nbsp; [ ] Use them for a nominal contribution.
&lt;br&gt;&amp;nbsp; [ ] Actually purchase them (assuming a professional production value).
&lt;br&gt;&lt;br&gt;BTW -- If you are a Jess user and know of someone who doesn't frequent
&lt;br&gt;this list but is contemplating using Jess, please feel free to forward
&lt;br&gt;this email to him/her.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Jason
&lt;br&gt;&lt;br&gt;----------------------------------------------------------
&lt;br&gt;Morris Technical Solutions LLC
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339938&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;consulting@...&lt;/a&gt;
&lt;br&gt;(517) 304-5883
&lt;br&gt;&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339938&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339938&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339938&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Jess-Boot-Camp-at-ORF-%2709-tp25685774p26339938.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26337473</id>
	<title>Re: JESS: Jess Boot Camp at ORF '09</title>
	<published>2009-11-13T06:24:27Z</published>
	<updated>2009-11-13T06:24:27Z</updated>
	<author>
		<name>Bob Garvey</name>
	</author>
	<content type="html">Are there any other &amp;quot;Jess Boot Camps&amp;quot; planned?
&lt;br&gt;&lt;br&gt;Ernest Friedman-Hill said the following on 9/30/2009 12:41 PM:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; This year our friend Jason Morris is hosting a &amp;quot;Jess Boot Camp&amp;quot; in 
&lt;br&gt;&amp;gt; conjunction with the October Rules Fest, which will be held in 
&lt;br&gt;&amp;gt; Dallas/Ft Worth, Texas, USA on October 25th-26th. This will be an 
&lt;br&gt;&amp;gt; intensive, two-day immersion in Jess programming by the best Jess 
&lt;br&gt;&amp;gt; instructor in the business. If you're serious about getting started 
&lt;br&gt;&amp;gt; with Jess, this is the place to be.
&lt;br&gt;&amp;gt; If you're not already attending the conference, you can register just 
&lt;br&gt;&amp;gt; for the boot camp for a small fee. A special hotel rate is still 
&lt;br&gt;&amp;gt; available. See &lt;a href=&quot;http://www.octoberrulesfest.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.octoberrulesfest.org/&lt;/a&gt;&amp;nbsp;for more information.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------
&lt;br&gt;&amp;gt; Ernest Friedman-Hill
&lt;br&gt;&amp;gt; Informatics &amp; Decision Sciences, Sandia National Laboratories
&lt;br&gt;&amp;gt; PO Box 969, MS 9012, Livermore, CA 94550
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26337473&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;&amp;gt; in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26337473&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;&amp;gt; (use your own address!) List problems? Notify 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26337473&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26337473&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26337473&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26337473&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Jess-Boot-Camp-at-ORF-%2709-tp25685774p26337473.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26337032</id>
	<title>Re: JESS: Intermittent error: Nested exception is null</title>
	<published>2009-11-13T05:51:06Z</published>
	<updated>2009-11-13T05:51:06Z</updated>
	<author>
		<name>Wolfgang Laun-2</name>
	</author>
	<content type="html">Jess can be used in many scenarios but you must guard against the consequences, e.g., whatever results from Swing&amp;#39;s use of a thread for dealing with dispatched events. A paint() executing asynchronously while some other thread changes the component&amp;#39;s (backing) data is dangerous, Jess or no Jess.&lt;br&gt;
-W&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 13, 2009 at 7:38 AM, Patricia Charlton &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26337032&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;patricia.charlton@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div style=&quot;&quot;&gt;&lt;div&gt;Hi there,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks for this. Sorry about the lack of details but the error occurred in a number of places and not consistently with testing. So while it seemed like a &amp;quot;null pointer&amp;quot; of sorts it didn&amp;#39;t seem to be from the JESS code and seemed to be some protege/owl problem.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Further testing and reviewing of the log file from Protege shows some conflict between running JESS from protege and calling JAVA SWING methods.&lt;/div&gt;&lt;div&gt;It might be the way I call these methods but it seems to be a protege/SWING problem and not JESS itself. When I run my engine via Java methods or from the JESS command line without protege the problems don&amp;#39;t appear (at least for now). &lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I&amp;#39;m guessing that calling SWING methods from JESS via the protege environment was never intended?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Kind regards,&lt;/div&gt;&lt;div&gt;Patricia &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;div&gt;&lt;div&gt;On 12 Nov 2009, at 09:15, Wolfgang Laun wrote:&lt;/div&gt;
&lt;br&gt;&lt;blockquote type=&quot;cite&quot;&gt;Without any information about your facts (shadow or not) and rules only very general suggestions are possible.&lt;br&gt;&lt;br&gt;NPE&amp;#39;s may come up when a slot usually holding an object is null and you call a method.&lt;br&gt;
&lt;br&gt;Less obvious are cases when a java.lang.Integer (or similar) is null and the value is used in an arithmetic operation or a comparison; then unboxing causes the NPE.&lt;br&gt; &lt;br&gt;-W&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 9, 2009 at 10:29 AM, Patricia Charlton &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26337032&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;patricia.charlton@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt; Hi there,&lt;br&gt; &lt;br&gt; I&amp;#39;m developing an inference engine using JESS. I am using protege and JESS TAB integration and running JESS from the protege environment.&lt;br&gt;
 &lt;br&gt; Occasionally I get an error nested exception is: null. It does not happen each time I run the application and I have tested each part independently. It is also not always with the same inference about a particular concept.&lt;br&gt;
 &lt;br&gt; Is there a known problem between the integration environment where for example concept pointers may get dropped?&lt;br&gt; &lt;br&gt; I am currently at a loss as to how to fix this. It maybe a problem with protege/jess or jess tab.&lt;br&gt;
 &lt;br&gt; (current environment is MAC, Protege 3.4 and Jess 7.1)&lt;br&gt; &lt;br&gt; Any help or pointers at this stage would be great.&lt;br&gt; &lt;br&gt; Kind regards,&lt;br&gt; Patricia&lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;br&gt; --------------------------------------------------------------------&lt;br&gt;
 To unsubscribe, send the words &amp;#39;unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26337032&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;&amp;#39;&lt;br&gt; in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26337032&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list&lt;br&gt;
 (use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26337032&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.&lt;br&gt; --------------------------------------------------------------------&lt;br&gt; &lt;br&gt;
 &lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Intermittent-error%3A-Nested-exception-is-null-tp26312840p26337032.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26336682</id>
	<title>Re: JESS: Intermittent error: Nested exception is null</title>
	<published>2009-11-13T05:36:19Z</published>
	<updated>2009-11-13T05:36:19Z</updated>
	<author>
		<name>Ernest Friedman-Hill</name>
	</author>
	<content type="html">&amp;quot;Nested exception is: null&amp;quot; means that the *message* in the nested &amp;nbsp;
&lt;br&gt;exception is null; this is often the case for several kinds of &amp;nbsp;
&lt;br&gt;exceptions thrown by the JVM itself, NullPointerExceptions being the &amp;nbsp;
&lt;br&gt;most common. If you have access to the Exception object itself, then &amp;nbsp;
&lt;br&gt;use theException.getCause().printStackTrace() to display the trace of &amp;nbsp;
&lt;br&gt;this nested exception -- it will give you a lot more information about &amp;nbsp;
&lt;br&gt;what's really happening.
&lt;br&gt;&lt;br&gt;Swing is touchy because you're only supposed to work with it on the &amp;nbsp;
&lt;br&gt;GUI event processing thread; calling Swing methods directly from any &amp;nbsp;
&lt;br&gt;of your Jess/Protege code likely violates this prescription, and &amp;nbsp;
&lt;br&gt;that's one possible source of these errors. You need to be aware of &amp;nbsp;
&lt;br&gt;threading issues any time you're working with Swing, using Jess/ 
&lt;br&gt;Protege or in any other situation.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Nov 13, 2009, at 1:38 AM, Patricia Charlton wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi there,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks for this. Sorry about the lack of details but the error &amp;nbsp;
&lt;br&gt;&amp;gt; occurred in a number of places and not consistently with testing. So &amp;nbsp;
&lt;br&gt;&amp;gt; while it seemed like a &amp;quot;null pointer&amp;quot; of sorts it didn't seem to be &amp;nbsp;
&lt;br&gt;&amp;gt; from the JESS code and seemed to be some protege/owl problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Further testing and reviewing of the log file from Protege shows &amp;nbsp;
&lt;br&gt;&amp;gt; some conflict between running JESS from protege and calling JAVA &amp;nbsp;
&lt;br&gt;&amp;gt; SWING methods.
&lt;br&gt;&amp;gt; It might be the way I call these methods but it seems to be a &amp;nbsp;
&lt;br&gt;&amp;gt; protege/SWING problem and not JESS itself. When I run my engine via &amp;nbsp;
&lt;br&gt;&amp;gt; Java methods or from the JESS command line without protege the &amp;nbsp;
&lt;br&gt;&amp;gt; problems don't appear (at least for now).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm guessing that calling SWING methods from JESS via the protege &amp;nbsp;
&lt;br&gt;&amp;gt; environment was never intended?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Kind regards,
&lt;br&gt;&amp;gt; Patricia
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On 12 Nov 2009, at 09:15, Wolfgang Laun wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Without any information about your facts (shadow or not) and rules &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; only very general suggestions are possible.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; NPE's may come up when a slot usually holding an object is null and &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; you call a method.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Less obvious are cases when a java.lang.Integer (or similar) is &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; null and the value is used in an arithmetic operation or a &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; comparison; then unboxing causes the NPE.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -W
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Mon, Nov 9, 2009 at 10:29 AM, Patricia Charlton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336682&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;patricia.charlton@...&lt;/a&gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi there,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm developing an inference engine using JESS. I am using protege &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; and JESS TAB integration and running JESS from the protege &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; environment.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Occasionally I get an error nested exception is: null. It does not &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; happen each time I run the application and I have tested each part &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; independently. It is also not always with the same inference about &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; a particular concept.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Is there a known problem between the integration environment where &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; for example concept pointers may get dropped?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I am currently at a loss as to how to fix this. It maybe a problem &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; with protege/jess or jess tab.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (current environment is MAC, Protege 3.4 and Jess 7.1)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Any help or pointers at this stage would be great.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Kind regards,
&lt;br&gt;&amp;gt;&amp;gt; Patricia
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336682&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt; 
&lt;br&gt;&amp;gt;&amp;gt; '
&lt;br&gt;&amp;gt;&amp;gt; in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336682&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;&amp;gt;&amp;gt; (use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336682&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt; 
&lt;br&gt;&amp;gt;&amp;gt; .
&lt;br&gt;&amp;gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------
&lt;br&gt;Ernest Friedman-Hill
&lt;br&gt;Informatics &amp; Decision Sciences, Sandia National Laboratories
&lt;br&gt;PO Box 969, MS 9012, Livermore, CA 94550
&lt;br&gt;&lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336682&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336682&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336682&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Intermittent-error%3A-Nested-exception-is-null-tp26312840p26336682.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26335474</id>
	<title>Re: JESS: Intermittent error: Nested exception is null</title>
	<published>2009-11-12T22:38:16Z</published>
	<updated>2009-11-12T22:38:16Z</updated>
	<author>
		<name>Patricia Charlton</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;div&gt;Hi there,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks for this. Sorry about the lack of details but the error occurred in a number of places and not consistently with testing. So while it seemed like a &quot;null pointer&quot; of sorts it didn't seem to be from the JESS code and seemed to be some protege/owl problem.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Further testing and reviewing of the log file from Protege shows some conflict between running JESS from protege and calling JAVA SWING methods.&lt;/div&gt;&lt;div&gt;It might be the way I call these methods but it seems to be a protege/SWING problem and not JESS itself. When I run my engine via Java methods or from the JESS command line without protege the problems don't appear (at least for now).&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I'm guessing that calling SWING methods from JESS via the protege environment was never intended?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Kind regards,&lt;/div&gt;&lt;div&gt;Patricia&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;div&gt;&lt;div&gt;On 12 Nov 2009, at 09:15, Wolfgang Laun wrote:&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;Without any information about your facts (shadow or not) and rules only very general suggestions are possible.&lt;br&gt;&lt;br&gt;NPE's may come up when a slot usually holding an object is null and you call a method.&lt;br&gt;&lt;br&gt;Less obvious are cases when a java.lang.Integer (or similar) is null and the value is used in an arithmetic operation or a comparison; then unboxing causes the NPE.&lt;br&gt; &lt;br&gt;-W&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 9, 2009 at 10:29 AM, Patricia Charlton &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26335474&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;patricia.charlton@...&lt;/a&gt;&gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt; Hi there,&lt;br&gt; &lt;br&gt; I'm developing an inference engine using JESS. I am using protege and JESS TAB integration and running JESS from the protege environment.&lt;br&gt; &lt;br&gt; Occasionally I get an error nested exception is: null. It does not happen each time I run the application and I have tested each part independently. It is also not always with the same inference about a particular concept.&lt;br&gt; &lt;br&gt; Is there a known problem between the integration environment where for example concept pointers may get dropped?&lt;br&gt; &lt;br&gt; I am currently at a loss as to how to fix this. It maybe a problem with protege/jess or jess tab.&lt;br&gt; &lt;br&gt; (current environment is MAC, Protege 3.4 and Jess 7.1)&lt;br&gt; &lt;br&gt; Any help or pointers at this stage would be great.&lt;br&gt; &lt;br&gt; Kind regards,&lt;br&gt; Patricia&lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;br&gt; --------------------------------------------------------------------&lt;br&gt; To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26335474&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'&lt;br&gt; in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26335474&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list&lt;br&gt; (use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26335474&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.&lt;br&gt; --------------------------------------------------------------------&lt;br&gt; &lt;br&gt; &lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/body&gt;&lt;/html&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Intermittent-error%3A-Nested-exception-is-null-tp26312840p26335474.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26317645</id>
	<title>Re: JESS: Intermittent error: Nested exception is null</title>
	<published>2009-11-12T01:15:35Z</published>
	<updated>2009-11-12T01:15:35Z</updated>
	<author>
		<name>Wolfgang Laun-2</name>
	</author>
	<content type="html">Without any information about your facts (shadow or not) and rules only very general suggestions are possible.&lt;br&gt;&lt;br&gt;NPE&amp;#39;s may come up when a slot usually holding an object is null and you call a method.&lt;br&gt;&lt;br&gt;Less obvious are cases when a java.lang.Integer (or similar) is null and the value is used in an arithmetic operation or a comparison; then unboxing causes the NPE.&lt;br&gt;
&lt;br&gt;-W&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 9, 2009 at 10:29 AM, Patricia Charlton &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26317645&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;patricia.charlton@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi there,&lt;br&gt;
&lt;br&gt;
I&amp;#39;m developing an inference engine using JESS. I am using protege and JESS TAB integration and running JESS from the protege environment.&lt;br&gt;
&lt;br&gt;
Occasionally I get an error nested exception is: null. It does not happen each time I run the application and I have tested each part independently. It is also not always with the same inference about a particular concept.&lt;br&gt;

&lt;br&gt;
Is there a known problem between the integration environment where for example concept pointers may get dropped?&lt;br&gt;
&lt;br&gt;
I am currently at a loss as to how to fix this. It maybe a problem with protege/jess or jess tab.&lt;br&gt;
&lt;br&gt;
(current environment is MAC, Protege 3.4 and Jess 7.1)&lt;br&gt;
&lt;br&gt;
Any help or pointers at this stage would be great.&lt;br&gt;
&lt;br&gt;
Kind regards,&lt;br&gt;
Patricia&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
To unsubscribe, send the words &amp;#39;unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26317645&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;&amp;#39;&lt;br&gt;
in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26317645&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list&lt;br&gt;
(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26317645&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Intermittent-error%3A-Nested-exception-is-null-tp26312840p26317645.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26312840</id>
	<title>JESS: Intermittent error: Nested exception is null</title>
	<published>2009-11-09T01:29:05Z</published>
	<updated>2009-11-09T01:29:05Z</updated>
	<author>
		<name>Patricia Charlton</name>
	</author>
	<content type="html">Hi there,
&lt;br&gt;&lt;br&gt;I'm developing an inference engine using JESS. I am using protege and &amp;nbsp;
&lt;br&gt;JESS TAB integration and running JESS from the protege environment.
&lt;br&gt;&lt;br&gt;Occasionally I get an error nested exception is: null. It does not &amp;nbsp;
&lt;br&gt;happen each time I run the application and I have tested each part &amp;nbsp;
&lt;br&gt;independently. It is also not always with the same inference about a &amp;nbsp;
&lt;br&gt;particular concept.
&lt;br&gt;&lt;br&gt;Is there a known problem between the integration environment where for &amp;nbsp;
&lt;br&gt;example concept pointers may get dropped?
&lt;br&gt;&lt;br&gt;I am currently at a loss as to how to fix this. It maybe a problem &amp;nbsp;
&lt;br&gt;with protege/jess or jess tab.
&lt;br&gt;&lt;br&gt;(current environment is MAC, Protege 3.4 and Jess 7.1)
&lt;br&gt;&lt;br&gt;Any help or pointers at this stage would be great.
&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;Patricia
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312840&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312840&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312840&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Intermittent-error%3A-Nested-exception-is-null-tp26312840p26312840.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26231508</id>
	<title>Re: JESS: Interfaces and classes with shadow facts</title>
	<published>2009-11-06T02:48:10Z</published>
	<updated>2009-11-06T02:48:10Z</updated>
	<author>
		<name>Joao Carlos Mourao</name>
	</author>
	<content type="html">Thanks for the answers given. I'll try the suggestions referred. Thanks 
&lt;br&gt;again.
&lt;br&gt;Joao
&lt;br&gt;&lt;br&gt;On 05-11-2009 13:43, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231508&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rrogers@...&lt;/a&gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; In the case I was using, I have a couple of classes that all implement the same interface (this is Java, independent of Jess) &amp;nbsp;E.g. &amp;nbsp;
&lt;br&gt;&amp;gt; 	ClassA &amp;nbsp;implements IMyInterface
&lt;br&gt;&amp;gt; 	ClassB extends ClassA
&lt;br&gt;&amp;gt; 	ClassC implements IMyInterface
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My simple IMyInterface implements a getName function.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In Jess, you would declare the inheritence tree like:
&lt;br&gt;&amp;gt; (defclass IMyInterface IMyInterface)
&lt;br&gt;&amp;gt; (defclass ClassA ClassA extends IMyInterface)
&lt;br&gt;&amp;gt; (defclass ClassB ClassB extends ClassA)
&lt;br&gt;&amp;gt; (defclass ClassC ClassC extends IMyInterface)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In your Java code, you would create instance of the classes as needed
&lt;br&gt;&amp;gt; ClassA a = new ClassA();
&lt;br&gt;&amp;gt; ClassB b = new ClassB();
&lt;br&gt;&amp;gt; ClassC c = new ClassC();
&lt;br&gt;&amp;gt; Rete r = new Rete();
&lt;br&gt;&amp;gt; r.add(a);
&lt;br&gt;&amp;gt; r.add(b);
&lt;br&gt;&amp;gt; r.add(c);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; A rule like this will match all 3 objects, because they ultimately implement the same interface
&lt;br&gt;&amp;gt; r.eval(&amp;quot;(defrule find-an-i1 \n&amp;quot; + 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;?x &amp;lt;- (IInterface1 (name ?x_name) (OBJECT ?x_obj))\n&amp;quot; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;=&amp;gt;&amp;quot; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;(printout t \&amp;quot;Found an IInterface1 called \&amp;quot; ?x_name crlf)\n&amp;quot; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;)&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It is a single inheritence tree, so you can't have 
&lt;br&gt;&amp;gt; (defclass ClassA ClassA extends IMyInteface, ISomeOtherInterface)
&lt;br&gt;&amp;gt; You might need to create an interface which is a combination of two or more other interfaces so that there is a single path to the root. &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Russ
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231508&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231508&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;] On Behalf Of Joao Carlos Mourao
&lt;br&gt;&amp;gt; Sent: Thursday, November 05, 2009 2:39 AM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231508&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jess-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: JESS: Interfaces and classes with shadow facts
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What i would like to make, is to tell jess that Interface1 is the interface of Class1, so when i try to match a fact from Class1 using Interface1, it works. But I guess, from your answer, Jess don't see any difference between interface and classes, so if the objects are inserted as Class1, then with Class1 should be matched and not with Interface1. 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Joao
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On 03-11-2009 17:17, Ernest Friedman-Hill wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Jess treats classes and interfaces the same. Template inheritance 
&lt;br&gt;&amp;gt;&amp;gt; models a single-inheritance tree, and each object can be in working 
&lt;br&gt;&amp;gt;&amp;gt; memory just once, so there's no way to create multiple different trees 
&lt;br&gt;&amp;gt;&amp;gt; of templates to match the same set of facts.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The basic idea of what you've shown below should work fine; is there a 
&lt;br&gt;&amp;gt;&amp;gt; specific problem with it that I can help you with?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Nov 3, 2009, at 8:40 AM, Joao Carlos Mourao wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm having some problems to use interfaces in Jess. I had make a 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; search in the mailing list, and although there were some messages 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; over the topic, i still was not able to really understand how the process works.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The problem is basic: I have a set of classes C, and a respective set 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; of interfaces I. I'm creating objects of classes C and adding to the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; working memory. I would like use the interfaces I to access this 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; objects (in Jess). How?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Solutions:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;a) should i declare the classes, and work with the classes, 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; leaving the interfaces behind;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;b) declare the interfaces as (deftemplate I_name (declare 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; (from-class C_name)); Doesn't work, because when i try to match in a 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; rule, I_name is not the same as C_name, then Jess don't match
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;c) have a combination of declarations of interfaces and classes, 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; like Russ did in a previous message
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;r.eval(&amp;quot;(defclass IInterface1 IInterface1)&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; r.eval(&amp;quot;(defclass IInterface2 IInterface2 extends 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; IInterface1)&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r.eval(&amp;quot;(defclass AbstractClassA AbstractClassA 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; extends IInterface2)&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r.eval(&amp;quot;(defclass ClassB ClassB extends 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; AbstractClassA)&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r.eval(&amp;quot;(defclass ClassC ClassC extends 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; AbstractClassA)&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r.eval(&amp;quot;(defclass ClassD ClassD extends IInterface2)&amp;quot;);&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; , which i have tried but haven't worked.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Any ideas?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Joao
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -unclassified
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Disclaimer:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; If you are not the intended recipient of this email, please notify 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the sender and delete it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Any unauthorized copying, disclosure or distribution of this email or 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; its attachment(s) is forbidden.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thales Nederland BV will not accept liability for any damage caused 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; by this email or its attachment(s).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thales Nederland BV is seated in Hengelo and is registered at the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Chamber of Commerce under number 06061578.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;joao.mourao.vcf&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; Ernest Friedman-Hill
&lt;br&gt;&amp;gt;&amp;gt; Informatics &amp; Decision Sciences &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Phone: (925) 294-2154
&lt;br&gt;&amp;gt;&amp;gt; Sandia National Labs
&lt;br&gt;&amp;gt;&amp;gt; PO Box 969, MS 9012 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231508&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Livermore, CA 94550 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231508&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;&amp;gt;&amp;gt; in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231508&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list (use 
&lt;br&gt;&amp;gt;&amp;gt; your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231508&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;&amp;gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Disclaimer:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you are not the intended recipient of this email, please notify the sender and delete it. 
&lt;br&gt;&amp;gt; Any unauthorized copying, disclosure or distribution of this email or its attachment(s) is forbidden. 
&lt;br&gt;&amp;gt; Thales Nederland BV will not accept liability for any damage caused by this email or its attachment(s). 
&lt;br&gt;&amp;gt; Thales Nederland BV is seated in Hengelo and is registered at the Chamber of Commerce under number 06061578.
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231508&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;&amp;gt; in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231508&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;&amp;gt; (use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231508&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------------------------------------
&lt;br&gt;Disclaimer:
&lt;br&gt;&lt;br&gt;If you are not the intended recipient of this email, please notify the sender and delete it. 
&lt;br&gt;Any unauthorized copying, disclosure or distribution of this email or its attachment(s) is forbidden. 
&lt;br&gt;Thales Nederland BV will not accept liability for any damage caused by this email or its attachment(s). 
&lt;br&gt;Thales Nederland BV is seated in Hengelo and is registered at the Chamber of Commerce under number 06061578.
&lt;br&gt;------------------------------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&lt;br /&gt;begin:vcard
&lt;br&gt;fn;quoted-printable:Jo=C3=A3o Mour=C3=A3o
&lt;br&gt;n;quoted-printable;quoted-printable:Mour=C3=A3o;Jo=C3=A3o
&lt;br&gt;org:Thales;Above Water Systems
&lt;br&gt;adr:;;;Hengelo;;;Netherlands
&lt;br&gt;email;internet:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231508&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;joao.mourao@...&lt;/a&gt;
&lt;br&gt;title:THALES NETHERLANDS B.V.
&lt;br&gt;tel;work:2640
&lt;br&gt;note:-unclassified mail-
&lt;br&gt;version:2.1
&lt;br&gt;end:vcard
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-Interfaces-and-classes-with-shadow-facts-tp26181784p26231508.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26217236</id>
	<title>Re: JESS: decimal constant</title>
	<published>2009-11-05T07:36:09Z</published>
	<updated>2009-11-05T07:36:09Z</updated>
	<author>
		<name>Ernest Friedman-Hill</name>
	</author>
	<content type="html">No, there is not. You can use double-quoted Strings instead of symbols &amp;nbsp;
&lt;br&gt;though.
&lt;br&gt;&lt;br&gt;On Nov 5, 2009, at 10:14 AM, Michael Welter wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Is there a way to switch-off the decimal constant in the grammar? &amp;nbsp;For
&lt;br&gt;&amp;gt; example, I'd like the token 64d to be parsed as a symbol and not as a
&lt;br&gt;&amp;gt; number.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;---------------------------------------------------------
&lt;br&gt;Ernest Friedman-Hill
&lt;br&gt;Informatics &amp; Decision Sciences &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Phone: (925) 294-2154
&lt;br&gt;Sandia National Labs
&lt;br&gt;PO Box 969, MS 9012 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26217236&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;
&lt;br&gt;Livermore, CA 94550 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26217236&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26217236&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26217236&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-decimal-constant-tp26216764p26217236.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26218334</id>
	<title>Re: JESS: how to store and fetch between java &amp; jess</title>
	<published>2009-11-05T07:31:19Z</published>
	<updated>2009-11-05T07:31:19Z</updated>
	<author>
		<name>Jason Morris</name>
	</author>
	<content type="html">&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;OH,YES!&lt;br&gt;
It works! That&amp;#39;s really what I wanted. Thanks very much!&lt;br&gt;
Thanks all you guys.&lt;br&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;You are very welcome :-)&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;
PS: I am &amp;quot;she&amp;quot;, not &amp;quot;he&amp;quot;. Haha!&lt;br&gt;&lt;/blockquote&gt;&lt;div style=&quot;color: rgb(51, 51, 255);&quot;&gt; &lt;/div&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;Arrggg!!  Much to my chagrin, Wolfgang admonished me for that... I&amp;#39;m terribly sorry!  &lt;/span&gt;&lt;br style=&quot;color: rgb(51, 51, 255);&quot;&gt;
&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;Cheers,&lt;/span&gt;&lt;br style=&quot;color: rgb(51, 51, 255);&quot;&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;Jason&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 5, 2009 at 10:19 AM, Weijing Bai &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218334&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;estherbaiweijing@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;OH,YES!&lt;br&gt;
&lt;br&gt;
It works! That&amp;#39;s really what I wanted. Thanks very much!&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks all you guys.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
PS: I am &amp;quot;she&amp;quot;, not &amp;quot;he&amp;quot;. Haha!&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Thu, Nov 5, 2009 at 10:50 PM, Jason Morris &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218334&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jason.c.morris@...&lt;/a&gt;&amp;gt;wrote:&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&amp;gt; Hey Ernest,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Assuming that Weijing resolves the Rete instance disconnect, won&amp;#39;t he still&lt;br&gt;
&amp;gt; will have a problem because he&amp;#39;s trying to compute with the fetched Integer&lt;br&gt;
&amp;gt; object and not its int value?  Here&amp;#39;s how I massaged his code:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ; a.clp&lt;br&gt;
&amp;gt; ; ======&lt;br&gt;
&amp;gt; ; Note: this file has parsing errors because it lacks a Rete object&lt;br&gt;
&amp;gt; reference.&lt;br&gt;
&amp;gt; ; However, this script is called by the attached driver class, so it works.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; (defglobal ?*m* = ((fetch m) intValue))&lt;br&gt;
&amp;gt; (defglobal ?*n* = ((fetch n) intValue))&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; (printout t&amp;quot;?m = &amp;quot; ?*m* crlf) ; checking m value&lt;br&gt;
&amp;gt; (printout t&amp;quot;?n = &amp;quot; ?*n* crlf) ; checking n value&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; (bind ?I (div ?*m* 2 ))(printout t &amp;quot;?I = &amp;quot; ?I crlf)&lt;br&gt;
&amp;gt; (bind ?J (+ ?*m*  ?*n* 2 ))(printout t &amp;quot;?J = &amp;quot; ?I crlf)&lt;br&gt;
&amp;gt; (bind ?J&amp;#39;(+ (div  (+ ?*m*  1) 2) 1))(printout t &amp;quot;?J&amp;#39; = &amp;quot; ?J&amp;#39; crlf)&lt;br&gt;
&amp;gt; (bind ?K (+ ?*m*   2 ))(printout t &amp;quot;?K = &amp;quot; ?K crlf)&lt;br&gt;
&amp;gt; (bind ?L (+ (div (- ?*m*  3) 2) 3))(printout t &amp;quot;?L = &amp;quot; ?L crlf)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; then I wrote a simple driver to replace his missing code...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; import jess.JessException;&lt;br&gt;
&amp;gt; import jess.Rete;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; public class StoreProblemDriver {&lt;br&gt;
&amp;gt;    public static void main(String[] args) {&lt;br&gt;
&amp;gt;         Rete engine = new Rete();&lt;br&gt;
&amp;gt;         engine.store(&amp;quot;m&amp;quot;, 7);&lt;br&gt;
&amp;gt;         engine.store(&amp;quot;n&amp;quot;, 5);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;         try {&lt;br&gt;
&amp;gt;            engine.batch(&amp;quot;clp/a.clp&amp;quot;);&lt;br&gt;
&amp;gt;        } catch (JessException e) {&lt;br&gt;
&amp;gt;            e.printStackTrace();&lt;br&gt;
&amp;gt;        }&lt;br&gt;
&amp;gt;    }&lt;br&gt;
&amp;gt; }&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; which produced the output...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ; OUTPUT&lt;br&gt;
&amp;gt; ;========&lt;br&gt;
&amp;gt; ;?m = 7&lt;br&gt;
&amp;gt; ;?n = 5&lt;br&gt;
&amp;gt; ;?I = 3&lt;br&gt;
&amp;gt; ;?J = 3&lt;br&gt;
&amp;gt; ;?J&amp;#39; = 5&lt;br&gt;
&amp;gt; ;?K = 9&lt;br&gt;
&amp;gt; ;?L = 5&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Weijing: Is this what you wanted?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Cheers,&lt;br&gt;
&amp;gt; Jason&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; On Thu, Nov 5, 2009 at 9:08 AM, Ernest Friedman-Hill &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218334&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt;wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; You don&amp;#39;t show the connection between the Java calls to &amp;quot;store()&amp;quot; and&lt;br&gt;
&amp;gt; where&lt;br&gt;
&amp;gt; &amp;gt; Jess reads the module2.txt file. Are you sure it&amp;#39;s the same instance of&lt;br&gt;
&amp;gt; &amp;gt; jess.Rete that&amp;#39;s involved in both? In other words, where and how is&lt;br&gt;
&amp;gt; &amp;quot;batch&lt;br&gt;
&amp;gt; &amp;gt; module2.txt&amp;quot; being invoked? Each Rete object will have its own&lt;br&gt;
&amp;gt; independent&lt;br&gt;
&amp;gt; &amp;gt; storage map.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; If it is the same Rete object, then perhaps there&amp;#39;s a call to &amp;quot;clear&amp;quot;&lt;br&gt;
&amp;gt; &amp;gt; somewhere in between the store and fetch?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; On Nov 5, 2009, at 8:47 AM, Weijing Bai wrote:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;  oh，Thanks for your advice.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; my java code:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;  Rete engine = new Rete();&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;  engine.store(&amp;quot;m&amp;quot;, 7);&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;  engine.store(&amp;quot;n&amp;quot;, 5);&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; the jess clp:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;quot; module2.txt&amp;quot;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (defglobal ?*m* = (fetch m ))&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (defglobal ?*n* = (fetch n ))&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (printout t&amp;quot;?m = &amp;quot; ?*m* crlf)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (printout t&amp;quot;?n = &amp;quot;  ?*n*  crlf)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (bind ?I (div ?*m* 2 ))&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (bind ?J (+ ?*m*  ?*n* 2 ))&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (bind ?J&amp;#39;(+ (div  (+ ?*m*  1) 2) 1))&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (bind ?K (+ ?*m*   2 ))&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (bind ?L (+ (div (- ?*m*  3) 2) 3))&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; the error message:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; ?m = nil&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; ?n = nil&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Exception in thread &amp;quot;main&amp;quot; Jess reported an error in routine&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Value.intValue&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; while executing (div ?*m* 2)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; while executing (bind ?I (div ?*m* 2))&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; while executing (batch D:Jess71p1\module2.txt)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;  Message: &amp;#39;nil&amp;#39; is a symbol, not  an integer.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; what&amp;#39;s more, I once want use this in my java code, it did not work also:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; java code:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;  Rete engine = new Rete();&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; engine.eval(&amp;quot;(defglobal ?*m* = 7)&amp;quot;);&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; engine.eval(&amp;quot;(defglobal ?*n* = 5)&amp;quot;);&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;quot;module2.txt&amp;quot;:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (printout t&amp;quot;?m = &amp;quot; ?*m* crlf)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (printout t&amp;quot;?n = &amp;quot;  ?*n*  crlf)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; reports error:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; while executing (printout t &amp;quot;?m = &amp;quot; ?*m* crlf)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; while executing (batch D:\module2.txt)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;  Message: No such variable *m*.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; On Thu, Nov 5, 2009 at 9:19 PM, Ernest Friedman-Hill &amp;lt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218334&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;wrote:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;  I think if you just show us the actual code that caused the error, and&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; more&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; details about the error -- i.e., is this a runtime or compile-time&lt;br&gt;
&amp;gt; error,&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; from Java or from Jess, and include a stack trace -- I&amp;#39;m sure we can&lt;br&gt;
&amp;gt; help&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; you fix it. Please cut and paste the real code, and the real stack&lt;br&gt;
&amp;gt; trace&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; --&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; summaries and remembered bits and piece are normally not that helpful&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Cheers,&lt;br&gt;Jason&lt;br&gt;----------------------------------------------------------&lt;br&gt;
Morris Technical Solutions LLC&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26218334&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;consulting@...&lt;/a&gt;&lt;br&gt;(517) 304-5883&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-how-to-store-and-fetch-between-java---jess-tp26213402p26218334.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26231484</id>
	<title>Re: JESS: how to store and fetch between java &amp; jess</title>
	<published>2009-11-05T07:31:19Z</published>
	<updated>2009-11-05T07:31:19Z</updated>
	<author>
		<name>Jason Morris</name>
	</author>
	<content type="html">&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;OH,YES!&lt;br&gt;
It works! That&amp;#39;s really what I wanted. Thanks very much!&lt;br&gt;
Thanks all you guys.&lt;br&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;You are very welcome :-)&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;
PS: I am &amp;quot;she&amp;quot;, not &amp;quot;he&amp;quot;. Haha!&lt;br&gt;&lt;/blockquote&gt;&lt;div style=&quot;color: rgb(51, 51, 255);&quot;&gt; &lt;/div&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;Arrggg!!  Much to my chagrin, Wolfgang admonished me for that... I&amp;#39;m terribly sorry!  &lt;/span&gt;&lt;br style=&quot;color: rgb(51, 51, 255);&quot;&gt;
&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;Cheers,&lt;/span&gt;&lt;br style=&quot;color: rgb(51, 51, 255);&quot;&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;Jason&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 5, 2009 at 10:19 AM, Weijing Bai &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231484&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;estherbaiweijing@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;OH,YES!&lt;br&gt;
&lt;br&gt;
It works! That&amp;#39;s really what I wanted. Thanks very much!&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks all you guys.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
PS: I am &amp;quot;she&amp;quot;, not &amp;quot;he&amp;quot;. Haha!&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Thu, Nov 5, 2009 at 10:50 PM, Jason Morris &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231484&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jason.c.morris@...&lt;/a&gt;&amp;gt;wrote:&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&amp;gt; Hey Ernest,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Assuming that Weijing resolves the Rete instance disconnect, won&amp;#39;t he still&lt;br&gt;
&amp;gt; will have a problem because he&amp;#39;s trying to compute with the fetched Integer&lt;br&gt;
&amp;gt; object and not its int value?  Here&amp;#39;s how I massaged his code:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ; a.clp&lt;br&gt;
&amp;gt; ; ======&lt;br&gt;
&amp;gt; ; Note: this file has parsing errors because it lacks a Rete object&lt;br&gt;
&amp;gt; reference.&lt;br&gt;
&amp;gt; ; However, this script is called by the attached driver class, so it works.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; (defglobal ?*m* = ((fetch m) intValue))&lt;br&gt;
&amp;gt; (defglobal ?*n* = ((fetch n) intValue))&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; (printout t&amp;quot;?m = &amp;quot; ?*m* crlf) ; checking m value&lt;br&gt;
&amp;gt; (printout t&amp;quot;?n = &amp;quot; ?*n* crlf) ; checking n value&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; (bind ?I (div ?*m* 2 ))(printout t &amp;quot;?I = &amp;quot; ?I crlf)&lt;br&gt;
&amp;gt; (bind ?J (+ ?*m*  ?*n* 2 ))(printout t &amp;quot;?J = &amp;quot; ?I crlf)&lt;br&gt;
&amp;gt; (bind ?J&amp;#39;(+ (div  (+ ?*m*  1) 2) 1))(printout t &amp;quot;?J&amp;#39; = &amp;quot; ?J&amp;#39; crlf)&lt;br&gt;
&amp;gt; (bind ?K (+ ?*m*   2 ))(printout t &amp;quot;?K = &amp;quot; ?K crlf)&lt;br&gt;
&amp;gt; (bind ?L (+ (div (- ?*m*  3) 2) 3))(printout t &amp;quot;?L = &amp;quot; ?L crlf)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; then I wrote a simple driver to replace his missing code...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; import jess.JessException;&lt;br&gt;
&amp;gt; import jess.Rete;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; public class StoreProblemDriver {&lt;br&gt;
&amp;gt;    public static void main(String[] args) {&lt;br&gt;
&amp;gt;         Rete engine = new Rete();&lt;br&gt;
&amp;gt;         engine.store(&amp;quot;m&amp;quot;, 7);&lt;br&gt;
&amp;gt;         engine.store(&amp;quot;n&amp;quot;, 5);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;         try {&lt;br&gt;
&amp;gt;            engine.batch(&amp;quot;clp/a.clp&amp;quot;);&lt;br&gt;
&amp;gt;        } catch (JessException e) {&lt;br&gt;
&amp;gt;            e.printStackTrace();&lt;br&gt;
&amp;gt;        }&lt;br&gt;
&amp;gt;    }&lt;br&gt;
&amp;gt; }&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; which produced the output...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ; OUTPUT&lt;br&gt;
&amp;gt; ;========&lt;br&gt;
&amp;gt; ;?m = 7&lt;br&gt;
&amp;gt; ;?n = 5&lt;br&gt;
&amp;gt; ;?I = 3&lt;br&gt;
&amp;gt; ;?J = 3&lt;br&gt;
&amp;gt; ;?J&amp;#39; = 5&lt;br&gt;
&amp;gt; ;?K = 9&lt;br&gt;
&amp;gt; ;?L = 5&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Weijing: Is this what you wanted?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Cheers,&lt;br&gt;
&amp;gt; Jason&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; On Thu, Nov 5, 2009 at 9:08 AM, Ernest Friedman-Hill &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231484&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt;wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; You don&amp;#39;t show the connection between the Java calls to &amp;quot;store()&amp;quot; and&lt;br&gt;
&amp;gt; where&lt;br&gt;
&amp;gt; &amp;gt; Jess reads the module2.txt file. Are you sure it&amp;#39;s the same instance of&lt;br&gt;
&amp;gt; &amp;gt; jess.Rete that&amp;#39;s involved in both? In other words, where and how is&lt;br&gt;
&amp;gt; &amp;quot;batch&lt;br&gt;
&amp;gt; &amp;gt; module2.txt&amp;quot; being invoked? Each Rete object will have its own&lt;br&gt;
&amp;gt; independent&lt;br&gt;
&amp;gt; &amp;gt; storage map.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; If it is the same Rete object, then perhaps there&amp;#39;s a call to &amp;quot;clear&amp;quot;&lt;br&gt;
&amp;gt; &amp;gt; somewhere in between the store and fetch?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; On Nov 5, 2009, at 8:47 AM, Weijing Bai wrote:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;  oh，Thanks for your advice.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; my java code:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;  Rete engine = new Rete();&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;  engine.store(&amp;quot;m&amp;quot;, 7);&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;  engine.store(&amp;quot;n&amp;quot;, 5);&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; the jess clp:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;quot; module2.txt&amp;quot;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (defglobal ?*m* = (fetch m ))&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (defglobal ?*n* = (fetch n ))&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (printout t&amp;quot;?m = &amp;quot; ?*m* crlf)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (printout t&amp;quot;?n = &amp;quot;  ?*n*  crlf)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (bind ?I (div ?*m* 2 ))&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (bind ?J (+ ?*m*  ?*n* 2 ))&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (bind ?J&amp;#39;(+ (div  (+ ?*m*  1) 2) 1))&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (bind ?K (+ ?*m*   2 ))&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (bind ?L (+ (div (- ?*m*  3) 2) 3))&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; the error message:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; ?m = nil&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; ?n = nil&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Exception in thread &amp;quot;main&amp;quot; Jess reported an error in routine&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Value.intValue&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; while executing (div ?*m* 2)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; while executing (bind ?I (div ?*m* 2))&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; while executing (batch D:Jess71p1\module2.txt)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;  Message: &amp;#39;nil&amp;#39; is a symbol, not  an integer.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; what&amp;#39;s more, I once want use this in my java code, it did not work also:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; java code:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;  Rete engine = new Rete();&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; engine.eval(&amp;quot;(defglobal ?*m* = 7)&amp;quot;);&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; engine.eval(&amp;quot;(defglobal ?*n* = 5)&amp;quot;);&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;quot;module2.txt&amp;quot;:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (printout t&amp;quot;?m = &amp;quot; ?*m* crlf)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; (printout t&amp;quot;?n = &amp;quot;  ?*n*  crlf)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; reports error:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; while executing (printout t &amp;quot;?m = &amp;quot; ?*m* crlf)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; while executing (batch D:\module2.txt)&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;  Message: No such variable *m*.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; On Thu, Nov 5, 2009 at 9:19 PM, Ernest Friedman-Hill &amp;lt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231484&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;wrote:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;  I think if you just show us the actual code that caused the error, and&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; more&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; details about the error -- i.e., is this a runtime or compile-time&lt;br&gt;
&amp;gt; error,&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; from Java or from Jess, and include a stack trace -- I&amp;#39;m sure we can&lt;br&gt;
&amp;gt; help&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; you fix it. Please cut and paste the real code, and the real stack&lt;br&gt;
&amp;gt; trace&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; --&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; summaries and remembered bits and piece are normally not that helpful&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Cheers,&lt;br&gt;Jason&lt;br&gt;----------------------------------------------------------&lt;br&gt;
Morris Technical Solutions LLC&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231484&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;consulting@...&lt;/a&gt;&lt;br&gt;(517) 304-5883&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-how-to-store-and-fetch-between-java---jess-tp26213402p26231484.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26216773</id>
	<title>Re: JESS: how to store and fetch between java &amp; jess</title>
	<published>2009-11-05T07:19:52Z</published>
	<updated>2009-11-05T07:19:52Z</updated>
	<author>
		<name>Weijing Bai</name>
	</author>
	<content type="html">OH,YES!
&lt;br&gt;&lt;br&gt;It works! That's really what I wanted. Thanks very much!
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks all you guys.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;PS: I am &amp;quot;she&amp;quot;, not &amp;quot;he&amp;quot;. Haha!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, Nov 5, 2009 at 10:50 PM, Jason Morris &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216773&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jason.c.morris@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hey Ernest,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Assuming that Weijing resolves the Rete instance disconnect, won't he still
&lt;br&gt;&amp;gt; will have a problem because he's trying to compute with the fetched Integer
&lt;br&gt;&amp;gt; object and not its int value? &amp;nbsp;Here's how I massaged his code:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ; a.clp
&lt;br&gt;&amp;gt; ; ======
&lt;br&gt;&amp;gt; ; Note: this file has parsing errors because it lacks a Rete object
&lt;br&gt;&amp;gt; reference.
&lt;br&gt;&amp;gt; ; However, this script is called by the attached driver class, so it works.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (defglobal ?*m* = ((fetch m) intValue))
&lt;br&gt;&amp;gt; (defglobal ?*n* = ((fetch n) intValue))
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (printout t&amp;quot;?m = &amp;quot; ?*m* crlf) ; checking m value
&lt;br&gt;&amp;gt; (printout t&amp;quot;?n = &amp;quot; ?*n* crlf) ; checking n value
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (bind ?I (div ?*m* 2 ))(printout t &amp;quot;?I = &amp;quot; ?I crlf)
&lt;br&gt;&amp;gt; (bind ?J (+ ?*m* &amp;nbsp;?*n* 2 ))(printout t &amp;quot;?J = &amp;quot; ?I crlf)
&lt;br&gt;&amp;gt; (bind ?J'(+ (div &amp;nbsp;(+ ?*m* &amp;nbsp;1) 2) 1))(printout t &amp;quot;?J' = &amp;quot; ?J' crlf)
&lt;br&gt;&amp;gt; (bind ?K (+ ?*m* &amp;nbsp; 2 ))(printout t &amp;quot;?K = &amp;quot; ?K crlf)
&lt;br&gt;&amp;gt; (bind ?L (+ (div (- ?*m* &amp;nbsp;3) 2) 3))(printout t &amp;quot;?L = &amp;quot; ?L crlf)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; then I wrote a simple driver to replace his missing code...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; import jess.JessException;
&lt;br&gt;&amp;gt; import jess.Rete;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; public class StoreProblemDriver {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;public static void main(String[] args) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Rete engine = new Rete();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; engine.store(&amp;quot;m&amp;quot;, 7);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; engine.store(&amp;quot;n&amp;quot;, 5);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;engine.batch(&amp;quot;clp/a.clp&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} catch (JessException e) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;e.printStackTrace();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; which produced the output...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ; OUTPUT
&lt;br&gt;&amp;gt; ;========
&lt;br&gt;&amp;gt; ;?m = 7
&lt;br&gt;&amp;gt; ;?n = 5
&lt;br&gt;&amp;gt; ;?I = 3
&lt;br&gt;&amp;gt; ;?J = 3
&lt;br&gt;&amp;gt; ;?J' = 5
&lt;br&gt;&amp;gt; ;?K = 9
&lt;br&gt;&amp;gt; ;?L = 5
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Weijing: Is this what you wanted?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; Jason
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Nov 5, 2009 at 9:08 AM, Ernest Friedman-Hill &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216773&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; You don't show the connection between the Java calls to &amp;quot;store()&amp;quot; and
&lt;br&gt;&amp;gt; where
&lt;br&gt;&amp;gt; &amp;gt; Jess reads the module2.txt file. Are you sure it's the same instance of
&lt;br&gt;&amp;gt; &amp;gt; jess.Rete that's involved in both? In other words, where and how is
&lt;br&gt;&amp;gt; &amp;quot;batch
&lt;br&gt;&amp;gt; &amp;gt; module2.txt&amp;quot; being invoked? Each Rete object will have its own
&lt;br&gt;&amp;gt; independent
&lt;br&gt;&amp;gt; &amp;gt; storage map.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; If it is the same Rete object, then perhaps there's a call to &amp;quot;clear&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; somewhere in between the store and fetch?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Nov 5, 2009, at 8:47 AM, Weijing Bai wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;oh，Thanks for your advice.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; my java code:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;Rete engine = new Rete();
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;engine.store(&amp;quot;m&amp;quot;, 7);
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;engine.store(&amp;quot;n&amp;quot;, 5);
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; the jess clp:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;quot; module2.txt&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; (defglobal ?*m* = (fetch m ))
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; (defglobal ?*n* = (fetch n ))
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; (printout t&amp;quot;?m = &amp;quot; ?*m* crlf)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; (printout t&amp;quot;?n = &amp;quot; &amp;nbsp;?*n* &amp;nbsp;crlf)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; (bind ?I (div ?*m* 2 ))
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; (bind ?J (+ ?*m* &amp;nbsp;?*n* 2 ))
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; (bind ?J'(+ (div &amp;nbsp;(+ ?*m* &amp;nbsp;1) 2) 1))
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; (bind ?K (+ ?*m* &amp;nbsp; 2 ))
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; (bind ?L (+ (div (- ?*m* &amp;nbsp;3) 2) 3))
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; the error message:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ?m = nil
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ?n = nil
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Exception in thread &amp;quot;main&amp;quot; Jess reported an error in routine
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Value.intValue
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; while executing (div ?*m* 2)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; while executing (bind ?I (div ?*m* 2))
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; while executing (batch D:Jess71p1\module2.txt)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;Message: 'nil' is a symbol, not &amp;nbsp;an integer.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; what's more, I once want use this in my java code, it did not work also:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; java code:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;Rete engine = new Rete();
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; engine.eval(&amp;quot;(defglobal ?*m* = 7)&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; engine.eval(&amp;quot;(defglobal ?*n* = 5)&amp;quot;);
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;quot;module2.txt&amp;quot;:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; (printout t&amp;quot;?m = &amp;quot; ?*m* crlf)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; (printout t&amp;quot;?n = &amp;quot; &amp;nbsp;?*n* &amp;nbsp;crlf)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; reports error:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; while executing (printout t &amp;quot;?m = &amp;quot; ?*m* crlf)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; while executing (batch D:\module2.txt)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;Message: No such variable *m*.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; On Thu, Nov 5, 2009 at 9:19 PM, Ernest Friedman-Hill &amp;lt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216773&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;I think if you just show us the actual code that caused the error, and
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; more
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; details about the error -- i.e., is this a runtime or compile-time
&lt;br&gt;&amp;gt; error,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; from Java or from Jess, and include a stack trace -- I'm sure we can
&lt;br&gt;&amp;gt; help
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; you fix it. Please cut and paste the real code, and the real stack
&lt;br&gt;&amp;gt; trace
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; summaries and remembered bits and piece are normally not that helpful&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-how-to-store-and-fetch-between-java---jess-tp26213402p26216773.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26216764</id>
	<title>JESS: decimal constant</title>
	<published>2009-11-05T07:14:33Z</published>
	<updated>2009-11-05T07:14:33Z</updated>
	<author>
		<name>Michael Welter</name>
	</author>
	<content type="html">Is there a way to switch-off the decimal constant in the grammar? &amp;nbsp;For 
&lt;br&gt;example, I'd like the token 64d to be parsed as a symbol and not as a 
&lt;br&gt;number.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216764&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216764&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;(use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216764&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;.
&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-decimal-constant-tp26216764p26216764.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26216269</id>
	<title>Re: JESS: how to store and fetch between java &amp; jess</title>
	<published>2009-11-05T06:54:58Z</published>
	<updated>2009-11-05T06:54:58Z</updated>
	<author>
		<name>Jason Morris</name>
	</author>
	<content type="html">I should add that if I replace the code
&lt;br&gt;&lt;br&gt;(defglobal ?*m* = ((fetch m) intValue))
&lt;br&gt;(defglobal ?*n* = ((fetch n) intValue))
&lt;br&gt;&lt;br&gt;with
&lt;br&gt;&lt;br&gt;(defglobal ?*m* = (fetch m))
&lt;br&gt;(defglobal ?*n* = (fetch n))
&lt;br&gt;&lt;br&gt;as in Weijing's orginal code, I get
&lt;br&gt;&lt;br&gt;Jess reported an error in routine Value.intValue
&lt;br&gt;&amp;nbsp; &amp;nbsp; while executing (div ?*m* 2)
&lt;br&gt;&amp;nbsp; &amp;nbsp; while executing (bind ?I (div ?*m* 2)).
&lt;br&gt;&amp;nbsp; Message: '&amp;lt;Java-Object:java.lang.Integer&amp;gt;' is JAVA_OBJECT, not &amp;nbsp;an
&lt;br&gt;integer.
&lt;br&gt;&amp;nbsp; Program text: ( bind ?I ( div ?*m* 2 ) ) &amp;nbsp;at line 14 in file clp/a.clp.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, Nov 5, 2009 at 9:08 AM, Ernest Friedman-Hill &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216269&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; You don't show the connection between the Java calls to &amp;quot;store()&amp;quot; and where
&lt;br&gt;&amp;gt; Jess reads the module2.txt file. Are you sure it's the same instance of
&lt;br&gt;&amp;gt; jess.Rete that's involved in both? In other words, where and how is &amp;quot;batch
&lt;br&gt;&amp;gt; module2.txt&amp;quot; being invoked? Each Rete object will have its own independent
&lt;br&gt;&amp;gt; storage map.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If it is the same Rete object, then perhaps there's a call to &amp;quot;clear&amp;quot;
&lt;br&gt;&amp;gt; somewhere in between the store and fetch?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 5, 2009, at 8:47 AM, Weijing Bai wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;oh，Thanks for your advice.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; my java code:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Rete engine = new Rete();
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;engine.store(&amp;quot;m&amp;quot;, 7);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;engine.store(&amp;quot;n&amp;quot;, 5);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; the jess clp:
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot; module2.txt&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (defglobal ?*m* = (fetch m ))
&lt;br&gt;&amp;gt;&amp;gt; (defglobal ?*n* = (fetch n ))
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (printout t&amp;quot;?m = &amp;quot; ?*m* crlf)
&lt;br&gt;&amp;gt;&amp;gt; (printout t&amp;quot;?n = &amp;quot; &amp;nbsp;?*n* &amp;nbsp;crlf)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (bind ?I (div ?*m* 2 ))
&lt;br&gt;&amp;gt;&amp;gt; (bind ?J (+ ?*m* &amp;nbsp;?*n* 2 ))
&lt;br&gt;&amp;gt;&amp;gt; (bind ?J'(+ (div &amp;nbsp;(+ ?*m* &amp;nbsp;1) 2) 1))
&lt;br&gt;&amp;gt;&amp;gt; (bind ?K (+ ?*m* &amp;nbsp; 2 ))
&lt;br&gt;&amp;gt;&amp;gt; (bind ?L (+ (div (- ?*m* &amp;nbsp;3) 2) 3))
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; the error message:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ?m = nil
&lt;br&gt;&amp;gt;&amp;gt; ?n = nil
&lt;br&gt;&amp;gt;&amp;gt; Exception in thread &amp;quot;main&amp;quot; Jess reported an error in routine
&lt;br&gt;&amp;gt;&amp;gt; Value.intValue
&lt;br&gt;&amp;gt;&amp;gt; while executing (div ?*m* 2)
&lt;br&gt;&amp;gt;&amp;gt; while executing (bind ?I (div ?*m* 2))
&lt;br&gt;&amp;gt;&amp;gt; while executing (batch D:Jess71p1\module2.txt)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Message: 'nil' is a symbol, not &amp;nbsp;an integer.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; what's more, I once want use this in my java code, it did not work also:
&lt;br&gt;&amp;gt;&amp;gt; java code:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Rete engine = new Rete();
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; engine.eval(&amp;quot;(defglobal ?*m* = 7)&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; engine.eval(&amp;quot;(defglobal ?*n* = 5)&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;module2.txt&amp;quot;:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (printout t&amp;quot;?m = &amp;quot; ?*m* crlf)
&lt;br&gt;&amp;gt;&amp;gt; (printout t&amp;quot;?n = &amp;quot; &amp;nbsp;?*n* &amp;nbsp;crlf)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; reports error:
&lt;br&gt;&amp;gt;&amp;gt; while executing (printout t &amp;quot;?m = &amp;quot; ?*m* crlf)
&lt;br&gt;&amp;gt;&amp;gt; while executing (batch D:\module2.txt)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Message: No such variable *m*.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Thu, Nov 5, 2009 at 9:19 PM, Ernest Friedman-Hill &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216269&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;I think if you just show us the actual code that caused the error, and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; more
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; details about the error -- i.e., is this a runtime or compile-time error,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; from Java or from Jess, and include a stack trace -- I'm sure we can help
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; you fix it. Please cut and paste the real code, and the real stack trace
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; summaries and remembered bits and piece are normally not that helpful.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Nov 5, 2009, at 1:29 AM, Weijing Bai wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; hi, everyone
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I have a problem .
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; It works well when &amp;nbsp;store a param in jess and fetch it in java, but it
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; reports a error when store in java and fetch it in jess. the error is :&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; cannot find m&amp;quot; and so on.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; who has once use &amp;quot;store-fetch &amp;quot; sucessfully, please give me some
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; suggestions.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Is there any other way can pass a value from java to jess?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; thank very much.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Esther Bai
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Ernest Friedman-Hill
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Informatics &amp; Decision Sciences, Sandia National Laboratories
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; PO Box 969, MS 9012, Livermore, CA 94550
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216269&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216269&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; (use your own address!) List problems? Notify
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216269&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------
&lt;br&gt;&amp;gt; Ernest Friedman-Hill
&lt;br&gt;&amp;gt; Informatics &amp; Decision Sciences &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Phone: (925) 294-2154
&lt;br&gt;&amp;gt; Sandia National Labs
&lt;br&gt;&amp;gt; PO Box 969, MS 9012 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216269&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Livermore, CA 94550 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216269&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;&amp;gt; in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216269&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;&amp;gt; (use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216269&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-how-to-store-and-fetch-between-java---jess-tp26213402p26216269.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26216158</id>
	<title>Re: JESS: how to store and fetch between java &amp; jess</title>
	<published>2009-11-05T06:50:05Z</published>
	<updated>2009-11-05T06:50:05Z</updated>
	<author>
		<name>Jason Morris</name>
	</author>
	<content type="html">Hey Ernest,
&lt;br&gt;&lt;br&gt;Assuming that Weijing resolves the Rete instance disconnect, won't he still
&lt;br&gt;will have a problem because he's trying to compute with the fetched Integer
&lt;br&gt;object and not its int value? &amp;nbsp;Here's how I massaged his code:
&lt;br&gt;&lt;br&gt;; a.clp
&lt;br&gt;; ======
&lt;br&gt;; Note: this file has parsing errors because it lacks a Rete object
&lt;br&gt;reference.
&lt;br&gt;; However, this script is called by the attached driver class, so it works.
&lt;br&gt;&lt;br&gt;(defglobal ?*m* = ((fetch m) intValue))
&lt;br&gt;(defglobal ?*n* = ((fetch n) intValue))
&lt;br&gt;&lt;br&gt;(printout t&amp;quot;?m = &amp;quot; ?*m* crlf) ; checking m value
&lt;br&gt;(printout t&amp;quot;?n = &amp;quot; ?*n* crlf) ; checking n value
&lt;br&gt;&lt;br&gt;(bind ?I (div ?*m* 2 ))(printout t &amp;quot;?I = &amp;quot; ?I crlf)
&lt;br&gt;(bind ?J (+ ?*m* &amp;nbsp;?*n* 2 ))(printout t &amp;quot;?J = &amp;quot; ?I crlf)
&lt;br&gt;(bind ?J'(+ (div &amp;nbsp;(+ ?*m* &amp;nbsp;1) 2) 1))(printout t &amp;quot;?J' = &amp;quot; ?J' crlf)
&lt;br&gt;(bind ?K (+ ?*m* &amp;nbsp; 2 ))(printout t &amp;quot;?K = &amp;quot; ?K crlf)
&lt;br&gt;(bind ?L (+ (div (- ?*m* &amp;nbsp;3) 2) 3))(printout t &amp;quot;?L = &amp;quot; ?L crlf)
&lt;br&gt;&lt;br&gt;then I wrote a simple driver to replace his missing code...
&lt;br&gt;&lt;br&gt;import jess.JessException;
&lt;br&gt;import jess.Rete;
&lt;br&gt;&lt;br&gt;public class StoreProblemDriver {
&lt;br&gt;&amp;nbsp; &amp;nbsp; public static void main(String[] args) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Rete engine = new Rete();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;engine.store(&amp;quot;m&amp;quot;, 7);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;engine.store(&amp;quot;n&amp;quot;, 5);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; engine.batch(&amp;quot;clp/a.clp&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (JessException e) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;which produced the output...
&lt;br&gt;&lt;br&gt;; OUTPUT
&lt;br&gt;;========
&lt;br&gt;;?m = 7
&lt;br&gt;;?n = 5
&lt;br&gt;;?I = 3
&lt;br&gt;;?J = 3
&lt;br&gt;;?J' = 5
&lt;br&gt;;?K = 9
&lt;br&gt;;?L = 5
&lt;br&gt;&lt;br&gt;Weijing: Is this what you wanted?
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Jason
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, Nov 5, 2009 at 9:08 AM, Ernest Friedman-Hill &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216158&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; You don't show the connection between the Java calls to &amp;quot;store()&amp;quot; and where
&lt;br&gt;&amp;gt; Jess reads the module2.txt file. Are you sure it's the same instance of
&lt;br&gt;&amp;gt; jess.Rete that's involved in both? In other words, where and how is &amp;quot;batch
&lt;br&gt;&amp;gt; module2.txt&amp;quot; being invoked? Each Rete object will have its own independent
&lt;br&gt;&amp;gt; storage map.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If it is the same Rete object, then perhaps there's a call to &amp;quot;clear&amp;quot;
&lt;br&gt;&amp;gt; somewhere in between the store and fetch?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 5, 2009, at 8:47 AM, Weijing Bai wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;oh，Thanks for your advice.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; my java code:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Rete engine = new Rete();
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;engine.store(&amp;quot;m&amp;quot;, 7);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;engine.store(&amp;quot;n&amp;quot;, 5);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; the jess clp:
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot; module2.txt&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (defglobal ?*m* = (fetch m ))
&lt;br&gt;&amp;gt;&amp;gt; (defglobal ?*n* = (fetch n ))
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (printout t&amp;quot;?m = &amp;quot; ?*m* crlf)
&lt;br&gt;&amp;gt;&amp;gt; (printout t&amp;quot;?n = &amp;quot; &amp;nbsp;?*n* &amp;nbsp;crlf)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (bind ?I (div ?*m* 2 ))
&lt;br&gt;&amp;gt;&amp;gt; (bind ?J (+ ?*m* &amp;nbsp;?*n* 2 ))
&lt;br&gt;&amp;gt;&amp;gt; (bind ?J'(+ (div &amp;nbsp;(+ ?*m* &amp;nbsp;1) 2) 1))
&lt;br&gt;&amp;gt;&amp;gt; (bind ?K (+ ?*m* &amp;nbsp; 2 ))
&lt;br&gt;&amp;gt;&amp;gt; (bind ?L (+ (div (- ?*m* &amp;nbsp;3) 2) 3))
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; the error message:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ?m = nil
&lt;br&gt;&amp;gt;&amp;gt; ?n = nil
&lt;br&gt;&amp;gt;&amp;gt; Exception in thread &amp;quot;main&amp;quot; Jess reported an error in routine
&lt;br&gt;&amp;gt;&amp;gt; Value.intValue
&lt;br&gt;&amp;gt;&amp;gt; while executing (div ?*m* 2)
&lt;br&gt;&amp;gt;&amp;gt; while executing (bind ?I (div ?*m* 2))
&lt;br&gt;&amp;gt;&amp;gt; while executing (batch D:Jess71p1\module2.txt)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Message: 'nil' is a symbol, not &amp;nbsp;an integer.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; what's more, I once want use this in my java code, it did not work also:
&lt;br&gt;&amp;gt;&amp;gt; java code:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Rete engine = new Rete();
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; engine.eval(&amp;quot;(defglobal ?*m* = 7)&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; engine.eval(&amp;quot;(defglobal ?*n* = 5)&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;module2.txt&amp;quot;:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (printout t&amp;quot;?m = &amp;quot; ?*m* crlf)
&lt;br&gt;&amp;gt;&amp;gt; (printout t&amp;quot;?n = &amp;quot; &amp;nbsp;?*n* &amp;nbsp;crlf)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; reports error:
&lt;br&gt;&amp;gt;&amp;gt; while executing (printout t &amp;quot;?m = &amp;quot; ?*m* crlf)
&lt;br&gt;&amp;gt;&amp;gt; while executing (batch D:\module2.txt)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Message: No such variable *m*.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Thu, Nov 5, 2009 at 9:19 PM, Ernest Friedman-Hill &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216158&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;I think if you just show us the actual code that caused the error, and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; more
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; details about the error -- i.e., is this a runtime or compile-time error,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; from Java or from Jess, and include a stack trace -- I'm sure we can help
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; you fix it. Please cut and paste the real code, and the real stack trace
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; summaries and remembered bits and piece are normally not that helpful.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Nov 5, 2009, at 1:29 AM, Weijing Bai wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; hi, everyone
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I have a problem .
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; It works well when &amp;nbsp;store a param in jess and fetch it in java, but it
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; reports a error when store in java and fetch it in jess. the error is :&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; cannot find m&amp;quot; and so on.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; who has once use &amp;quot;store-fetch &amp;quot; sucessfully, please give me some
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; suggestions.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Is there any other way can pass a value from java to jess?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; thank very much.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Esther Bai
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Ernest Friedman-Hill
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Informatics &amp; Decision Sciences, Sandia National Laboratories
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; PO Box 969, MS 9012, Livermore, CA 94550
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216158&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216158&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; (use your own address!) List problems? Notify
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216158&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------
&lt;br&gt;&amp;gt; Ernest Friedman-Hill
&lt;br&gt;&amp;gt; Informatics &amp; Decision Sciences &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Phone: (925) 294-2154
&lt;br&gt;&amp;gt; Sandia National Labs
&lt;br&gt;&amp;gt; PO Box 969, MS 9012 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216158&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Livermore, CA 94550 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216158&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;&amp;gt; in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216158&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;&amp;gt; (use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216158&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-how-to-store-and-fetch-between-java---jess-tp26213402p26216158.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26216132</id>
	<title>Re: JESS: how to store and fetch between java &amp; jess</title>
	<published>2009-11-05T06:34:54Z</published>
	<updated>2009-11-05T06:34:54Z</updated>
	<author>
		<name>Wolfgang Laun-2</name>
	</author>
	<content type="html">What is stored under the keys &amp;quot;m&amp;quot; and &amp;quot;n&amp;quot; is a java.lang.Integer object. There&amp;#39;s no problem with *fetching* this from Jess, but it&amp;#39;s evaluation in a Jess expression - even after being stored in a defglobal or plain variable - is quite another matter.&lt;br&gt;
&lt;br&gt;I think looking at the Jess code below will show you what I mean. (jv = Jess Value, jo = Java Object)&lt;br&gt;&lt;br&gt;(clear)&lt;br&gt;&lt;br&gt;((engine) store jv (new jess.Value 7 4))&lt;br&gt;((engine) store jo (new Integer    7 ))&lt;br&gt;&lt;br&gt;(bind ?value ((engine) fetch jv))&lt;br&gt;
(printout t &amp;quot;value=&amp;quot; ?value crlf)&lt;br&gt;Jess&amp;gt; value=7&lt;br&gt;&lt;br&gt;(bind ?value ((engine) fetch jo))&lt;br&gt;(printout t &amp;quot;value=&amp;quot; ?value crlf)&lt;br&gt;Jess&amp;gt; value=&amp;lt;Java-Object:java.lang.Integer&amp;gt;&lt;br&gt;&lt;br&gt;(defglobal ?*m* = (fetch jv ))&lt;br&gt;
(printout t &amp;quot;global ?*m*=&amp;quot; ?*m* crlf)&lt;br&gt;Jess&amp;gt; global ?*m*=7&lt;br&gt;&lt;br&gt;(defglobal ?*n* = (fetch jo ))&lt;br&gt;(printout t &amp;quot;global ?*n*=&amp;quot; ?*n* crlf)&lt;br&gt;Jess&amp;gt; global ?*n*=&amp;lt;Java-Object:java.lang.Integer&amp;gt;&lt;br&gt;
&lt;br&gt;Cheers&lt;br&gt;-W&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 5, 2009 at 2:47 PM, Weijing Bai &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216132&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;estherbaiweijing@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
oh，Thanks for your advice.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
my java code:&lt;br&gt;
&lt;br&gt;
  Rete engine = new Rete();&lt;br&gt;
  engine.store(&amp;quot;m&amp;quot;, 7);&lt;br&gt;
  engine.store(&amp;quot;n&amp;quot;, 5);&lt;br&gt;
&lt;br&gt;
the jess clp:&lt;br&gt;
&amp;quot; module2.txt&amp;quot;&lt;br&gt;
&lt;br&gt;
(defglobal ?*m* = (fetch m ))&lt;br&gt;
(defglobal ?*n* = (fetch n ))&lt;br&gt;
&lt;br&gt;
(printout t&amp;quot;?m = &amp;quot; ?*m* crlf)&lt;br&gt;
(printout t&amp;quot;?n = &amp;quot;  ?*n*  crlf)&lt;br&gt;
&lt;br&gt;
(bind ?I (div ?*m* 2 ))&lt;br&gt;
(bind ?J (+ ?*m*  ?*n* 2 ))&lt;br&gt;
(bind ?J&amp;#39;(+ (div  (+ ?*m*  1) 2) 1))&lt;br&gt;
(bind ?K (+ ?*m*   2 ))&lt;br&gt;
(bind ?L (+ (div (- ?*m*  3) 2) 3))&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
the error message:&lt;br&gt;
&lt;br&gt;
?m = nil&lt;br&gt;
?n = nil&lt;br&gt;
Exception in thread &amp;quot;main&amp;quot; Jess reported an error in routine Value.intValue&lt;br&gt;
 while executing (div ?*m* 2)&lt;br&gt;
 while executing (bind ?I (div ?*m* 2))&lt;br&gt;
 while executing (batch D:Jess71p1\module2.txt)&lt;br&gt;
  Message: &amp;#39;nil&amp;#39; is a symbol, not  an integer.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
what&amp;#39;s more, I once want use this in my java code, it did not work also:&lt;br&gt;
java code:&lt;br&gt;
&lt;br&gt;
  Rete engine = new Rete();&lt;br&gt;
&lt;br&gt;
 engine.eval(&amp;quot;(defglobal ?*m* = 7)&amp;quot;);&lt;br&gt;
 engine.eval(&amp;quot;(defglobal ?*n* = 5)&amp;quot;);&lt;br&gt;
&lt;br&gt;
&amp;quot;module2.txt&amp;quot;:&lt;br&gt;
&lt;br&gt;
(printout t&amp;quot;?m = &amp;quot; ?*m* crlf)&lt;br&gt;
(printout t&amp;quot;?n = &amp;quot;  ?*n*  crlf)&lt;br&gt;
&lt;br&gt;
reports error:&lt;br&gt;
 while executing (printout t &amp;quot;?m = &amp;quot; ?*m* crlf)&lt;br&gt;
 while executing (batch D:\module2.txt)&lt;br&gt;
  Message: No such variable *m*.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Thu, Nov 5, 2009 at 9:19 PM, Ernest Friedman-Hill &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216132&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;&amp;gt;wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; I think if you just show us the actual code that caused the error, and more&lt;br&gt;
&amp;gt; details about the error -- i.e., is this a runtime or compile-time error,&lt;br&gt;
&amp;gt; from Java or from Jess, and include a stack trace -- I&amp;#39;m sure we can help&lt;br&gt;
&amp;gt; you fix it. Please cut and paste the real code, and the real stack trace --&lt;br&gt;
&amp;gt; summaries and remembered bits and piece are normally not that helpful.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; On Nov 5, 2009, at 1:29 AM, Weijing Bai wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; hi, everyone&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; I have a problem .&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; It works well when  store a param in jess and fetch it in java, but it&lt;br&gt;
&amp;gt;&amp;gt; reports a error when store in java and fetch it in jess. the error is :&amp;quot;&lt;br&gt;
&amp;gt;&amp;gt; cannot find m&amp;quot; and so on.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; who has once use &amp;quot;store-fetch &amp;quot; sucessfully, please give me some&lt;br&gt;
&amp;gt;&amp;gt; suggestions.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Is there any other way can pass a value from java to jess?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; thank very much.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Esther Bai&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ---------------------------------------------------------&lt;br&gt;
&amp;gt; Ernest Friedman-Hill&lt;br&gt;
&amp;gt; Informatics &amp;amp; Decision Sciences, Sandia National Laboratories&lt;br&gt;
&amp;gt; PO Box 969, MS 9012, Livermore, CA 94550&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --------------------------------------------------------------------&lt;br&gt;
&amp;gt; To unsubscribe, send the words &amp;#39;unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216132&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;&amp;#39;&lt;br&gt;
&amp;gt; in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216132&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list&lt;br&gt;
&amp;gt; (use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216132&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-how-to-store-and-fetch-between-java---jess-tp26213402p26216132.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26216125</id>
	<title>Re: JESS: how to store and fetch between java &amp; jess</title>
	<published>2009-11-05T06:25:50Z</published>
	<updated>2009-11-05T06:25:50Z</updated>
	<author>
		<name>Weijing Bai</name>
	</author>
	<content type="html">Ernest Friedman-Hill:
&lt;br&gt;&lt;br&gt;Thanks very much, &amp;nbsp;there is a call to &amp;quot;clear &amp;quot; between the store and fetch.
&lt;br&gt;the
&lt;br&gt;&amp;nbsp;engine.eval(&amp;quot;(defglobal ?*m* = 7)&amp;quot;);
&lt;br&gt;&amp;nbsp;engine.eval(&amp;quot;(defglobal ?*n* = 5)&amp;quot;);
&lt;br&gt;&amp;nbsp; can work well now.
&lt;br&gt;&lt;br&gt;But the first situation can not work also, I donot know how to change a
&lt;br&gt;Java-Object:java.lang.Integer to integer in a jess text.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;now it's report error is :
&lt;br&gt;&lt;br&gt;?m = &amp;lt;Java-Object:java.lang.Integer&amp;gt;
&lt;br&gt;?n = &amp;lt;Java-Object:java.lang.Integer&amp;gt;
&lt;br&gt;Exception in thread &amp;quot;main&amp;quot; Jess reported an error in routine Value.intValue
&lt;br&gt;&amp;nbsp;while executing (div ?*m* 2)
&lt;br&gt;&amp;nbsp;while executing (bind ?I (div ?*m* 2))
&lt;br&gt;&amp;nbsp;while executing (batch D:module2.txt)
&lt;br&gt;&amp;nbsp; Message: '&amp;lt;Java-Object:java.lang.Integer&amp;gt;' is JAVA_OBJECT, not &amp;nbsp;an
&lt;br&gt;integer.
&lt;br&gt;&lt;br&gt;thanks a lot!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, Nov 5, 2009 at 10:08 PM, Ernest Friedman-Hill &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216125&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; You don't show the connection between the Java calls to &amp;quot;store()&amp;quot; and where
&lt;br&gt;&amp;gt; Jess reads the module2.txt file. Are you sure it's the same instance of
&lt;br&gt;&amp;gt; jess.Rete that's involved in both? In other words, where and how is &amp;quot;batch
&lt;br&gt;&amp;gt; module2.txt&amp;quot; being invoked? Each Rete object will have its own independent
&lt;br&gt;&amp;gt; storage map.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If it is the same Rete object, then perhaps there's a call to &amp;quot;clear&amp;quot;
&lt;br&gt;&amp;gt; somewhere in between the store and fetch?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 5, 2009, at 8:47 AM, Weijing Bai wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; oh，Thanks for your advice.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; my java code:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Rete engine = new Rete();
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;engine.store(&amp;quot;m&amp;quot;, 7);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;engine.store(&amp;quot;n&amp;quot;, 5);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; the jess clp:
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot; module2.txt&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (defglobal ?*m* = (fetch m ))
&lt;br&gt;&amp;gt;&amp;gt; (defglobal ?*n* = (fetch n ))
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (printout t&amp;quot;?m = &amp;quot; ?*m* crlf)
&lt;br&gt;&amp;gt;&amp;gt; (printout t&amp;quot;?n = &amp;quot; &amp;nbsp;?*n* &amp;nbsp;crlf)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (bind ?I (div ?*m* 2 ))
&lt;br&gt;&amp;gt;&amp;gt; (bind ?J (+ ?*m* &amp;nbsp;?*n* 2 ))
&lt;br&gt;&amp;gt;&amp;gt; (bind ?J'(+ (div &amp;nbsp;(+ ?*m* &amp;nbsp;1) 2) 1))
&lt;br&gt;&amp;gt;&amp;gt; (bind ?K (+ ?*m* &amp;nbsp; 2 ))
&lt;br&gt;&amp;gt;&amp;gt; (bind ?L (+ (div (- ?*m* &amp;nbsp;3) 2) 3))
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; the error message:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ?m = nil
&lt;br&gt;&amp;gt;&amp;gt; ?n = nil
&lt;br&gt;&amp;gt;&amp;gt; Exception in thread &amp;quot;main&amp;quot; Jess reported an error in routine
&lt;br&gt;&amp;gt;&amp;gt; Value.intValue
&lt;br&gt;&amp;gt;&amp;gt; while executing (div ?*m* 2)
&lt;br&gt;&amp;gt;&amp;gt; while executing (bind ?I (div ?*m* 2))
&lt;br&gt;&amp;gt;&amp;gt; while executing (batch D:Jess71p1\module2.txt)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Message: 'nil' is a symbol, not &amp;nbsp;an integer.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; what's more, I once want use this in my java code, it did not work also:
&lt;br&gt;&amp;gt;&amp;gt; java code:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Rete engine = new Rete();
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; engine.eval(&amp;quot;(defglobal ?*m* = 7)&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; engine.eval(&amp;quot;(defglobal ?*n* = 5)&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;module2.txt&amp;quot;:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (printout t&amp;quot;?m = &amp;quot; ?*m* crlf)
&lt;br&gt;&amp;gt;&amp;gt; (printout t&amp;quot;?n = &amp;quot; &amp;nbsp;?*n* &amp;nbsp;crlf)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; reports error:
&lt;br&gt;&amp;gt;&amp;gt; while executing (printout t &amp;quot;?m = &amp;quot; ?*m* crlf)
&lt;br&gt;&amp;gt;&amp;gt; while executing (batch D:\module2.txt)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Message: No such variable *m*.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Thu, Nov 5, 2009 at 9:19 PM, Ernest Friedman-Hill &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216125&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I think if you just show us the actual code that caused the error, and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; more
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; details about the error -- i.e., is this a runtime or compile-time error,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; from Java or from Jess, and include a stack trace -- I'm sure we can help
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; you fix it. Please cut and paste the real code, and the real stack trace
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; summaries and remembered bits and piece are normally not that helpful.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Nov 5, 2009, at 1:29 AM, Weijing Bai wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; hi, everyone
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I have a problem .
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; It works well when &amp;nbsp;store a param in jess and fetch it in java, but it
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; reports a error when store in java and fetch it in jess. the error is :&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; cannot find m&amp;quot; and so on.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; who has once use &amp;quot;store-fetch &amp;quot; sucessfully, please give me some
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; suggestions.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Is there any other way can pass a value from java to jess?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; thank very much.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Esther Bai
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Ernest Friedman-Hill
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Informatics &amp; Decision Sciences, Sandia National Laboratories
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; PO Box 969, MS 9012, Livermore, CA 94550
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216125&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216125&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; (use your own address!) List problems? Notify
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216125&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------
&lt;br&gt;&amp;gt; Ernest Friedman-Hill
&lt;br&gt;&amp;gt; Informatics &amp; Decision Sciences &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Phone: (925) 294-2154
&lt;br&gt;&amp;gt; Sandia National Labs
&lt;br&gt;&amp;gt; PO Box 969, MS 9012 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216125&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ejfried@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Livermore, CA 94550 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.jessrules.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jessrules.com&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, send the words 'unsubscribe jess-users &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216125&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;you@...&lt;/a&gt;'
&lt;br&gt;&amp;gt; in the BODY of a message to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216125&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt;, NOT to the list
&lt;br&gt;&amp;gt; (use your own address!) List problems? Notify &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26216125&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owner-jess-users@...&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JESS%3A-how-to-store-and-fetch-between-java---jess-tp26213402p26216125.html" />
</entry>

</feed>
