2 Replies Latest reply on Apr 16, 2016 2:59 AM by christian.bauer

    MarshallerGenerator exception appears randomly with 4 beta and superdevmode

    christian.bauer

      Hi

       

      I'm trying the new Errai 4 beta and I've been struggling for a while with random exceptions. The stack looks like this: https://gist.github.com/christianbauer/14af2c145d394e9b315252cf7ba4700d

       

      There isn't any more detail in TRACE logs. It happens almost every time when I rebuild with superdevmode. I've tried every possible combination of source code and gwt.xml configuration I can think of and even have the problem with empty source paths. Combinations of "noprecompile" and "noincremental" did not resolve the issue. This is a gradle-gwt-plugin build that was working for a few hours until I randomly started seeing this error after a hasty edit and I haven't been able to roll back to a stable state.

       

      Appreciate any help,

      Christian

        • 1. Re: MarshallerGenerator exception appears randomly with 4 beta and superdevmode
          mbarkley

          Hi Christian,

           

          We've added lots of caching with our generators to try and minimize the impact of Errai's code-generation on SDM refresh time. In this case, it looks like there is an issue with our cache logic for array marshallers. As a workaround if you find this problem happening even after restarting SDM, you should try deleting all the various GWT cache files. There will be some in gwt-unitCache, and also some in the folder used by the codeserver (the folder gets printed in the console when the codeserver launches).

           

          I've filed an issue for this problem and will investigate it further.

           

          Cheers.

          • 2. Re: MarshallerGenerator exception appears randomly with 4 beta and superdevmode
            christian.bauer

            Thanks Max, deleting the .errrai directory helped with this exception and immediately was also the solution for some other strange exceptions I've seen. The gwt-unitCache is cleared automatically anyway whenever I clean my project. Should "noincremental" and "noprecompile" also be enabled?