<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automation and a custom enricher in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/automation-and-a-custom-enricher/m-p/319689#M6690</link>
    <description>&lt;P&gt;Thank you, I've completely missed the versions part of the deal.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2019 11:23:52 GMT</pubDate>
    <dc:creator>lista</dc:creator>
    <dc:date>2019-04-04T11:23:52Z</dc:date>
    <item>
      <title>Automation and a custom enricher</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/automation-and-a-custom-enricher/m-p/319687#M6688</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm trying to learn how to develop my own enricher (I believe I do understand the basic, in terms of how enrichers relate to automation chains and so on). However, I'm having problems:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I can use existing enrichers with, for example, Document.FetchByProperty and everything will work&lt;/LI&gt;
&lt;LI&gt;But once I include my own custom enricher, I get the error (attached)&lt;/LI&gt;
&lt;LI&gt;I couldn't figure out what I'm doing wrong, so I took existing custom enricher from Nuxeo sample project, and got the same error&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Any help is welcome!&lt;/P&gt;
&lt;P&gt;I have also asked the same question on SO.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/55043978/nuxeo-automation-and-a-custom-enricher" target="test_blank"&gt;https://stackoverflow.com/questions/55043978/nuxeo-automation-and-a-custom-enricher&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 07:52:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/automation-and-a-custom-enricher/m-p/319687#M6688</guid>
      <dc:creator>lista</dc:creator>
      <dc:date>2019-03-06T07:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Automation and a custom enricher</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/automation-and-a-custom-enricher/m-p/319688#M6689</link>
      <description>&lt;P&gt;Make sure that you are compiling the enricher code with the same version of Nuxeo libraries as is the version of the target platform.&lt;/P&gt;
&lt;P&gt;For example sample project is using the latest version (currently 11.1-SNAPSHOT) and the result code will not be compatible with Nuxeo platform 9.2. Especially abstract methods can have problems.&lt;/P&gt;
&lt;P&gt;So there should be this section in &lt;EM&gt;pom.xml&lt;/EM&gt; with &lt;CODE&gt;&amp;lt;version&amp;gt;9.2&amp;lt;/version&amp;gt;&lt;/CODE&gt; in your case:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;parent&amp;gt;
    &amp;lt;groupId&amp;gt;org.nuxeo&amp;lt;/groupId&amp;gt;
    &amp;lt;artifactId&amp;gt;nuxeo-addons-parent&amp;lt;/artifactId&amp;gt;
    &amp;lt;version&amp;gt;9.2&amp;lt;/version&amp;gt;
&amp;lt;/parent&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The reason why the &lt;CODE&gt;java.lang.AbstractMethodError&lt;/CODE&gt; is thrown here is in &lt;CODE&gt;JsonGenerator&lt;/CODE&gt;. Nuxeo 9.2 uses &lt;CODE&gt;org.codehaus.jackson.JsonGenerator&lt;/CODE&gt; while newer Nuxe versions use &lt;CODE&gt;com.fasterxml.jackson.core.JsonGenerator&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;Then this method signature (in 9.2):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;public void write(org.codehaus.jackson.JsonGenerator jsonGenerator, DocumentModel documentModel) throws IOException;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;... is not compatible with this (in 10.3 for example):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;public void write(com.fasterxml.jackson.core.JsonGenerator json, DocumentModel document) throws IOException;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And Java is then not able to find correct &lt;CODE&gt;write()&lt;/CODE&gt; method implementation and throws &lt;CODE&gt;AbstractMethodError&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;BTW: I answered this question for you also on &lt;A href="https://stackoverflow.com/a/55124006/9709361" target="test_blank"&gt;https://stackoverflow.com/a/55124006/9709361&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 05:52:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/automation-and-a-custom-enricher/m-p/319688#M6689</guid>
      <dc:creator>Lukáš_Machácek</dc:creator>
      <dc:date>2019-03-15T05:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Automation and a custom enricher</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/automation-and-a-custom-enricher/m-p/319689#M6690</link>
      <description>&lt;P&gt;Thank you, I've completely missed the versions part of the deal.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 11:23:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/automation-and-a-custom-enricher/m-p/319689#M6690</guid>
      <dc:creator>lista</dc:creator>
      <dc:date>2019-04-04T11:23:52Z</dc:date>
    </item>
  </channel>
</rss>

