NutzCN Logo
问答 master代码,启动报错 IocBean[freeMarkerConfigurer]
发布于 2665天前 作者 qq_c1b22966 1612 次浏览 复制 上一个帖子 下一个帖子
标签:

好像redis 集成也没有 少了redis.js 这个文件 master这个分支是最新代码吗??????????????
好像redis 集成也没有 少了redis.js 这个文件 master这个分支是最新代码吗??????????????
好像redis 集成也没有 少了redis.js 这个文件 master这个分支是最新代码吗??????????????

20:10:33.248 DEBUG (NutActionChainMaker.java:51) eval - Eval FAIL!! : public void net.wendal.nutzbook.module.admin.AdminUserModule.add()
org.nutz.ioc.IocException: IocBean[freeMarkerConfigurer] throw Exception when creating
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:149) ~[ObjectMakerImpl.class:1.r.61-SNAPSHOT]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210) ~[NutIoc.class:1.r.61-SNAPSHOT]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239) ~[NutIoc.class:1.r.61-SNAPSHOT]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:146) ~[NutIoc.class:1.r.61-SNAPSHOT]
	at org.nutz.plugins.view.freemarker.FreemarkerViewMaker.make(FreemarkerViewMaker.java:18) ~[FreemarkerViewMaker.class:?]
	at org.nutz.mvc.view.ViewZone.makeView(ViewZone.java:86) ~[ViewZone.class:1.r.61-SNAPSHOT]
	at org.nutz.mvc.impl.processor.ViewProcessor.evalView(ViewProcessor.java:89) ~[ViewProcessor.class:1.r.61-SNAPSHOT]
	at org.nutz.mvc.impl.processor.ViewProcessor.init(ViewProcessor.java:31) ~[ViewProcessor.class:1.r.61-SNAPSHOT]
	at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38) [NutActionChainMaker.class:1.r.61-SNAPSHOT]
	at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54) [UrlMappingImpl.class:1.r.61-SNAPSHOT]
	at org.nutz.plugins.apidoc.ApidocUrlMapping.add(ApidocUrlMapping.java:92) [ApidocUrlMapping.class:?]
	at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:201) [NutLoading.class:1.r.61-SNAPSHOT]
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108) [NutLoading.class:1.r.61-SNAPSHOT]
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19) [ActionHandler.class:1.r.61-SNAPSHOT]
	at org.nutz.mvc.NutFilter._init(NutFilter.java:91) [NutFilter.class:1.r.61-SNAPSHOT]
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69) [NutFilter.class:1.r.61-SNAPSHOT]
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279) [catalina.jar:8.0.9]
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) [catalina.jar:8.0.9]
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105) [catalina.jar:8.0.9]
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4603) [catalina.jar:8.0.9]
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5210) [catalina.jar:8.0.9]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.0.9]
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) [catalina.jar:8.0.9]
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) [catalina.jar:8.0.9]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_144]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_144]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_144]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
Caused by: java.lang.NoSuchMethodError: freemarker.template.Configuration.setTemplateUpdateDelayMilliseconds(J)V
	at org.nutz.plugins.view.freemarker.FreeMarkerConfigurer.initp(FreeMarkerConfigurer.java:56) ~[FreeMarkerConfigurer.class:?]
	at org.nutz.plugins.view.freemarker.FreeMarkerConfigurer.<init>(FreeMarkerConfigurer.java:44) ~[FreeMarkerConfigurer.class:?]
	at org.nutz.plugins.view.freemarker.FreeMarkerConfigurer$FC$547e430b4b5f740a8d532b2f681a3046.invoke(FreeMarkerConfigurer.java) ~[ReflectTool.class:?]
	at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25) ~[AbstractConstructorBorning.class:1.r.61-SNAPSHOT]
	at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19) ~[ConstructorBorning.class:1.r.61-SNAPSHOT]
	at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:67) ~[DefaultWeaver.class:1.r.61-SNAPSHOT]
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:114) ~[ObjectMakerImpl.class:1.r.61-SNAPSHOT]
	... 27 more
