<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;line-height:115%;font-family:"Cambria","serif"">Hello,</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;line-height:115%;font-family:"Cambria","serif"">first of all,
I would like to thank you for suggestions.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;line-height:115%;font-family:"Cambria","serif"">I tried
loading drl from file and all work fine. The issue append when the application
load from Guvnor5.3.0 the pkg. </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;line-height:115%;font-family:"Cambria","serif"">In particular the exception (I mentioned above) happens</span><span lang="EN-US" style="font-size:12pt;line-height:115%;font-family:Cambria,serif"> before calling the method "</span><span lang="EN-US" style="font-size:10pt;line-height:115%;font-family:'Courier New';background-color:silver">SituationManager</span><span lang="EN-US" style="font-size:10pt;line-height:115%;font-family:'Courier New'">.</span><span lang="EN-US" style="font-size:12pt;line-height:115%;font-family:Cambria,serif">createAccessControlEvent":</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span lang="EN-US" style="font-size:10pt;font-family:'Courier New'"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:#7f0055">public</span></b><span lang="EN-US" style="font-size:10pt;font-family:'Courier New'"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:#7f0055">static</span></b><span lang="EN-US" style="font-size:10pt;font-family:'Courier New'"> Event </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:#7f0055">createAccessControlEvent(</span></b><span lang="EN-US" style="font-size:10pt;font-family:'Courier New'">ACObservation obs, String description, </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:#7f0055">int</span></b><span lang="EN-US" style="font-size:10pt;font-family:'Courier New'"> threat_level, Geometry location, </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:#7f0055">int</span></b><span lang="EN-US" style="font-size:10pt;font-family:'Courier New'"> sensorid) {</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span lang="EN-US" style="font-size:10pt;font-family:'Courier New'"> Event event = </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:#7f0055">new</span></b><span lang="EN-US" style="font-size:10pt;font-family:'Courier New'">
AccessControlEvent(description, threat_level, (Geometry)location.clone(),
sensorid, obs.getLoginfo(), obs.getErrno(), obs.getPersonelId());</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span lang="EN-US" style="font-size:10pt;font-family:'Courier New'"> event.addObservation(obs.getServiceIdentification());</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span lang="EN-US" style="font-size:10pt;font-family:'Courier New'"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:#7f0055">return</span></b><span lang="EN-US" style="font-size:10pt;font-family:'Courier New'"> event;</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;font-family:'Courier New'"> </span><span style="font-size:10pt;line-height:115%;font-family:'Courier New'">}</span></p><p class="MsoNormal">
<span style="font-size:10pt;line-height:115%;font-family:'Courier New'"><br></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;line-height:115%;font-family:"Cambria","serif"">I opened the
source code at line 56 of org.drools.reteoo.ReteooFactHandleFactory (I'm
using Drools 5.3.0 final):</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;line-height:115%;font-family:"Cambria","serif""><br></span></p>
<div style="border:none;border-left:solid #6ce26c 2.25pt;padding:0cm 0cm 0cm 0cm;background:white;margin-left:15.75pt;margin-right:0cm">
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:white;border:none;padding:0cm"><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">45.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'"> </span></span><b><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#006699">protected</span></b><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><b><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#006699">final</span></b><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> InternalFactHandle newFactHandle(</span><b><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#006699">final</span></b><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><b><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#006699">int</span></b><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> id, </span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:#f8f8f8;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">46.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'"> </span></span><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><b><span style="font-size:9.0pt;font-family:Consolas;color:#006699">final</span></b><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> Object object,
</span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:white;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">47.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'"> </span></span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><b><span style="font-size:9.0pt;font-family:Consolas;color:#006699">final</span></b><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><b><span style="font-size:9.0pt;font-family:Consolas;color:#006699">long</span></b><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> recency,
</span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:#f8f8f8;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">48.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'"> </span></span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><b><span style="font-size:9.0pt;font-family:Consolas;color:#006699">final</span></b><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> ObjectTypeConf conf,
</span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:white;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">49.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'"> </span></span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><b><span style="font-size:9.0pt;font-family:Consolas;color:#006699">final</span></b><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> InternalWorkingMemory workingMemory,
</span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:#f8f8f8;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">50.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'"> </span></span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><b><span style="font-size:9.0pt;font-family:Consolas;color:#006699">final</span></b><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> WorkingMemoryEntryPoint wmEntryPoint) {
</span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:white;border:none;padding:0cm"><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">51.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'"> </span></span><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><b><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#006699">if</span></b><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> ( conf != </span><b><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#006699">null</span></b><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> && conf.isEvent() ) {
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:#f8f8f8;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">52.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'"> </span></span><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm">TypeDeclaration type = conf.getTypeDeclaration();
</span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:white;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">53.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'"> </span></span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><b><span style="font-size:9.0pt;font-family:Consolas;color:#006699">long</span></b><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> timestamp;
</span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:#f8f8f8;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">56.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'"> </span></span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><b><span style="font-size:9.0pt;font-family:Consolas;color:#006699">if</span></b><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> ( type.getTimestampExtractor() != </span><b><span style="font-size:9.0pt;font-family:Consolas;color:#006699">null</span></b><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> ) {
</span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:white;border:none;padding:0cm"><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">57.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'"> </span></span><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><b><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#006699">if</span></b><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> ( Date.</span><b><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#006699">class</span></b><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm">.isAssignableFrom( type.getTimestampExtractor().getExtractToClass() ) ) {
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:#f8f8f8;border:none;padding:0cm"><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">58.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'"> </span></span><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> timestamp = ((Date) type.getTimestampExtractor().getValue( workingMemory,
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:white;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">59.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'"> </span></span><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm">object )).getTime(); </span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-left:18.0pt;line-height:10.5pt;background:#f8f8f8;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">60.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'">
</span></span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> } </span><b><span style="font-size:9.0pt;font-family:Consolas;color:#006699">else</span></b><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> { </span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
</div>
<p class="MsoNormal" style="background:whitesmoke;vertical-align:top"><span style="font-size:9.0pt;line-height:115%;font-family:Consolas;color:#5c5c5c"></span><span style="font-family:"Arial","sans-serif";color:#333333"> </span></p>
<p class="MsoNormal" style="background:whitesmoke;vertical-align:top"><span lang="EN" style="font-size:12.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#333333">it seems that "type" is null.</span></p>
<p class="MsoNormal" style="background:whitesmoke;vertical-align:top"><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#888888"> </span></p><p class="MsoNormal" style="background:whitesmoke;vertical-align:top">
<font face="Arial, sans-serif" color="#333333"><span style="line-height:14px">Regards</span></font></p><p class="MsoNormal" style="background:whitesmoke;vertical-align:top"><font face="Arial, sans-serif" color="#333333"><span style="line-height:14px">Carolina</span></font></p>
<br><div class="gmail_quote">2012/7/23 Wolfgang Laun <span dir="ltr"><<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 23/07/2012, Vincent LEGENDRE <<a href="mailto:vincent.legendre@eurodecision.com">vincent.legendre@eurodecision.com</a>> wrote:<br>
> are you sure that your " SituationManager.createAccessControlEvent" method<br>
> returns something not null ?<br>
<br>
</div>An insert of null is handled by insert(): nothing is done, null is returned. NP<br>
<span class="HOEnZb"><font color="#888888">-W<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>