NutzCN Logo
问答 使用ViewModule,提示Can not eval...
发布于 3287天前 作者 qq_e24e3d78 3176 次浏览 复制 上一个帖子 下一个帖子
标签: mvc
	@At("/order/pay/page")
	@Ok("re:jsp:/jsp/pay/page")
	public String payPage(@Param("num")String num,ViewModel model){
		try {
			DESUtil.decrypt(num);
			model.put("num", num);
			return null;
		} catch (Exception e) {
			return ">>:/page404";
		}
	}

一直报错Can not eval {num=EC4251A42D74A38D0A2E12CAE930E7E2C401457B5A961E5C}

17 回复

贴完整出错信息

@wendal

 	 java.lang.RuntimeException: Can not eval {num=EC4251A42D74A38D0A2E12CAE930E7E2C401457B5A961E5C}("{num=EC4251A42D74A8		D0A2E12CAE930E7E2C401457B5A961E5C}") View for public java.lang.String com.elx.web.module.UserCenterModule.payPage(java.lang.String,org.nutz.mvc.ViewModel)
	at org.nutz.lang.Lang.makeThrow(Lang.java:99)
	at org.nutz.mvc.view.ViewZone.makeView(ViewZone.java:87)
	at org.nutz.mvc.view.ViewZone.render(ViewZone.java:46)
	at org.nutz.mvc.impl.processor.ViewProcessor.process(ViewProcessor.java:55)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:28)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:33)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:40)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:113)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:40)
	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:183)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

53版吗? 换54试试

@wendal 54在哪里有下载呢

置顶的帖子就有

@wendal 换成54版了,还是报一样的错误

有这个视图?

@Ok("re:

@qq_e24e3d78 我待会试一下

@wendal 嗯嗯,好的。谢谢了

我想起来,返回空字符串才行

我知道了,我想想怎么改改

@wendal 嗯,不报错了。但是页面要怎么取值呢

@qq_e24e3d78 obj.num

@wendal 我试过${obj.num} 拿不到值

@qq_e24e3d78 我改错了

这次改好了, 重新下载一下吧, 实在抱歉

https://github.com/nutzam/nutz/releases/tag/v1.r.54

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