<?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 Build error related to default cache in Studio in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/build-error-related-to-default-cache-in-studio/m-p/328222#M15223</link>
    <description>&lt;P&gt;Can anyone help fix unit tests that broke due to the default cache fix in Studio? &lt;A href="https://jira.nuxeo.com/browse/NXS-5101" target="test_blank"&gt;https://jira.nuxeo.com/browse/NXS-5101&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I am trying to build a new marketplace package in which the only difference is the studio release (compared to the last package which was built successfully, in March 2019).&lt;/P&gt;
&lt;P&gt;After much trial and error, I tried doing a "revert to commit" in studio which reverted to the last release that was part of a successful jenkins mp build. There is no difference in the custom java code. However, 39 unit tests fail.&lt;/P&gt;
&lt;P&gt;The errors look like this:
&lt;CODE&gt;invoke on features error [Holder [type=class com.custom.custom.core.test.PropertiesFeature], Holder [type=class org.nuxeo.ecm.core.test.CoreFeature], Holder [type=class org.nuxeo.ecm.core.test.TransactionalFeature], Holder [type=class org.nuxeo.runtime.test.runner.ContainerFeature], Holder [type=class org.nuxeo.runtime.test.runner.RuntimeFeature], Holder [type=class org.nuxeo.runtime.test.runner.RandomBug$Feature], Holder [type=class org.nuxeo.runtime.test.runner.ConditionalIgnoreRule$Feature], Holder [type=class org.nuxeo.runtime.test.runner.MDCFeature]]&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;How can I address these errors?
Thanks.
Lara&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2019 15:05:33 GMT</pubDate>
    <dc:creator>LaraGranite_</dc:creator>
    <dc:date>2019-04-25T15:05:33Z</dc:date>
    <item>
      <title>Build error related to default cache in Studio</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/build-error-related-to-default-cache-in-studio/m-p/328222#M15223</link>
      <description>&lt;P&gt;Can anyone help fix unit tests that broke due to the default cache fix in Studio? &lt;A href="https://jira.nuxeo.com/browse/NXS-5101" target="test_blank"&gt;https://jira.nuxeo.com/browse/NXS-5101&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I am trying to build a new marketplace package in which the only difference is the studio release (compared to the last package which was built successfully, in March 2019).&lt;/P&gt;
&lt;P&gt;After much trial and error, I tried doing a "revert to commit" in studio which reverted to the last release that was part of a successful jenkins mp build. There is no difference in the custom java code. However, 39 unit tests fail.&lt;/P&gt;
&lt;P&gt;The errors look like this:
&lt;CODE&gt;invoke on features error [Holder [type=class com.custom.custom.core.test.PropertiesFeature], Holder [type=class org.nuxeo.ecm.core.test.CoreFeature], Holder [type=class org.nuxeo.ecm.core.test.TransactionalFeature], Holder [type=class org.nuxeo.runtime.test.runner.ContainerFeature], Holder [type=class org.nuxeo.runtime.test.runner.RuntimeFeature], Holder [type=class org.nuxeo.runtime.test.runner.RandomBug$Feature], Holder [type=class org.nuxeo.runtime.test.runner.ConditionalIgnoreRule$Feature], Holder [type=class org.nuxeo.runtime.test.runner.MDCFeature]]&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;How can I address these errors?
Thanks.
Lara&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 15:05:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/build-error-related-to-default-cache-in-studio/m-p/328222#M15223</guid>
      <dc:creator>LaraGranite_</dc:creator>
      <dc:date>2019-04-25T15:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Build error related to default cache in Studio</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/build-error-related-to-default-cache-in-studio/m-p/328223#M15224</link>
      <description>&lt;P&gt;Replying back after working with Lara on this.&lt;/P&gt;
&lt;P&gt;We found a solution was to add better handling for usage of a "Principal" type variable that calls the method "getName()" in one of our classes.&lt;/P&gt;
&lt;P&gt;Before it checked the validity after calling "getName" when it should have been checked before the call. This was moved up to call a method for the Principal variable if it's valid, and return early if it's not ready to call it's "getName" method.&lt;/P&gt;
&lt;P&gt;Once the conditional check was properly set in place, the unit tests that relied on this class worked.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 23:38:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/build-error-related-to-default-cache-in-studio/m-p/328223#M15224</guid>
      <dc:creator>Peter_Tucker</dc:creator>
      <dc:date>2019-05-08T23:38:16Z</dc:date>
    </item>
  </channel>
</rss>

