博客报错了 (解决办法)

系列文章目录

往期文章
 第一章:日常_JAVA_面试题集1(含答案)
 第二章:日常_JAVA_面试题集2(含答案)
 第三章:日常_JAVA_面试题集3(含答案)
 第四章:日常_JAVA_面试题集4(含答案)
 第四章:日常_JAVA_面试题集8(含答案)
 往期文章大全……


@[TOC](博客报错了)

前言

提示:这里可以添加本文要记录的大概内容:
例如:随着人工智能的不断发展,机器学习这门技术也越来越重要,很多人都开启了学习机器学习,本文就介绍了机器学习的基础内容。


提示:以下是本篇文章正文内容,下面案例可供参考

一、博客报错了

FreeMarker template error (DEBUG mode; use RETHROW in production!): The following has evaluated to null or missing: ==> data [in template “pc/template/header.ftl” at line 3, column 30] ---- Tip: If the failing expression is known to legally refer to something that’s sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign blogModelDataInfo = data [in template “pc/template/header.ftl” at line 3, column 1] - Reached through: #include “…/template/header.ftl” par… [in template “pc/detail/index.ftl” at line 2, column 1] ---- Java stack trace (for programmers): ---- freemarker.core.InvalidReferenceException: [… Exception message was already printed; see it above …] at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134) at freemarker.core.Assignment.accept(Assignment.java:139) at freemarker.core.Environment.visit(Environment.java:331) at freemarker.core.Environment.visit(Environment.java:337) at freemarker.core.Environment.include(Environment.java:2694) at freemarker.core.Include.accept(Include.java:171) at freemarker.core.Environment.visit(Environment.java:331) at freemarker.core.Environment.visit(Environment.java:337) at freemarker.core.Environment.process(Environment.java:310) at freemarker.template.Template.process(Template.java:383) at org.springframework.web.servlet.view.freemarker.FreeMarkerView.processTemplate(FreeMarkerView.java:391) at org.springframework.web.servlet.view.freemarker.FreeMarkerView.doRender(FreeMarkerView.java:304) at org.springframework.web.servlet.view.freemarker.FreeMarkerView.renderMergedTemplateModel(FreeMarkerView.java:255) at org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputModel(AbstractTemplateView.java:179) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:316) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1373) at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1118) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1057) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) at javax.servlet.http.HttpServlet.service(HttpServlet.java:503) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) at javax.servlet.http.HttpServlet.service(HttpServlet.java:590) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:760) at org.eclipse.jetty.servlet.ServletHandler C a c h e d C h a i n . d o F i l t e r ( S e r v l e t H a n d l e r . j a v a : 1617 ) a t o r g . e c l i p s e . j e t t y . w e b s o c k e t . s e r v e r . W e b S o c k e t U p g r a d e F i l t e r . d o F i l t e r ( W e b S o c k e t U p g r a d e F i l t e r . j a v a : 226 ) a t o r g . e c l i p s e . j e t t y . s e r v l e t . S e r v l e t H a n d l e r CachedChain.doFilter(ServletHandler.java:1617) at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226) at org.eclipse.jetty.servlet.ServletHandler CachedChain.doFilter(ServletHandler.java:1617)atorg.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226)atorg.eclipse.jetty.servlet.ServletHandlerCachedChain.doFilter(ServletHandler.java:1604) at net.csdn.blog.web.filter.CorsFilter.doFilter(CorsFilter.java:52) at org.eclipse.jetty.servlet.ServletHandler C a c h e d C h a i n . d o F i l t e r ( S e r v l e t H a n d l e r . j a v a : 1596 ) a t o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . R e q u e s t C o n t e x t F i l t e r . d o F i l t e r I n t e r n a l ( R e q u e s t C o n t e x t F i l t e r . j a v a : 100 ) a t o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 119 ) a t o r g . e c l i p s e . j e t t y . s e r v l e t . S e r v l e t H a n d l e r CachedChain.doFilter(ServletHandler.java:1596) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) at org.eclipse.jetty.servlet.ServletHandler CachedChain.doFilter(ServletHandler.java:1596)atorg.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)atorg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)atorg.eclipse.jetty.servlet.ServletHandlerCachedChain.doFilter(ServletHandler.java:1604) at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) at org.eclipse.jetty.servlet.ServletHandler C a c h e d C h a i n . d o F i l t e r ( S e r v l e t H a n d l e r . j a v a : 1604 ) a t o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . C h a r a c t e r E n c o d i n g F i l t e r . d o F i l t e r I n t e r n a l ( C h a r a c t e r E n c o d i n g F i l t e r . j a v a : 201 ) a t o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 119 ) a t o r g . e c l i p s e . j e t t y . s e r v l e t . S e r v l e t H a n d l e r CachedChain.doFilter(ServletHandler.java:1604) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) at org.eclipse.jetty.servlet.ServletHandler CachedChain.doFilter(ServletHandler.java:1604)atorg.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)atorg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)atorg.eclipse.jetty.servlet.ServletHandlerCachedChain.doFilter(ServletHandler.java:1604) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:590) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1607) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1297) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1577) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1212) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:500) at org.eclipse.jetty.server.HttpChannel.lambda$handle 1 ( H t t p C h a n n e l . j a v a : 383 ) a t o r g . e c l i p s e . j e t t y . s e r v e r . H t t p C h a n n e l . d i s p a t c h ( H t t p C h a n n e l . j a v a : 547 ) a t o r g . e c l i p s e . j e t t y . s e r v e r . H t t p C h a n n e l . h a n d l e ( H t t p C h a n n e l . j a v a : 375 ) a t o r g . e c l i p s e . j e t t y . s e r v e r . H t t p C o n n e c t i o n . o n F i l l a b l e ( H t t p C o n n e c t i o n . j a v a : 270 ) a t o r g . e c l i p s e . j e t t y . i o . A b s t r a c t C o n n e c t i o n 1(HttpChannel.java:383) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270) at org.eclipse.jetty.io.AbstractConnection 1(HttpChannel.java:383)atorg.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)atorg.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)atorg.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270)atorg.eclipse.jetty.io.AbstractConnectionReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) at org.eclipse.jetty.io.ChannelEndPoint 2. r u n ( C h a n n e l E n d P o i n t . j a v a : 117 ) a t o r g . e c l i p s e . j e t t y . u t i l . t h r e a d . s t r a t e g y . E a t W h a t Y o u K i l l . r u n T a s k ( E a t W h a t Y o u K i l l . j a v a : 336 ) a t o r g . e c l i p s e . j e t t y . u t i l . t h r e a d . s t r a t e g y . E a t W h a t Y o u K i l l . d o P r o d u c e ( E a t W h a t Y o u K i l l . j a v a : 313 ) a t o r g . e c l i p s e . j e t t y . u t i l . t h r e a d . s t r a t e g y . E a t W h a t Y o u K i l l . t r y P r o d u c e ( E a t W h a t Y o u K i l l . j a v a : 171 ) a t o r g . e c l i p s e . j e t t y . u t i l . t h r e a d . s t r a t e g y . E a t W h a t Y o u K i l l . r u n ( E a t W h a t Y o u K i l l . j a v a : 129 ) a t o r g . e c l i p s e . j e t t y . u t i l . t h r e a d . R e s e r v e d T h r e a d E x e c u t o r 2.run(ChannelEndPoint.java:117) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) at org.eclipse.jetty.util.thread.ReservedThreadExecutor 2.run(ChannelEndPoint.java:117)atorg.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)atorg.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)atorg.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)atorg.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)atorg.eclipse.jetty.util.thread.ReservedThreadExecutorReservedThread.run(ReservedThreadExecutor.java:388) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938) at java.lang.Thread.run(Thread.java:748)

二、解决办法

刷新页面

你可能感兴趣的:(java,csdn)