Skip to content

Commit

Permalink
EhCache raised ClassCastException after reload in dev mode #1368
Browse files Browse the repository at this point in the history
  • Loading branch information
greenlaw110 committed Nov 29, 2020
1 parent 0587872 commit dff0e13
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
@@ -1,6 +1,7 @@
# ActFramework Change Log

**1.9.1**
* EhCache raised `ClassCastException` after reload in dev mode #1368
* ApacheMultipartParser NullPointerException #1369
* Error encountered requesting `/asset/extjs-all.js` #1359
* 500 Error but not error stack in console log #1358
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/act/app/App.java
Expand Up @@ -84,6 +84,7 @@
import org.osgl.$;
import org.osgl.Lang;
import org.osgl.cache.CacheService;
import org.osgl.cache.CacheServiceProvider;
import org.osgl.http.HttpConfig;
import org.osgl.logging.LogManager;
import org.osgl.logging.Logger;
Expand Down Expand Up @@ -1616,6 +1617,7 @@ private void initSessionManager() {

private void initCache() {
if (isDev()) {
CacheServiceProvider.Impl.setClassLoader(this.classLoader);
config().cacheServiceProvider().reset();
}
cache = cache(config().cacheName());
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/act/cli/builtin/Help.java
Expand Up @@ -20,8 +20,6 @@
* #L%
*/

import static org.osgl.$.T2;

import act.cli.CliCmdInfo;
import act.cli.CliContext;
import act.cli.CliDispatcher;
Expand All @@ -39,6 +37,8 @@
import java.util.List;
import java.util.SortedSet;

import static org.osgl.$.T2;

public class Help extends CliHandlerBase {

public static final Help INSTANCE = new Help();
Expand Down

0 comments on commit dff0e13

Please sign in to comment.