<p dir="ltr">It looks like the OP is trying to retrieve a Java class with the API for accessing declared (DRL) types.... but to be honest they also mention if they put the type in /resources it works ok - so I&#39;m not entirely clear what they are doing.</p>

<p dir="ltr">Sent on the move</p>
<div class="gmail_quot&lt;blockquote class=" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">If ValidationError is a user-defined type, using the Data Modeller in the workbench, it is a java class and not a declared (DRL) type.</p>

<p dir="ltr">I don&#39;t think this is a bug; but perhaps a misunderstanding?</p>
<p dir="ltr">Sent on the move</p>
<div class="gmail_quote">On 15 Mar 2014 15:41, &quot;Davide Sottara&quot; &lt;<a href="mailto:dsotty@gmail.com" target="_blank">dsotty@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Michael, I think the class is just
      incidentally named ValidationError.<br>
      <br>
      The problem is in the &quot;wiring&quot; of the accessors into the
      FieldDefinition<br>
      (you see that &quot;accessor=null&quot; at the end of the toString in the
      failing case).<br>
      This wiring is done by the PackageBuilder when the DRL is
      compiled, so <br>
      I suspect that there is a problem with the interaction of the data
      modeller<br>
      and the package builder.. <br>
      <br>
      Jarkko, thanks for reporting this, it really looks like a WB bug!<br>
      Could you please open a JIRA ticket?<br>
      <br>
      Davide<br>
      <br>
      On 03/15/2014 04:09 PM, Michael Anstis wrote:<br>
    </div>
    <blockquote type="cite">
      <p dir="ltr">ValidationError is indeed an *internal* workbench
        class. What makes you think you can query for it? </p>
      <p dir="ltr">Sent on the move</p>
      <div class="gmail_quote">On 15 Mar 2014 12:00, &quot;JarkkoMakela&quot; &lt;<a href="mailto:jarkko.matinpoika@gmail.com" target="_blank">jarkko.matinpoika@gmail.com</a>&gt;
        wrote:<br type="attribution">
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          This ValidationError is created with drools workbench data
          modeller. It has<br>
          only String fields.<br>
          I have only couple of rules (which will create two
          ValidationErrors) and one<br>
          query (for the ValidationError) in the knowledgebase.<br>
          <br>
          <br>
          -Jarkko<br>
          <br>
          <br>
          <br>
          --<br>
          View this message in context: <a href="http://drools.46999.n3.nabble.com/NullPointerException-with-factType-get-fact-fieldname-tp4028688p4028744.html" target="_blank">http://drools.46999.n3.nabble.com/NullPointerException-with-factType-get-fact-fieldname-tp4028688p4028744.html</a><br>


          Sent from the Drools: User forum mailing list archive at
          Nabble.com.<br>
          _______________________________________________<br>
          rules-users mailing list<br>
          <a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
        </blockquote>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
rules-users mailing list
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a></pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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></blockquote></div>
</div>