AnsweredAssumed Answered

Modules and Spring

Question asked by cf26721 on Jul 26, 2016
Latest reply on Dec 12, 2018 by am0054863

We've written a handful of custom B2 modules using Spring, and have found that, unless the modules are set to load asynchronously, they'll blow up if there is more than one on a module page.  Additionally, we've found that some things aren't working if the modules are set to load asynchronously. 


For instance, we have a custom HTML module that allows instructors to add some additional information about their course.  If they add in any javascript to the module, the module itself will fail to load.  If we disable the option to load async, it loads just fun.  But if we add another custom module to the page, the first one to load will load fine, and any other modules will blow up:


java.lang.ClassCastException: org.springframework.web.context.request.async.WebAsyncManager cannot be cast to org.springframework.web.context.request.async.WebAsyncManager at org.springframework.web.context.request.async.WebAsyncUtils.getAsyncManager( at org.springframework.web.servlet.FrameworkServlet.processRequest( at org.springframework.web.servlet.FrameworkServlet.doGet( at javax.servlet.http.HttpServlet.service( at...


Does anyone have any suggestions as to ways to potentially tame this beast?