NutzCN Logo
问答 Expression obj.order is undefined on
发布于 2553天前 作者 ang 1534 次浏览 复制 上一个帖子 下一个帖子
标签:

1、点击:查看综述单
<#elseif order.status==59>
查看模型
查看综述单

2、进入rebuildModule
@At("/view_report/*")
@Ok("efm:/WEB-INF/views/bg_server/word.html")
@Fail("jsp:jsp.500")
public Object viewReport(String orderId,String reportId,@Attr("user")User currentUser) throws Exception {
Map<String, Object> map = new HashMap<String, Object>();

    if(Strings.isEmpty(orderId) || Strings.isEmpty(reportId)) {
       map.put("message", "传入的参数不能为空");
       map.put("status", 0);
       return map;
    }

    ResultCode rcCode = serReport.getModelReport(reportId);
    ModelReport report = (ModelReport)rcCode.getResultObject();

    TOrder objOrder = serOrder.fetch(orderId);
    if(null==objOrder) {
       Logs.get().warn(ResultCode.DATA_CAN_NOT_FOUND.getMessage());
       map.put("message",ResultCode.DATA_CAN_NOT_FOUND.getMessage());
       map.put("status", 0);
       return map;
    }

    ServiceRequirement objReq = serReq.fetch(objOrder.getSer_req_id());

// String docName=serUser.getRealNameById(objOrder.getSubmit_user());
User docUser=serUser.fetch(objOrder.getSubmit_user());

    map.put("status", 1);
    map.put("require", objReq);
    map.put("order", objOrder);
    map.put("user", docUser);
    map.put("report", report);

    return  map;
}   

3、执行成功后进入word.html

<!DOCTYPE html>





病案报告






<div class="report-box" id="reportBox">
    <div class="order-num">订单号:${(obj.order.order_num)!!}<span>制作完成时间:${(obj.order.make_complete_date?string("yyyy-MM-dd HH:mm:ss"))!!}</span></div>
    <img src="${base}/bg_server/css/img/text_bg.jpg">
    <div class="table-box">
       <table class="t1">
         <tbody>
          <tr><td class="b1">提交人</td><td>${(obj.user.real_name)!!}</td><td class="b1">提交机构</td><td>${(obj.user.hos_name)!}</td></tr>
          <tr><td class="b2">患者识别码</td><td>${obj.order.patient_r_code!"无"}</td><td class="b2">提交时间</td><td>${(obj.order.submit_date?string("yyyy-MM-dd HH:mm:ss"))!!}</td></tr>
          <tr><td class="b1">诊断名称</td><td>${(obj.require.diagnose_name)!!}</td><td class="b1">检查类型</td><td>${(obj.require.check_type?replace(';',''))!!}</td></tr>
          <tr><td class="b2">所属学科</td><td>${(obj.require.first_subject?replace(';',''))!!}<br>${(obj.require.second_subject?replace(';',''))!!}</td><td class="b2">需制作部位</td><td>${(obj.require.make_part?replace(';',''))!!}</td></tr>
         </tbody>
       </table>
       <div class="describe-box">
         <h2>制作需求描述</h2>
         <p>${(obj.require.require_desc)!!}</p>
       </div>
       <div class="describe-box">
         <h2>模型总览</h2>
         <div class="all-see-box clearfix">

          <#list obj.report.titlesList as title>
              <div class="branch-box">
                 <h2>${title!!}</h2>
                 <img src="${base}/rebuild/get_icon/${obj.report.uuid!!}/${title_index}">
              </div>
          </#list>
         </div>
       </div>
       <div class="describe-box">
         <h2>模型所见</h2>
         <p>${(obj.report.model_description)!!}</p>
       </div>
       <div class="describe-box">
         <h2>模型关键值</h2>
         <p>${(obj.report.model_key_values)!!}</p>
       </div>
       <p class="remind">本综述仅供参考,请以医师意见为准,请勿作为医学文书使用 </p>
    </div>
</div>
<div class="text-center" style="padding-bottom: 50px"><input type="button" class="btn btn-red" value="下载报告" onclick="printPage()" style="width: 200px"></div>
<script type="text/javascript" src="${base}/bg_server/js/jquery-migrate-1.1.0.min.js"></script>


4、问题是页面展示报异常如下:
FreeMarker template error!

Expression obj.order is undefined on line 26, column 76 in WEB-INF/views/bg_server/word.html.

The problematic instruction:

