NutzCN Logo
问答 nutzbook 项目启动 时不时的报 lucene Lock obtain timed ou错误
发布于 3174天前 作者 qq_868910ac 2416 次浏览 复制 上一个帖子 下一个帖子
标签:

19:43:38.243 DEBUG (NutIoc.java:153) get - Get 'conf'<>
19:43:38.243 DEBUG (NutIoc.java:153) get - Get 'bigContentService'<class net.wendal.nutzbook.service.BigContentService>
19:43:39.462 DEBUG (ScopeContext.java:79) remove - Remove object 'topicSearchService' from [app]
19:43:39.467 DEBUG (ScopeContext.java:79) remove - Remove object 'yvrService' from [app]
19:43:39.468 ERROR (NutLoading.java:124) load - Error happend during start serivce!
org.nutz.ioc.IocException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@E:\data\topic\lucene\write.lock: java.nio.channels.OverlappingFileLockException FAIL to create Ioc Bean name=[topicSearchService] FAIL to create Ioc Bean name=[yvrService]
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:147) ~[nutz-1.r.55.jar:?]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:204) ~[nutz-1.r.55.jar:?]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:229) ~[nutz-1.r.55.jar:?]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:148) ~[nutz-1.r.55.jar:?]
at net.wendal.nutzbook.MainSetup.init(MainSetup.java:138) ~[classes/:?]
at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:276) ~[nutz-1.r.55.jar:?]
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:120) [nutz-1.r.55.jar:?]
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19) [nutz-1.r.55.jar:?]
at org.nutz.mvc.NutFilter._init(NutFilter.java:87) [nutz-1.r.55.jar:?]
at org.nutz.mvc.NutFilter.init(NutFilter.java:65) [nutz-1.r.55.jar:?]
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279) [catalina.jar:8.0.33]
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) [catalina.jar:8.0.33]
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105) [catalina.jar:8.0.33]
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4658) [catalina.jar:8.0.33]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5277) [catalina.jar:8.0.33]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) [catalina.jar:8.0.33]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) [catalina.jar:8.0.33]
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) [catalina.jar:8.0.33]
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) [catalina.jar:8.0.33]
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092) [catalina.jar:8.0.33]
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1834) [catalina.jar:8.0.33]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_77]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_77]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_77]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_77]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_77]

8 回复

换最新的代码

我刚 pull down 下来的

开了2个进程,应该是

20:55:30.155 DEBUG (AbstractNutConfig.java:128) getMainModule - MainModule: <net.wendal.nutzbook.MainModule>
20:55:30.205 DEBUG (AbstractNutConfig.java:59) createLoading - Loading by class org.nutz.mvc.impl.NutLoading
20:55:30.209 INFO (NutLoading.java:55) load - Nutz Version : 1.r.55
20:55:30.209 INFO (NutLoading.java:56) load - Nutz.Mvc[nutz] is initializing ...
20:55:30.209 DEBUG (NutLoading.java:60) load - Web Container Information:
20:55:30.211 DEBUG (NutLoading.java:61) load - - Default Charset : UTF-8
20:55:30.211 DEBUG (NutLoading.java:62) load - - Current . path : E:\jeeEclipse.
20:55:30.211 DEBUG (NutLoading.java:63) load - - Java Version : 1.8.0_77
20:55:30.212 DEBUG (NutLoading.java:64) load - - File separator : \
20:55:30.212 DEBUG (NutLoading.java:65) load - - Timezone : Asia/Shanghai
20:55:30.212 DEBUG (NutLoading.java:66) load - - OS : Windows 10 amd64
20:55:30.212 DEBUG (NutLoading.java:67) load - - ServerInfo : Apache Tomcat/8.0.33
20:55:30.212 DEBUG (NutLoading.java:68) load - - Servlet API : 3.1
20:55:30.212 DEBUG (NutLoading.java:73) load - - ContextPath : /nutzbook
20:55:30.212 DEBUG (NutLoading.java:74) load - - context.tempdir : E:\tomcat8\work\Catalina\localhost\nutzbook
20:55:30.214 DEBUG (AbstractNutConfig.java:128) getMainModule - MainModule: <net.wendal.nutzbook.MainModule>
20:55:30.215 DEBUG (NutLoading.java:237) createContext - >> app.root = E:/tomcat8/webapps/nutz-book-project
20:55:30.335 DEBUG (Castors.java:115) reload - Using 94 castor for Castors
20:55:30.338 DEBUG (NutLoading.java:378) createIoc - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*quartz", "*async", "*tx", "*org.nutz.plugins.view.freemarker.FreemarkerIocLoader"],init=[])
20:55:30.408 DEBUG (Scans.java:233) scan - Found 8 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
20:55:30.409 DEBUG (JsonLoader.java:48) - loading ioc js config from [dao.js]
20:55:30.415 DEBUG (JsonLoader.java:48) - loading ioc js config from [ehcache.js]
20:55:30.416 DEBUG (JsonLoader.java:48) - loading ioc js config from [freemarker_tags.js]
20:55:30.417 DEBUG (JsonLoader.java:48) - loading ioc js config from [jpush.js]
20:55:30.418 DEBUG (JsonLoader.java:48) - loading ioc js config from [mail.js]
20:55:30.418 DEBUG (JsonLoader.java:48) - loading ioc js config from [map.js]
20:55:30.421 DEBUG (JsonLoader.java:48) - loading ioc js config from [redis.js]
20:55:30.422 DEBUG (JsonLoader.java:48) - loading ioc js config from [xmpush.js]

```

```
机器都重启了 还是报错 晕了 - -!!!

删掉这个咯 E:\data\topic\lucene\write.lock

@wendal 早已试过 见鬼了😄

来自炫酷的 NutzCN

E:/tomcat8/webapps/nutz-book-project
E:\tomcat8\work\Catalina\localhost\nutzbook

定义了context.xml ?? 然后又放在webapps下, 所以启动了2次,所以死咯

@wendal 好了 哈哈 是项目名字不一样 QQ图片20160415094119_png

添加回复
请先登陆
回到顶部