<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Edson - build2589-rev25264-20090214-0603 is the snapshot that I downloaded and installed. &nbsp;However, I have done a search on the source and have not been able to locate MiscTest.testPropertyChangeSupportNewAPI() in the source at all.</div><div><br></div><div>Interestingly, the DRL compilation does not crash if I use @propertyChangeSupport() or @propertyChangeSupport(true) etc. &nbsp;But otherwise it crashes. &nbsp; It dies in the following code:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">        </span><span style="color: #7f0055">public</span> DecisionEngine()&nbsp; {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">                </span><span style="color: #7f0055">super</span>();</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">                </span><span style="color: #7f0055">try</span> {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(42, 0, 255); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span style="color: #0000c0">rulesEngine</span><span style="color: #000000"> = </span><span style="color: #7f0055">new</span><span style="color: #000000"> RulesEngine(</span>"GlucoseDroolRules00.drl"<span style="color: #000000">);</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(63, 127, 95); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                        </span></span>//rulesEngine = new RulesEngine("rules_version1.<span style="text-decoration: underline">drl</span>");</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(63, 127, 95); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                        </span></span>//rulesEngine = new RulesEngine();</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">                </span>} <span style="color: #7f0055">catch</span> (RulesEngineException e) {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(42, 0, 255); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                        </span>System.</span><span style="color: #0000c0">out</span><span style="color: #000000">.println(</span>"Error in DecisionEngine constructor"<span style="color: #000000">);</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">                        </span>e.printStackTrace();</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">                </span>}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">        </span>}</div></div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">        </span><span style="color: #7f0055">public</span> RulesEngine(String rulesFile) <span style="color: #7f0055">throws</span> RulesEngineException {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">                </span><span style="color: #7f0055">super</span>();</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">                </span><span style="color: #7f0055">try</span> {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">                        </span>readDRLintoPackage(rulesFile);</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">                        </span>addSpreadsheetToPackage();</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">                </span>} <span style="color: #7f0055">catch</span> (Exception e) {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">                        </span>System.<span style="color: #0000c0">out</span>.println(e);</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">                        </span><span style="color: #7f0055">throw</span> <span style="color: #7f0055">new</span> RulesEngineException(<span style="color: #2a00ff">"Could not load/compile rules file: "</span> + rulesFile, e);</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">                </span>}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">        </span>}</div></div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(0, 0, 128); "><span style="text-decoration: underline">java.lang.NullPointerException</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">Error in DecisionEngine constructor</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span style="text-decoration: underline ; color: #000080">drools.engine.RulesEngineException</span>: Could not load/compile rules file: GlucoseDroolRules00.drl</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at drools.engine.RulesEngine.&lt;init>(<span style="text-decoration: underline ; color: #000080">RulesEngine.java:33</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at drools.engine.DecisionEngine.&lt;init>(<span style="text-decoration: underline ; color: #000080">DecisionEngine.java:22</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at glucose.tests.AllDroolsRulesTests.setUp(<span style="text-decoration: underline ; color: #000080">AllDroolsRulesTests.java:33</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.NativeMethodAccessorImpl.invoke0(<span style="text-decoration: underline ; color: #000080">Native Method</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.NativeMethodAccessorImpl.invoke(<span style="text-decoration: underline ; color: #000080">NativeMethodAccessorImpl.java:39</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.DelegatingMethodAccessorImpl.invoke(<span style="text-decoration: underline ; color: #000080">DelegatingMethodAccessorImpl.java:25</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at java.lang.reflect.Method.invoke(<span style="text-decoration: underline ; color: #000080">Method.java:585</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(<span style="text-decoration: underline ; color: #000080">BeforeAndAfterRunner.java:74</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.junit.internal.runners.BeforeAndAfterRunner.runBefores(<span style="text-decoration: underline ; color: #000080">BeforeAndAfterRunner.java:50</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(<span style="text-decoration: underline ; color: #000080">BeforeAndAfterRunner.java:33</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.junit.internal.runners.TestClassRunner.run(<span style="text-decoration: underline ; color: #000080">TestClassRunner.java:52</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(<span style="text-decoration: underline ; color: #000080">JUnit4TestReference.java:45</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.eclipse.jdt.internal.junit.runner.TestExecution.run(<span style="text-decoration: underline ; color: #000080">TestExecution.java:38</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(<span style="text-decoration: underline ; color: #000080">RemoteTestRunner.java:460</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(<span style="text-decoration: underline ; color: #000080">RemoteTestRunner.java:673</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(<span style="text-decoration: underline ; color: #000080">RemoteTestRunner.java:386</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(<span style="text-decoration: underline ; color: #000080">RemoteTestRunner.java:196</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(0, 0, 128); "><span style="color: #ff0000">Caused by: </span><span style="text-decoration: underline">java.lang.NullPointerException</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.common.AbstractRuleBase.addPackages(<span style="text-decoration: underline ; color: #000080">AbstractRuleBase.java:429</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.reteoo.ReteooRuleBase.addPackage(<span style="text-decoration: underline ; color: #000080">ReteooRuleBase.java:394</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at drools.engine.RulesEngine.readDRLintoPackage(<span style="text-decoration: underline ; color: #000080">RulesEngine.java:54</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>at drools.engine.RulesEngine.&lt;init>(<span style="text-decoration: underline ; color: #000080">RulesEngine.java:29</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>... 16 more</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><br></div></div><div>If I do put () after the annotation, the DRL file does compile, but I do NOT get dynamic behavior.</div><div><br></div><div>Thanks.</div><div><br></div><div>- Mike</div><div><br></div><div><br></div>&nbsp;&nbsp;Can you provide the error messages your are getting?<br><br>&nbsp;&nbsp;Make sure you use at least build #2589, that include the changes.<br><br><a href="https://hudson.jboss.org/hudson/job/drools/2589/artifact/trunk/target/">https://hudson.jboss.org/hudson/job/drools/2589/artifact/trunk/target/</a><br><br>&nbsp;&nbsp;There is a test case for this on<br>MiscTest.testPropertyChangeSupportNewAPI().<br><br>&nbsp;&nbsp;[]s<br>&nbsp;&nbsp;Edson<div><br></div><div><blockquote type="cite">Using snapshot from yesterday so presume I have the revision. &nbsp;The<br></blockquote><blockquote type="cite">following<br></blockquote><blockquote type="cite">DRL file dies a horrible death, being unable to be compiled. &nbsp;If I comment<br></blockquote><blockquote type="cite">out the tags then it works. &nbsp;In the rules editor, the word "declare" is not<br></blockquote><blockquote type="cite">highlighted either. &nbsp;I must be misunderstanding something simple.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">package glucose.decision.rules<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">import glucose.decision.object.GlucoseDecision;<br></blockquote><blockquote type="cite">import glucose.decision.object.GlucoseDecisionState;<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">declare GlucoseDecision<br></blockquote><blockquote type="cite">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@propertyChangeSupport<br></blockquote><blockquote type="cite">end<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">declare GlucoseDecisionState<br></blockquote><blockquote type="cite">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@propertyChangeSupport<br></blockquote><blockquote type="cite">end</blockquote></div></body></html>