==> ${obj.order.patient_r_code!"无"} [on line 26, column 74 in WEB-INF/views/bg_server/word.html]

Java backtrace for programmers:

freemarker.core.InvalidReferenceException: Expression obj.order is undefined on line 26, column 76 in WEB-INF/views/bg_server/word.html.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.DefaultToExpression._getAsTemplateModel(DefaultToExpression.java:100)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:209)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:209)
at freemarker.core.Environment.process(Environment.java:189)
at freemarker.template.Template.process(Template.java:237)
at com.real.supporter.commons.ELFreemarkerView.render(ELFreemarkerView.java:85)
at org.nutz.mvc.impl.processor.ViewProcessor.process(ViewProcessor.java:66)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:33)
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:58)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.integration.shiro.NutShiroProcessor.process(NutShiroProcessor.java:126)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
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:44)
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:202)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)

网上有说:在数据库里允许为空。当字段里没有记录的时候,就出错了。但我的数据库是有记录的。

21 回复

第一步是:

    <#elseif order.status==59>
		            	<a href="${base}/model/check_model/${(order.uuid)!!}" class="btn-s btn-red mar-t-20" target="_blank">查看模型</a>
		                <a href="${base}/rebuild/view_report/${(order.uuid)!!}" class="btn-s btn-red mar-t-20" target="_blank">查看综述单</a>
		            	<input type="button"  name="btn_waiting_verify" class="btn-s btn-red mar-t-20" data-orderid="${(order.uuid)!!}" value="校验是否通过" />
		           

弄掉了

把其他部分的代码/html也重新贴一次

具体是哪些部分呢?
我用断点测试,发现点击查看按钮后,没进入module方法中

上述的全部代码和html/报错信息, 统统重新发一次, 没高亮完全不知道写啥

1、点击查看综述单:

<p>
		            <#if order.status==50>
		            	<input type="button"  name="btn_begin_make" class="btn-s btn-red mar-t-20" data-orderid="${(order.uuid)!!}" value="开始制作" />
		            <#elseif order.status==51>
		            	<input type="button"  name="btn_make_finished" class="btn-s btn-red mar-t-20" data-orderid="${(order.uuid)!!}" value="制作完成" />
		            
		            <#elseif order.status==59>
		            	<a href="${base}/model/check_model/${(order.uuid)!!}" class="btn-s btn-red mar-t-20" target="_blank">查看模型</a>
		                <a href="${base}/rebuild/view_report/${(order.uuid)!!}" class="btn-s btn-red mar-t-20" target="_blank">查看综述单</a>
		            	<input type="button"  name="btn_waiting_verify" class="btn-s btn-red mar-t-20" data-orderid="${(order.uuid)!!}" value="校验是否通过" />
		            
		           

2、进入rebuildModule.java

@At("/view_report/*")
	@Ok("efm:/WEB-INF/views/bg_server/word.html")
	@Fail("jsp:jsp.500")
	public Object viewReport(String orderId,String reportId,@Attr("user")User currentUser) throws Exception {
		Map<String, Object> map = new HashMap<String, Object>();
		
		if(Strings.isEmpty(orderId) || Strings.isEmpty(reportId)) {
			map.put("message", "传入的参数不能为空");
			map.put("status", 0);
			return map;
		}
		
		ResultCode rcCode = serReport.getModelReport(reportId);
		ModelReport report = (ModelReport)rcCode.getResultObject();
		
		TOrder objOrder = serOrder.fetch(orderId);
		if(null==objOrder) {
			Logs.get().warn(ResultCode.DATA_CAN_NOT_FOUND.getMessage());
			map.put("message",ResultCode.DATA_CAN_NOT_FOUND.getMessage());
			map.put("status", 0);
			return map;
		}
		
		ServiceRequirement objReq = serReq.fetch(objOrder.getSer_req_id());
//		String docName=serUser.getRealNameById(objOrder.getSubmit_user());
		User docUser=serUser.fetch(objOrder.getSubmit_user());
		
		map.put("status", 1);
		map.put("require", objReq);
		map.put("order", objOrder);
		map.put("user", docUser);
		map.put("report", report);
		
		return  map;
	}
	

3、执行成功之后,返回页面word.html


