2019-04-26 12:59:31.688 INFO 11188 --- [p-nio-80-exec-2] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2019-04-26 12:59:31.688 INFO 11188 --- [p-nio-80-exec-2] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2019-04-26 12:59:31.693 INFO 11188 --- [p-nio-80-exec-2] o.s.web.servlet.DispatcherServlet : Completed initialization in 5 ms
2019-04-26 12:59:31.994 ERROR 11188 --- [p-nio-80-exec-2] org.thymeleaf.TemplateEngine : [THYMELEAF][http-nio-80-exec-2] Exception processing template "index": An error happened during template parsing (template: "class path resource [templates/index.html]")
org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/index.html]")
2019-04-26 12:59:32.001 ERROR 11188 --- [p-nio-80-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/index.html]")] with root cause
org.springframework.expression.spel.SpelEvaluationException: EL1012E: Cannot index into a null value
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<title>车联网监测系统</title>
<meta name="keywords" content="车联网监测系统">
<meta name="description" content="车联网监测系统">
<!--[if lt IE 9]>
<meta http-equiv="refresh" content="0;ie.html"/>
<![endif]-->
</head>
<link th:href="@{/css/bootstrap.css}" rel="stylesheet"/>
<link th:href="@{/css/base.css}" rel="stylesheet"/>
<link th:href="@{/css/index.css}" rel="stylesheet"/>
<style>
.t_title {
width: 100%;
height: 100%;
text-align: center;
font-size: 2.5em;
line-height: 80px;
color: #fff;
}
#chart_map {
cursor: pointer;
}
.t_show {
position: absolute;
top: 0;
right: 0;
border-radius: 2px;
background: #2C58A6;
padding: 2px 5px;
color: #fff;
cursor: pointer;
}
</style>
<body>
<div>
<div class="header">
<div class="bg_header">
<div class="header_nav fl t_title">
车辆运行监测系统
</div>
</div>
</div>
<div class="data_content">
<div class="data_main" >
<div class="main_left fl" style="height: 610px;" >
<div class="left_1 " style="height: 100%;" >
<!--左上边框-->
<div class="t_line_box">
<i class="t_l_line"></i>
<i class="l_t_line"></i>
</div>
<!--右上边框-->
<div class="t_line_box">
<i class="t_r_line"></i>
<i class="r_t_line"></i>
</div>
<!--左下边框-->
<div class="t_line_box">
<i class="l_b_line"></i>
<i class="b_l_line"></i>
</div>
<!--右下边框-->
<div class="t_line_box">
<i class="r_b_line"></i>
<i class="b_r_line"></i>
</div>
<div class="main_title">
<img src="img/t_1.png" alt=""> 所有车辆信息
</div>
<div style="width:100%;height: 100%;">
<div style="width: 100%;margin-top: 20%;text-align: center;" th:each="data:${list}" >
<a th:onclick="'javascript:select('+${data.id}+');'"> <p style="color: #0BFA00;font-size: 20px;" >[[${data.name}]]</p></a>
</div>
</div>
</div>
</div>
<div class="main_center fl">
<div class="center_text">
<!--左上边框-->
<div class="t_line_box">
<i class="t_l_line"></i>
<i class="l_t_line"></i>
</div>
<!--右上边框-->
<div class="t_line_box">
<i class="t_r_line"></i>
<i class="r_t_line"></i>
</div>
<!--左下边框-->
<div class="t_line_box">
<i class="l_b_line"></i>
<i class="b_l_line"></i>
</div>
<!--右下边框-->
<div class="t_line_box">
<i class="r_b_line"></i>
<i class="b_r_line"></i>
</div>
<div class="main_title">
<img src="img/t_3.png" alt="">车辆运行轨迹图
</div>
<div id="chart_map" style="width:100%;height:610px;"></div>
</div>
</div>
<div class="main_right fr" style="height: 610px;">
<div class="right_1" style="height: 100%;">
<!--左上边框-->
<div class="t_line_box">
<i class="t_l_line"></i>
<i class="l_t_line"></i>
</div>
<!--右上边框-->
<div class="t_line_box">
<i class="t_r_line"></i>
<i class="r_t_line"></i>
</div>
<!--左下边框-->
<div class="t_line_box">
<i class="l_b_line"></i>
<i class="b_l_line"></i>
</div>
<!--右下边框-->
<div class="t_line_box">
<i class="r_b_line"></i>
<i class="b_r_line"></i>
</div>
<div class="main_title">
<img src="img/t_4.png" alt="">车辆运行信息
</div>
<div id="chart_3" class="echart t_btn7" style="width:100%;height: 100%;text-align: center;font-size: 13px;color: #0BFA00;" >
<p><span style="color: white">急转弯次数:</span><span id="sharpturntime">[[${list[0].sharpturntime}]]</span>
<span style="color: white">ESC防侧翻是否被激活:</span><span id="escantirollover">[[${list[0].escantirollover}]]</span></p>
<p><span style="color: white">ESC方向控制是否激活:</span><span id="escdirectionalcontrol">[[${list[0].escdirectionalcontrol}]]</span><span style="color: white">侧向加速度:</span><span id="lateralacceleration">[[${list[0].lateralacceleration}]]</span></p>
<p><span style="color: white">纵向加速度:</span><span id="forwardacceleration">[[${list[0].forwardacceleration}]]</span><span style="color: white">制动踏板深度:</span><span id="footstepdepth">[[${list[0].footstepdepth}]]</span></p>
<p><span style="color: white">与前车距离:</span><span id="distancefrontcar">[[${list[0].distancefrontcar}]]</span><span style="color: white">前车速度:</span><span id="frontcarspeed">[[${list[0].frontcarspeed}]]</span></p>
<p><span style="color: white">与前车碰撞时间:</span><span id="collidetime">[[${list[0].collidetime}]]</span><span style="color: white">acc是否被激活:</span><span id="accflag">[[${list[0].accflag}]]</span></p>
<p><span style="color: white">aebss给ebs发制动信号:</span><span id="aebstoebs">[[${list[0].aebstoebs}]]</span><span style="color: white">车道压线次数:</span><span id="lanepressline">[[${list[0].lanepressline}]]</span></p>
<p><span style="color: white">显示是否换挡:</span><span id="shift">[[${list[0].shift}]]</span><span style="color: white">车辆行驶高度:</span><span id="carheight">[[${list[0].carheight}]]</span></p>
<p><span style="color: white">牵引车重:</span><span id="carweight">[[${list[0].carweight}]]</span><span style="color: white">挂车防侧翻功能是否被启动:</span><span id="rss">[[${list[0].rss}]]</span></p>
<p><span style="color: white">车速:</span><span id="carspeed">[[${list[0].carspeed}]]</span></p>
<p><span style="color: white">车辆载重:</span><span id="carload">[[${list[0].carload}]]</span></p>
<p><span style="color: white">货物重量:</span><span id="cargoweight">[[${list[0].cargoweight}]]</span></p>
<p><span style="color: white">挂车是否被锁定:</span><span id="islock">[[${list[0].islock}]]</span></p>
<p><span style="color: white">tesbs是否正常(红黄绿):</span><span id="tebsnormal">[[${list[0].tebsnormal}]]</span></p>
<p><span style="color: white">tebs错误代码:</span><span id="tebserr">[[${list[0].tebserr}]]</span></p>
<p><span style="color: white">胎温胎压:</span><span id="temppre">[[${list[0].temppre}]]</span></p>
<p><span style="color: white">车尾防撞系统是否被激活:</span><span id="trailcrashproof">[[${list[0].trailcrashproof}]]</span></p>
<p><span style="color: white">紧急刹车提醒是否被激活:</span><span id="brakewarn">[[${list[0].brakewarn}]]</span></p>
<p><span style="color: white">车辆保修提醒:</span><span id="repairremind">[[${list[0].repairremind}]]</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
<script th:src="@{js/bootstrap.min.js}"></script>
<script th:src="@{js/common.js}"></script>
<script th:src="@{js/echarts.min.js}"></script>
<script th:src="@{js/dataTool.js}"></script>
<script th:src="@{js/index.js}"></script>
<script th:src="@{js/china.js}"></script>
<script th:src="@{js/hunan.js}"></script>
<!--<script>-->
<!--// var list = [[${list}]];-->
<!--function rawGnssList () {-->
<!--$.ajax({-->
<!--cache: true,-->
<!--type: "POST",-->
<!--url: "/abc",-->
<!--success: function (ret) {-->
<!--alert(ret);-->
<!--var data = JSON.stringify(ret);-->
<!--alert(dat[0].iD);-->
<!--}-->
<!--});-->
<!--}-->
<!--</script>-->
<script th:inline="javascript">
function select(id){
var list = [[${list}]];
var carinfo1 = list[id-1];
document.getElementById("cargoweight").innerHTML=carinfo1.cargoweight;
document.getElementById("islock").innerHTML=carinfo1.islock;
document.getElementById("tebsnormal").innerHTML=carinfo1.tebsnormal;
document.getElementById("tebserr").innerHTML=carinfo1.tebserr;
document.getElementById("temppre").innerHTML=carinfo1.temppre;
document.getElementById("trailcrashproof").innerHTML=carinfo1.trailcrashproof;
document.getElementById("brakewarn").innerHTML=carinfo1.brakewarn;
document.getElementById("repairremind").innerHTML=carinfo1.repairremind;
document.getElementById("sharpturntime").innerHTML=carinfo1.sharpturntime;
document.getElementById("escantirollover").innerHTML=carinfo1.escantirollover;
document.getElementById("escdirectionalcontrol").innerHTML=carinfo1.escdirectionalcontrol;
document.getElementById("lateralacceleration").innerHTML=carinfo1.lateralacceleration;
document.getElementById("forwardacceleration").innerHTML=carinfo1.forwardacceleration;
document.getElementById("footstepdepth").innerHTML=carinfo1.footstepdepth;
document.getElementById("distancefrontcar").innerHTML=carinfo1.distancefrontcar;
document.getElementById("frontcarspeed").innerHTML=carinfo1.frontcarspeed;
document.getElementById("collidetime").innerHTML=carinfo1.collidetime;
document.getElementById("accflag").innerHTML=carinfo1.accflag;
document.getElementById("aebstoebs").innerHTML=carinfo1.aebstoebs;
document.getElementById("lanepressline").innerHTML=carinfo1.lanepressline;
document.getElementById("shift").innerHTML=carinfo1.shift;
document.getElementById("carheight").innerHTML=carinfo1.carheight;
document.getElementById("carweight").innerHTML=carinfo1.carweight;
document.getElementById("rss").innerHTML=carinfo1.rss;
document.getElementById("carspeed").innerHTML=carinfo1.carspeed;
document.getElementById("carload").innerHTML=carinfo1.carload;
document.getElementById("laterala").innerHTML=carinfo1.laterala;
}
</script>
</body>
</html>