20:10:33.255 ERROR (NutLoading.java:125) load - Error happend during start serivce!
org.nutz.ioc.IocException: IocBean[freeMarkerConfigurer] throw Exception when creating
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:149) ~[ObjectMakerImpl.class:1.r.61-SNAPSHOT]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210) ~[NutIoc.class:1.r.61-SNAPSHOT]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239) ~[NutIoc.class:1.r.61-SNAPSHOT]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:146) ~[NutIoc.class:1.r.61-SNAPSHOT]
	at org.nutz.plugins.view.freemarker.FreemarkerViewMaker.make(FreemarkerViewMaker.java:18) ~[FreemarkerViewMaker.class:?]
	at org.nutz.mvc.view.ViewZone.makeView(ViewZone.java:86) ~[ViewZone.class:1.r.61-SNAPSHOT]
	at org.nutz.mvc.impl.processor.ViewProcessor.evalView(ViewProcessor.java:89) ~[ViewProcessor.class:1.r.61-SNAPSHOT]
	at org.nutz.mvc.impl.processor.ViewProcessor.init(ViewProcessor.java:31) ~[ViewProcessor.class:1.r.61-SNAPSHOT]
	at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38) ~[NutActionChainMaker.class:1.r.61-SNAPSHOT]
	at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54) ~[UrlMappingImpl.class:1.r.61-SNAPSHOT]
	at org.nutz.plugins.apidoc.ApidocUrlMapping.add(ApidocUrlMapping.java:92) ~[ApidocUrlMapping.class:?]
	at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:201) ~[NutLoading.class:1.r.61-SNAPSHOT]
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108) [NutLoading.class:1.r.61-SNAPSHOT]
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19) [ActionHandler.class:1.r.61-SNAPSHOT]
	at org.nutz.mvc.NutFilter._init(NutFilter.java:91) [NutFilter.class:1.r.61-SNAPSHOT]
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69) [NutFilter.class:1.r.61-SNAPSHOT]
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279) [catalina.jar:8.0.9]
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) [catalina.jar:8.0.9]
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105) [catalina.jar:8.0.9]
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4603) [catalina.jar:8.0.9]
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5210) [catalina.jar:8.0.9]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.0.9]
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) [catalina.jar:8.0.9]
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) [catalina.jar:8.0.9]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_144]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_144]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_144]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
Caused by: java.lang.NoSuchMethodError: freemarker.template.Configuration.setTemplateUpdateDelayMilliseconds(J)V
	at org.nutz.plugins.view.freemarker.FreeMarkerConfigurer.initp(FreeMarkerConfigurer.java:56) ~[FreeMarkerConfigurer.class:?]
	at org.nutz.plugins.view.freemarker.FreeMarkerConfigurer.<init>(FreeMarkerConfigurer.java:44) ~[FreeMarkerConfigurer.class:?]
	at org.nutz.plugins.view.freemarker.FreeMarkerConfigurer$FC$547e430b4b5f740a8d532b2f681a3046.invoke(FreeMarkerConfigurer.java) ~[ReflectTool.class:?]
	at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25) ~[AbstractConstructorBorning.class:1.r.61-SNAPSHOT]
	at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19) ~[ConstructorBorning.class:1.r.61-SNAPSHOT]
	at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:67) ~[DefaultWeaver.class:1.r.61-SNAPSHOT]
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:114) ~[ObjectMakerImpl.class:1.r.61-SNAPSHOT]
	... 27 more