<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>病案报告</title> <link rel="stylesheet" href="${base}/bg_server/dist/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="${base}/bg_server/css/main.css"> <link rel="stylesheet" type="text/css" href="${base}/bg_server/css/user_index.css"> </head> <body> <!-- 隐藏域 --> <input type="hidden" value="${(obj.order.uuid)!!}" name="orderId"/> <div class="report-box" id="reportBox"> <div class="order-num">订单号:${(obj.order.order_num)!!}<span>制作完成时间:${(obj.order.make_complete_date?string("yyyy-MM-dd HH:mm:ss"))!!}</span></div> <img src="${base}/bg_server/css/img/text_bg.jpg"> <div class="table-box"> <table class="t1"> <tbody> <tr><td class="b1">提交人</td><td>${(obj.user.real_name)!!}</td><td class="b1">提交机构</td><td>${(obj.user.hos_name)!}</td></tr> <tr><td class="b2">患者识别码</td><td>${obj.order.patient_r_code!"无"}</td><td class="b2">提交时间</td><td>${(obj.order.submit_date?string("yyyy-MM-dd HH:mm:ss"))!!}</td></tr> <tr><td class="b1">诊断名称</td><td>${(obj.require.diagnose_name)!!}</td><td class="b1">检查类型</td><td>${(obj.require.check_type?replace(';',''))!!}</td></tr> <tr><td class="b2">所属学科</td><td>${(obj.require.first_subject?replace(';',''))!!}<br>${(obj.require.second_subject?replace(';',''))!!}</td><td class="b2">需制作部位</td><td>${(obj.require.make_part?replace(';',''))!!}</td></tr> </tbody> </table> <div class="describe-box"> <h2>制作需求描述</h2> <p>${(obj.require.require_desc)!!}</p> </div> <div class="describe-box"> <h2>模型总览</h2> <div class="all-see-box clearfix"> <#list obj.report.titlesList as title> <div class="branch-box"> <h2>${title!!}</h2> <img src="${base}/rebuild/get_icon/${obj.report.uuid!!}/${title_index}"> </div> </#list> </div> </div> <div class="describe-box"> <h2>模型所见</h2> <p>${(obj.report.model_description)!!}</p> </div> <div class="describe-box"> <h2>模型关键值</h2> <p>${(obj.report.model_key_values)!!}</p> </div> <p class="remind">本综述仅供参考,请以医师意见为准,请勿作为医学文书使用 </p> </div> </div> <div class="text-center" style="padding-bottom: 50px"><input type="button" class="btn btn-red" value="下载报告" onclick="printPage()" style="width: 200px"></div> <script type="text/javascript" src="${base}/bg_server/js/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="${base}/bg_server/js/jquery-migrate-1.1.0.min.js"></script> <script type="text/javascript" src="${base}/bg_server/js/jquery.jqprint-0.3.js"></script> <script type="text/javascript"> function printPage(){ $("#reportBox").jqprint(); } </script> </body> </html>

4、word页面实际展示报异常

FreeMarker template error!


Expression obj.order is undefined on line 26, column 76 in WEB-INF/views/bg_server/word.html.
The problematic instruction:
----------
==> ${obj.order.patient_r_code!"无"} [on line 26, column 74 in WEB-INF/views/bg_server/word.html]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression obj.order is undefined on line 26, column 76 in WEB-INF/views/bg_server/word.html.
	at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
	at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
	at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
	at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
	at freemarker.core.DefaultToExpression._getAsTemplateModel(DefaultToExpression.java:100)
	at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
	at freemarker.core.Expression.getStringValue(Expression.java:93)
	at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
	at freemarker.core.Environment.visit(Environment.java:209)
	at freemarker.core.MixedContent.accept(MixedContent.java:92)
	at freemarker.core.Environment.visit(Environment.java:209)
	at freemarker.core.Environment.process(Environment.java:189)
	at freemarker.template.Template.process(Template.java:237)
	at com.real.supporter.commons.ELFreemarkerView.render(ELFreemarkerView.java:85)
	at org.nutz.mvc.impl.processor.ViewProcessor.process(ViewProcessor.java:66)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:33)
	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:58)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.integration.shiro.NutShiroProcessor.process(NutShiroProcessor.java:126)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
	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:44)
	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:202)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
	at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
	at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
	at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
	at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
	at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
	at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Unknown Source)

map.put("order", objOrder); 你确定走到这一行了吗?

没有。我用断点测试,根本连rebuildModule方法都没进去

那obj.order是null也理所当然→_→

然后呢,大哥。那从哪儿下手,给点建议吧

