jbolt启动报错Can't assign requested address

大家在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


评论区

JFinal

2019-10-12 18:52

应该是 ehcache.xml 配置有问题,你貌似配置了 RMI ,找找 ehcache 的配置文档

山东小木

2019-10-13 09:51

你是在IDE里启动的还是打包后服务器启动?

山东小木

2019-10-13 09:55

如果是在Idea中 这里有个解决方法 不知道是否合适 https://blog.csdn.net/m0_37113539/article/details/82461856

山东小木

2019-10-13 15:06

你把ehcache.xml里的RMI的去掉了也行

playgemes

2019-10-15 12:00

去掉了RMI,暂时搞定,不影响后面的事情了。 需要用的时候再开启。 谢谢@山东小木 @JFinal

热门反馈

扫码入社