大家在MAC上启动jbolt,ehcache 报错,请大神指点迷津。 启动报错信息如下:
本机IPv6已经禁用,开发环境是IntelliJ IDEA。
Starting JFinal 4.5 -> http://0.0.0.0:80
Info: jfinal-undertow 1.9, undertow 2.0.25.Final, jvm 1.8.0_181
2019-10-12 12:49:32
[ERROR]-[Thread: main]-[com.jfinal.core.Config.startPlugins()]: Plugin start error: com.jfinal.plugin.ehcache.EhCachePlugin.
Can't assign requested address
net.sf.ehcache.CacheException: Can't assign requested address
at net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.init(MulticastRMICacheManagerPeerProvider.java:99)
at net.sf.ehcache.CacheManager.doInit(CacheManager.java:447)
at net.sf.ehcache.CacheManager.init(CacheManager.java:377)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:259)
at net.sf.ehcache.CacheManager.newInstance(CacheManager.java:1037)
at net.sf.ehcache.CacheManager.newInstance(CacheManager.java:818)
at net.sf.ehcache.CacheManager.create(CacheManager.java:799)
at com.jfinal.plugin.ehcache.EhCachePlugin.createCacheManager(EhCachePlugin.java:91)
at com.jfinal.plugin.ehcache.EhCachePlugin.start(EhCachePlugin.java:61)
at com.jfinal.core.Config.startPlugins(Config.java:128)
at com.jfinal.core.Config.configPluginWithOrder(Config.java:71)
at com.jfinal.core.Config.configJFinal(Config.java:59)
at com.jfinal.core.JFinal.init(JFinal.java:61)
at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:63)
at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:111)
at io.undertow.servlet.core.ManagedFilter.createFilter(ManagedFilter.java:80)
at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:591)
at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:556)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:598)
at com.jfinal.server.undertow.UndertowServer.configHttp(UndertowServer.java:284)
at com.jfinal.server.undertow.UndertowServer.doStart(UndertowServer.java:262)
at com.jfinal.server.undertow.UndertowServer.start(UndertowServer.java:159)
at cn.jbolt.common.config.MainConfig.main(MainConfig.java:344)
java.lang.RuntimeException: Plugin start error: com.jfinal.plugin.ehcache.EhCachePlugin.
Can't assign requested address
at com.jfinal.core.Config.startPlugins(Config.java:137)
at com.jfinal.core.Config.configPluginWithOrder(Config.java:71)
at com.jfinal.core.Config.configJFinal(Config.java:59)
at com.jfinal.core.JFinal.init(JFinal.java:61)
at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:63)
at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:111)
at io.undertow.servlet.core.ManagedFilter.createFilter(ManagedFilter.java:80)
at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:591)
at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:556)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:598)
at com.jfinal.server.undertow.UndertowServer.configHttp(UndertowServer.java:284)
at com.jfinal.server.undertow.UndertowServer.doStart(UndertowServer.java:262)
at com.jfinal.server.undertow.UndertowServer.start(UndertowServer.java:159)
at cn.jbolt.common.config.MainConfig.main(MainConfig.java:344)
Caused by: net.sf.ehcache.CacheException: Can't assign requested address
at net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.init(MulticastRMICacheManagerPeerProvider.java:99)
at net.sf.ehcache.CacheManager.doInit(CacheManager.java:447)
at net.sf.ehcache.CacheManager.init(CacheManager.java:377)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:259)
at net.sf.ehcache.CacheManager.newInstance(CacheManager.java:1037)
at net.sf.ehcache.CacheManager.newInstance(CacheManager.java:818)
at net.sf.ehcache.CacheManager.create(CacheManager.java:799)
at com.jfinal.plugin.ehcache.EhCachePlugin.createCacheManager(EhCachePlugin.java:91)
at com.jfinal.plugin.ehcache.EhCachePlugin.start(EhCachePlugin.java:61)
at com.jfinal.core.Config.startPlugins(Config.java:128)
... 15 more
进程完成,退出码 1