还有,你看啊,这个页面跟刚才那个word.html基本一样,他也没进入Module方法,可是他居然获取到了数据,这是神马情况........


<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>病案报告</title> <link rel="stylesheet" href="${base}/bg_server/dist/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="${base}/bg_server/css/main.css"> <link rel="stylesheet" type="text/css" href="${base}/bg_server/css/user_index.css"> </head> <body> <form id="form_report" action="${base}/rebuild/report_submit" method="post" enctype='multipart/form-data'> <!-- 隐藏域 --> <input type="hidden" value="${(obj.order.uuid)!!}" name="orderId"/> <div class="report-box"> <div class="order-num">订单号:${(obj.order.order_num)!!}<span>制作完成时间:${(obj.order.make_complete_date?string("yyyy-MM-dd HH:mm:ss"))!!}</span></div> <img src="${base}/bg_server/css/img/text_bg.jpg"> <div class="table-box"> <table class="t1"> <tbody> <tr><td class="b1">提交人</td><td>${(obj.user.real_name)!!}</td><td class="b1">提交机构</td><td>${(obj.user.hos_name)!}</td></tr> <tr><td class="b2">患者识别码</td><td>${obj.order.patient_r_code!"无"}</td><td class="b2">提交时间</td><td>${(obj.order.submit_date?string("yyyy-MM-dd HH:mm:ss"))!!}</td></tr> <tr><td class="b1">诊断名称</td><td>${(obj.require.diagnose_name)!!}</td><td class="b1">检查类型</td><td>${(obj.require.check_type?replace(';',''))!!}</td></tr> <tr><td class="b2">所属学科</td><td>${(obj.require.first_subject?replace(';',''))!!}<br>${(obj.require.second_subject?replace(';',''))!!}</td><td class="b2">需制作部位</td><td>${(obj.require.make_part?replace(';',''))!!}</td></tr> </tbody> </table> <div class="describe-box"> <h2>制作需求描述</h2> <textarea readonly="readonly">${(obj.require.require_desc)!!}</textarea> </div> <div class="describe-box"> <h2>模型总览</h2> <div class="all-see-box clearfix" id="allSeeBox"> <div id="allSeeBox2"></div> <input type="button" class="addbox" id="addBox"> </div> </div> <div class="describe-box"> <h2>模型所见</h2> <textarea name="model_description" placeholder="例如:左侧后交通动脉局部动脉瘤,直径约为3.88mm"></textarea> </div> <div class="describe-box"> <h2>模型关键值</h2> <textarea name="model_key_values" placeholder="例如:动脉瘤瘤颈直径约为3.88mm,动脉瘤体积约为12.09mm³, 开口方向约为8点钟方向"></textarea> </div> <p class="remind">本综述仅供参考,请以医师意见为准,请勿作为医学文书使用 </p> </div> </div> <div class="text-center" style="padding-bottom: 50px"><input type="submit" class="btn btn-red" value="提交报告" style="width: 200px"></div> </form> </body> <script type="text/javascript" src="${base}/bg_server/js/jquery-1.11.1.min.js"></script> <script type="text/javascript"> jQuery(document).ready(function($) { var i = 0; $("#addBox").click(function(){ var html = ""; html +='<div class="branch-box border-n">' + '<div class="clearfix"><input type="text" class="form-control addtext" value="冠状位(全局)" name="titles"><div class="addbtn">选择<input type="file" multiple onclick="changeInput(this)" name="images"/></div></div>' + '<div class="img-box" id="img'+i+'"><input class="delete-btn" onclick="deleteImg(this)" type="button"></div>' + '</div>'; i++; $("#allSeeBox2").append(html); }); }); function deleteImg(obj){ $(obj).parent().parent().remove(); $(obj).css("display","none") } function changeInput(obj){ $(obj).change(function () { $(this).parent().css("display","none"); var fil = this.files; var obg = this.parentNode.parentNode.nextSibling.getAttribute("id"); console.log(obg); for (var i = 0; i < fil.length; i++) { reads(fil[i],obg); } $(this).parent().prev().css("width","435px"); $(".delete-btn").css("display","block") }); } function reads(fil,obg) { var reader = new FileReader(); reader.readAsDataURL(fil); reader.onload = function () { document.getElementById(obg).innerHTML += "<img src='" + reader.result + "'>"; }; } </script> </html>

你怎么知道没有进入口方法?

来自炫酷的 NutzCN

我在Module方法里打了一个断点,点击页面,断点处没有任何反应。