20:10:33.256 ERROR (NutLoading.java:127) load - try to depose ioc
20:10:33.259 INFO  (NutIoc.java:255) depose - org.nutz.ioc.impl.NutIoc@27394693 is closing. startup date [17-08-06 20:10:32.353]
20:10:33.259 DEBUG (ScopeContext.java:108) clear - Depose object 'freemarkerDirectiveFactory' ...
20:10:33.260 DEBUG (ScopeContext.java:108) clear - Depose object 'configuration' ...
20:10:33.260 DEBUG (ScopeContext.java:108) clear - Depose object 'jedisPoolConfig' ...
20:10:33.260 DEBUG (ScopeContext.java:108) clear - Depose object 'jedisPool' ...
20:10:33.261 DEBUG (ScopeContext.java:108) clear - Depose object 'conf' ...
20:10:33.261 DEBUG (ScopeContext.java:108) clear - Depose object '$aop_slog' ...
20:10:33.261 DEBUG (ScopeContext.java:108) clear - Depose object '$aop_async' ...
20:10:33.261 DEBUG (ScopeContext.java:108) clear - Depose object 'dynamicInterceptor' ...
20:10:33.261 DEBUG (ScopeContext.java:108) clear - Depose object '$aop_1_plugin' ...
20:10:33.262 INFO  (NutIoc.java:262) depose - org.nutz.ioc.impl.NutIoc@27394693 is deposed. startup date [17-08-06 20:10:32.353]
八月 06, 2017 8:10:33 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
org.nutz.mvc.LoadingException: org.nutz.ioc.IocException: IocBean[freeMarkerConfigurer] throw Exception when creating
	at org.nutz.mvc.LoadingException$FC$9a86caf9ff5d3b587784fcdf555a4a7d.invoke(LoadingException.java)
	at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
	at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:990)
	at org.nutz.lang.Lang.wrapThrow(Lang.java:200)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:135)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4603)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5210)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.nutz.ioc.IocException: IocBean[freeMarkerConfigurer] throw Exception when creating
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:149)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:146)
	at org.nutz.plugins.view.freemarker.FreemarkerViewMaker.make(FreemarkerViewMaker.java:18)
	at org.nutz.mvc.view.ViewZone.makeView(ViewZone.java:86)
	at org.nutz.mvc.impl.processor.ViewProcessor.evalView(ViewProcessor.java:89)
	at org.nutz.mvc.impl.processor.ViewProcessor.init(ViewProcessor.java:31)
	at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
	at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
	at org.nutz.plugins.apidoc.ApidocUrlMapping.add(ApidocUrlMapping.java:92)
	at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:201)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108)
	... 15 more
Caused by: java.lang.NoSuchMethodError: freemarker.template.Configuration.setTemplateUpdateDelayMilliseconds(J)V
	at org.nutz.plugins.view.freemarker.FreeMarkerConfigurer.initp(FreeMarkerConfigurer.java:56)
	at org.nutz.plugins.view.freemarker.FreeMarkerConfigurer.<init>(FreeMarkerConfigurer.java:44)
	at org.nutz.plugins.view.freemarker.FreeMarkerConfigurer$FC$547e430b4b5f740a8d532b2f681a3046.invoke(FreeMarkerConfigurer.java)
	at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
	at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19)
	at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:67)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:114)
	... 27 more
23 回复

什么的代码?

freemaker版本低

请问怎么升级呀,老报错

@qq_c1b22966 把freemaker的版本升级到最新

用的是哪个分支的?

@wendal 换成这个还是不是行

<dependency>
			<groupId>org.freemarker</groupId>
			<artifactId>freemarker</artifactId>
			<version>2.3.23</version>
		</dependency>

@wendal 问一下 现在那个分支 可以用啊 我换成V2.9.1 这个版本的 也不行 都跑不起来

改成 2.3.26-incubating

@wendal 哥们 还是不行呢

@wendal 你不信 你可以把 master 分支拉下来试下

正在checkout

@wendal 顺便看下 那个redis 有没有集成进去哈

换成 2.3.26-incubating 是可以跑的. https://github.com/wendal/nutz-book-project/commit/79c738ddb8fb5a1a72217b051f61ba8da7d93502

redis集成是有的.

master分支是老的代码, 3.x分支才是正在使用的代码

@wendal 不知道什么原因 我的就是不行 你是用的tomcat8吗 要不你打个war 包给我 看看能不能起

我用的是tomcat 8.5

如果还是报那个错,只能是freemaker没更新好

上传中, 目测要15分钟, 你到这取吧 http://git.oschina.net/wendal/nutz-book-project/attach_files

上传完了.

我把war文件扔到tomcat里面是可以跑的.

数据库用户root,密码root,数据库名称nutzcn2, 自动建表

@wendal 嗯 我跑跑看 我在看3.X的 问下 那个redis 密码填哪里的 我看配置文件把密码那行 注释掉了。。。。

redis默认不带密码

@wendal 我阿里云上面的 设置密码了

那就去掉注释,填上嘛...

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