应该有日志打印吧

来自炫酷的 NutzCN

Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:264) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final]
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:228) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final]
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:207) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final]
	at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final]
	at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final]
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final]
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:207) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final]
	at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final]
	at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final]
	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:847) ~[hibernate-entitymanager-5.0.12.Final.jar:5.0.12.Final]
	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:874) ~[hibernate-entitymanager-5.0.12.Final.jar:5.0.12.Final]
	at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60) ~[spring-orm-4.3.12.RELEASE.jar:4.3.12.RELEASE]
	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:353) ~[spring-orm-4.3.12.RELEASE.jar:4.3.12.RELEASE]
	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:370) ~[spring-orm-4.3.12.RELEASE.jar:4.3.12.RELEASE]
	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:359) ~[spring-orm-4.3.12.RELEASE.jar:4.3.12.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687) ~[spring-beans-4.3.12.RELEASE.jar:4.3.12.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624) ~[spring-beans-4.3.12.RELEASE.jar:4.3.12.RELEASE]
	... 29 common frames omitted
Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
	at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:100) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final]
	at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:54) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final]
	at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final]
	at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final]
	at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final]
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:254) ~[hibernate-core-5.0.12.Final.jar:5.0.12.Final]
	... 45 common frames omitted

2017-12-26 15:08:21,906 DEBUG batch acquisition of 0 triggers - org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:276) 
2017-12-26 15:08:51,861 DEBUG batch acquisition of 0 triggers - org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:276) 
2017-12-26 15:09:03,465 DEBUG Found mapping for [GET] path=/toLogin : MainModule.toLogin(MainModule.java:84) - org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) 
2017-12-26 15:09:03,478 DEBUG Get TypeParams for self : com.real.supporter.models.bean.User - org.nutz.service.EntityService.<init>(EntityService.java:41) 
2017-12-26 15:09:03,516 DEBUG Could not find template in cache, creating new one; id=[elPath[zh_CN,UTF-8,parsed] ] - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
2017-12-26 15:09:03,516 DEBUG Compiling FreeMarker template elPath[zh_CN,UTF-8,parsed]  from freemarker.cache.StringTemplateLoader$StringTemplateSource@b271396c - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
emf render:/WEB-INF/views/login.html2017-12-26 15:09:03,561 DEBUG Could not find template in cache, creating new one; id=[WEB-INF/views/login.html[zh_CN,UTF-8,parsed] ] - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
2017-12-26 15:09:03,561 DEBUG Compiling FreeMarker template WEB-INF/views/login.html[zh_CN,UTF-8,parsed]  from G:\apache-tomcat-7.0.82\webapps\readitec_supporter\WEB-INF\views\login.html - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
2017-12-26 15:09:04,690 DEBUG Found mapping for [POST] path=/doLogin : MainModule.doLogin(MainModule.java:93) - org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) 
2017-12-26 15:09:04,771 DEBUG Looked up AuthenticationInfo [real] from doGetAuthenticationInfo - org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:569) 
2017-12-26 15:09:04,772 DEBUG AuthenticationInfo caching is disabled for info [real].  Submitted token: [org.apache.shiro.authc.UsernamePasswordToken - real, rememberMe=false]. - org.apache.shiro.realm.AuthenticatingRealm.cacheAuthenticationInfoIfPossible(AuthenticatingRealm.java:507) 
2017-12-26 15:09:04,773 DEBUG Performing credentials equality check for tokenCredentials of type [[C and accountCredentials of type [java.lang.String] - org.apache.shiro.authc.credential.SimpleCredentialsMatcher.equals(SimpleCredentialsMatcher.java:95) 
2017-12-26 15:09:04,773 DEBUG Both credentials arguments can be easily converted to byte arrays.  Performing array equals comparison - org.apache.shiro.authc.credential.SimpleCredentialsMatcher.equals(SimpleCredentialsMatcher.java:101) 
2017-12-26 15:09:04,773 DEBUG Authentication successful for token [org.apache.shiro.authc.UsernamePasswordToken - real, rememberMe=false].  Returned account [real] - org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:233) 
2017-12-26 15:09:04,773 DEBUG No SecurityManager available in subject context map.  Falling back to SecurityUtils.getSecurityManager() lookup. - org.apache.shiro.subject.support.DefaultSubjectContext.resolveSecurityManager(DefaultSubjectContext.java:102) 
2017-12-26 15:09:04,773 DEBUG Context already contains a session.  Returning. - org.apache.shiro.mgt.DefaultSecurityManager.resolveSession(DefaultSecurityManager.java:436) 
2017-12-26 15:09:04,774 DEBUG No SecurityManager available in subject context map.  Falling back to SecurityUtils.getSecurityManager() lookup. - org.apache.shiro.subject.support.DefaultSubjectContext.resolveSecurityManager(DefaultSubjectContext.java:102) 
2017-12-26 15:09:04,774 DEBUG Added HttpServletResponse Cookie [rememberMe=deleteMe; Path=/readitec_supporter; Max-Age=0; Expires=Mon, 25-Dec-2017 07:09:04 GMT] - org.apache.shiro.web.servlet.SimpleCookie.addCookieHeader(SimpleCookie.java:226) 
2017-12-26 15:09:04,775 DEBUG AuthenticationToken did not indicate RememberMe is requested.  RememberMe functionality will not be executed for corresponding account. - org.apache.shiro.mgt.AbstractRememberMeManager.onSuccessfulLogin(AbstractRememberMeManager.java:290) 
2017-12-26 15:09:04,782 DEBUG No authorizationCache instance set.  Checking for a cacheManager... - org.apache.shiro.realm.AuthorizingRealm.getAuthorizationCacheLazy(AuthorizingRealm.java:234) 
2017-12-26 15:09:04,783  INFO No cache or cacheManager properties have been set.  Authorization cache cannot be obtained. - org.apache.shiro.realm.AuthorizingRealm.getAuthorizationCacheLazy(AuthorizingRealm.java:248) 
2017-12-26 15:09:04,783  INFO userId:real - com.real.supporter.shiro.NutDaoRealm.doGetAuthorizationInfo(NutDaoRealm.java:50) 
2017-12-26 15:09:04,792 DEBUG Found mapping for [GET] path=/real/list : RealCenterModule.list(RealCenterModule.java:69) - org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) 
2017-12-26 15:09:04,799 DEBUG Get TypeParams for self : com.real.supporter.models.bean.TOrder - org.nutz.service.EntityService.<init>(EntityService.java:41) 
2017-12-26 15:09:04,802 DEBUG Get TypeParams for self : com.real.supporter.models.bean.OrderApprove - org.nutz.service.EntityService.<init>(EntityService.java:41) 
2017-12-26 15:09:04,808 DEBUG Get TypeParams for self : com.real.supporter.models.bean.ModelMakeOrder - org.nutz.service.EntityService.<init>(EntityService.java:41) 
2017-12-26 15:09:04,812 DEBUG Get TypeParams for self : com.real.supporter.models.bean.ModelMakeOrder - org.nutz.service.EntityService.<init>(EntityService.java:41) 
2017-12-26 15:09:04,950 DEBUG Could not find template in cache, creating new one; id=[elPath[zh_CN,UTF-8,parsed] ] - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
2017-12-26 15:09:04,950 DEBUG Compiling FreeMarker template elPath[zh_CN,UTF-8,parsed]  from freemarker.cache.StringTemplateLoader$StringTemplateSource@b271396c - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
emf render:/WEB-INF/views/realcenter/real_orderlist.html2017-12-26 15:09:04,950 DEBUG Could not find template in cache, creating new one; id=[WEB-INF/views/realcenter/real_orderlist.html[zh_CN,UTF-8,parsed] ] - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
2017-12-26 15:09:04,951 DEBUG Compiling FreeMarker template WEB-INF/views/realcenter/real_orderlist.html[zh_CN,UTF-8,parsed]  from G:\apache-tomcat-7.0.82\webapps\readitec_supporter\WEB-INF\views\realcenter\real_orderlist.html - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
2017-12-26 15:09:04,998 DEBUG Could not find template in cache, creating new one; id=[navigation/real_header.html[zh_CN,UTF-8,parsed] ] - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
2017-12-26 15:09:04,999 DEBUG Compiling FreeMarker template navigation/real_header.html[zh_CN,UTF-8,parsed]  from G:\apache-tomcat-7.0.82\webapps\readitec_supporter\navigation\real_header.html - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
2017-12-26 15:09:05,003 DEBUG Could not find template in cache, creating new one; id=[navigation/real_left.html[zh_CN,UTF-8,parsed] ] - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
2017-12-26 15:09:05,003 DEBUG Compiling FreeMarker template navigation/real_left.html[zh_CN,UTF-8,parsed]  from G:\apache-tomcat-7.0.82\webapps\readitec_supporter\navigation\real_left.html - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
2017-12-26 15:09:05,036 DEBUG Could not find template in cache, creating new one; id=[navigation/real_footer.html[zh_CN,UTF-8,parsed] ] - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
2017-12-26 15:09:05,045 DEBUG Compiling FreeMarker template navigation/real_footer.html[zh_CN,UTF-8,parsed]  from G:\apache-tomcat-7.0.82\webapps\readitec_supporter\navigation\real_footer.html - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
2017-12-26 15:09:06,624 DEBUG Found mapping for [GET] path=/rebuild/view_report/54b73c74ddc24f4888b4c1f71086db56 : RebuildModule.viewReport(RebuildModule.java:436) - org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) 
2017-12-26 15:09:06,637 DEBUG Get TypeParams for self : com.real.supporter.models.bean.ModelReport - org.nutz.service.EntityService.<init>(EntityService.java:41) 
2017-12-26 15:09:06,639 DEBUG Could not find template in cache, creating new one; id=[elPath[zh_CN,UTF-8,parsed] ] - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
2017-12-26 15:09:06,640 DEBUG Compiling FreeMarker template elPath[zh_CN,UTF-8,parsed]  from freemarker.cache.StringTemplateLoader$StringTemplateSource@b271396c - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
emf render:/WEB-INF/views/bg_server/word.html2017-12-26 15:09:06,641 DEBUG Could not find template in cache, creating new one; id=[WEB-INF/views/bg_server/word.html[zh_CN,UTF-8,parsed] ] - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
2017-12-26 15:09:06,641 DEBUG Compiling FreeMarker template WEB-INF/views/bg_server/word.html[zh_CN,UTF-8,parsed]  from G:\apache-tomcat-7.0.82\webapps\readitec_supporter\WEB-INF\views\bg_server\word.html - freemarker.log.Log4JLoggerFactory$Log4JLogger.debug(Log4JLoggerFactory.java:81) 
2017-12-26 15:09:06,645 ERROR  - freemarker.log.Log4JLoggerFactory$Log4JLogger.error(Log4JLoggerFactory.java:96) 

Expression obj.order is undefined on line 26, column 76 in WEB-INF/views/bg_server/word.html.
The problematic instruction:
----------
==> ${obj.order.patient_r_code!"无"} [on line 26, column 74 in WEB-INF/views/bg_server/word.html]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression obj.order is undefined on line 26, column 76 in WEB-INF/views/bg_server/word.html.
	at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
	at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
	at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
	at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
	at freemarker.core.DefaultToExpression._getAsTemplateModel(DefaultToExpression.java:100)
	at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
	at freemarker.core.Expression.getStringValue(Expression.java:93)
	at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
	at freemarker.core.Environment.visit(Environment.java:209)
	at freemarker.core.MixedContent.accept(MixedContent.java:92)
	at freemarker.core.Environment.visit(Environment.java:209)
	at freemarker.core.Environment.process(Environment.java:189)
	at freemarker.template.Template.process(Template.java:237)
	at com.real.supporter.commons.ELFreemarkerView.render(ELFreemarkerView.java:85)
	at org.nutz.mvc.impl.processor.ViewProcessor.process(ViewProcessor.java:66)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:33)
	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:58)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.integration.shiro.NutShiroProcessor.process(NutShiroProcessor.java:126)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
	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:44)
	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:202)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
	at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
	at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
	at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
	at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
	at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
	at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Unknown Source)
2017-12-26 15:09:06,647  WARN Error@/rebuild/view_report/54b73c74ddc24f4888b4c1f71086db56 : - org.nutz.mvc.impl.processor.FailProcessor.process(FailProcessor.java:28) 

大哥,昨天这个问题有头绪嘛。我发现页面从后台获取数据时,用断点测试根本没反应,不管是他获取到了还是没有获取到。。。。

你看错入口方法了吧

来自炫酷的 NutzCN

我也希望是我看错了,我刚刚把后台方法删了,再点击就报404.说明那个就是他的方法。但我复原了再用断点测试,还是没进去就获取了数据。这这这。。。。。

在MethodInvokeProcessor开始打断点吧

来自炫酷的 NutzCN

MethodInvokeProcessor在那个Java类里面?没查到

org.nutz.mvc.impl.processor.MethodInvokeProcessor

用了jrebel之类的东西??

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