freemarker.template.TemplateModelException: Method public java.lang.String com.abbcc.springrest.controller.user.site.piece.HeadBelowPiece.pieceHunkNews() threw an exception when invoked on com.abbcc.springrest.controller.user.site.SiteStaticController@758c7686

chinaqianxi.com | 4 months ago
  1. 0

    6000W big power,lithium battery, electric scooter TD755Z

    chinaqianxi.com | 1 year ago
    freemarker.template.TemplateModelException: Method public java.lang.String com.abbcc.springrest.controller.user.site.piece.HeadBelowPiece.pieceHunkNews() threw an exception when invoked on com.abbcc.springrest.controller.user.site.SiteStaticController@758c7686
  2. 0

    Electric foldable bike TDE122Z|brushless motor electric bike|foldable ebike|electric scooter 1000w 48v|reclining electric wheelchair

    chinaqianxi.com | 4 months ago
    freemarker.template.TemplateModelException: Method public java.lang.String com.abbcc.springrest.controller.user.site.piece.HeadBelowPiece.pieceHunkNews() threw an exception when invoked on com.abbcc.springrest.controller.user.site.SiteStaticController@758c7686
  3. 0

    The 114th Canton Fair in Guangzhou China

    chinaqianxi.com | 1 year ago
    freemarker.template.TemplateModelException: Method public java.lang.String com.abbcc.springrest.controller.user.site.piece.HeadBelowPiece.pieceHunkNews() threw an exception when invoked on com.abbcc.springrest.controller.user.site.SiteStaticController@9ef7232
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    easthardware.net | 1 year ago
    freemarker.template.TemplateModelException: Method public java.lang.String com.abbcc.springrest.controller.user.site.piece.HeadBelowPiece.pieceHunkNews() threw an exception when invoked on com.abbcc.springrest.controller.user.site.SiteStaticController@9ef7232
  6. 0

    How to fix the ERROR [[jsp]] Servlet.service() for servlet jsp threw exception?

    Stack Overflow | 2 years ago | balaguru
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1

  1. richard77 2 times, last 15 hours ago
  2. kjhdofjosvs 2 times, last 5 days ago
  3. archenroot 17 times, last 2 weeks ago
  4. Alexandru Popa 2 times, last 3 weeks ago
  5. poroszd 3 times, last 4 weeks ago
18 more registered users
58 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.StringIndexOutOfBoundsException

    String index out of range: -1

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1911)
    1 frame
  3. com.abbcc.models
    AbcNews.getPicUrl5
    1. com.abbcc.models.AbcNews.picUrl(AbcNews.java:542)
    2. com.abbcc.models.AbcNews.getPicUrl5(AbcNews.java:531)
    2 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor2682.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:606)
    3 frames
  5. Apache Commons BeanUtils
    PropertyUtils.getProperty
    1. org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:2155)
    2. org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1323)
    3. org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:762)
    4. org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:837)
    5. org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:426)
    5 frames
  6. json-lib
    JSONArray.fromObject
    1. net.sf.json.JSONObject._fromBean(JSONObject.java:918)
    2. net.sf.json.JSONObject.fromObject(JSONObject.java:168)
    3. net.sf.json.AbstractJSON._processValue(AbstractJSON.java:265)
    4. net.sf.json.JSONArray._processValue(JSONArray.java:2514)
    5. net.sf.json.JSONArray.processValue(JSONArray.java:2539)
    6. net.sf.json.JSONArray.addValue(JSONArray.java:2526)
    7. net.sf.json.JSONArray._fromCollection(JSONArray.java:1057)
    8. net.sf.json.JSONArray.fromObject(JSONArray.java:123)
    9. net.sf.json.JSONArray.fromObject(JSONArray.java:105)
    9 frames
  7. com.abbcc.springrest
    HeadBelowPiece.pieceHunkNews
    1. com.abbcc.springrest.controller.user.site.piece.HeadBelowPiece.getNewsListByCategory(HeadBelowPiece.java:591)
    2. com.abbcc.springrest.controller.user.site.piece.HeadBelowPiece.pieceHunkNews(HeadBelowPiece.java:542)
    2 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor2670.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:606)
    3 frames
  9. FreeMarker
    Template.process
    1. freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:835)
    2. freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:106)
    3. freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
    4. freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
    5. freemarker.core.Expression.getStringValue(Expression.java:93)
    6. freemarker.core.DollarVariable.accept(DollarVariable.java:76)
    7. freemarker.core.Environment.visit(Environment.java:208)
    8. freemarker.core.MixedContent.accept(MixedContent.java:92)
    9. freemarker.core.Environment.visit(Environment.java:208)
    10. freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
    11. freemarker.core.Environment.visit(Environment.java:208)
    12. freemarker.core.MixedContent.accept(MixedContent.java:92)
    13. freemarker.core.Environment.visit(Environment.java:208)
    14. freemarker.core.Environment.include(Environment.java:1477)
    15. freemarker.core.Include.accept(Include.java:169)
    16. freemarker.core.Environment.visit(Environment.java:208)
    17. freemarker.core.MixedContent.accept(MixedContent.java:92)
    18. freemarker.core.Environment.visit(Environment.java:208)
    19. freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
    20. freemarker.core.Environment.visit(Environment.java:415)
    21. freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
    22. freemarker.core.Environment.visit(Environment.java:208)
    23. freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
    24. freemarker.core.Environment.visit(Environment.java:208)
    25. freemarker.core.MixedContent.accept(MixedContent.java:92)
    26. freemarker.core.Environment.visit(Environment.java:208)
    27. freemarker.core.Environment.include(Environment.java:1477)
    28. freemarker.core.Include.accept(Include.java:169)
    29. freemarker.core.Environment.visit(Environment.java:208)
    30. freemarker.core.MixedContent.accept(MixedContent.java:92)
    31. freemarker.core.Environment.visit(Environment.java:208)
    32. freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
    33. freemarker.core.Environment.visit(Environment.java:415)
    34. freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
    35. freemarker.core.Environment.visit(Environment.java:208)
    36. freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
    37. freemarker.core.Environment.visit(Environment.java:208)
    38. freemarker.core.MixedContent.accept(MixedContent.java:92)
    39. freemarker.core.Environment.visit(Environment.java:208)
    40. freemarker.core.Environment.include(Environment.java:1477)
    41. freemarker.core.Include.accept(Include.java:169)
    42. freemarker.core.Environment.visit(Environment.java:208)
    43. freemarker.core.MixedContent.accept(MixedContent.java:92)
    44. freemarker.core.Environment.visit(Environment.java:208)
    45. freemarker.core.Environment.process(Environment.java:188)
    46. freemarker.template.Template.process(Template.java:237)
    46 frames
  10. com.abbcc.helper
    FreemarkerHelper$createHTML.call
    1. com.abbcc.helper.FreemarkerHelper.createHTML(FreemarkerHelper.java:159)
    2. com.abbcc.helper.FreemarkerHelper$createHTML.call(Unknown Source)
    2 frames
  11. com.abbcc.springrest
    SiteStaticController.this$14$staticize
    1. com.abbcc.springrest.controller.user.site.SiteStaticController.staticToList(SiteStaticController.groovy:795)
    2. com.abbcc.springrest.controller.user.site.SiteStaticController.this$14$staticToList(SiteStaticController.groovy)
    3. com.abbcc.springrest.controller.user.site.SiteStaticController$this$14$staticToList.callCurrent(Unknown Source)
    4. com.abbcc.springrest.controller.user.site.SiteStaticController.staticize(SiteStaticController.groovy:664)
    5. com.abbcc.springrest.controller.user.site.SiteStaticController.this$14$staticize(SiteStaticController.groovy)
    5 frames
  12. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor2110.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:606)
    3 frames
  13. Groovy
    AbstractCallSite.callCurrent
    1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    3. org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:361)
    4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:885)
    5. org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
    6. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
    6 frames
  14. com.abbcc.springrest
    SiteStaticController$_beforeStatic_closure1.doCall
    1. com.abbcc.springrest.controller.user.site.SiteStaticController$_beforeStatic_closure1.doCall(SiteStaticController.groovy:370)
    1 frame
  15. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  16. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    3. org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
    4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:885)
    5. groovy.lang.Closure.call(Closure.java:405)
    6. groovy.lang.Closure.call(Closure.java:418)
    7. org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1240)
    8. org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1216)
    9. org.codehaus.groovy.runtime.dgm$124.invoke(Unknown Source)
    10. org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
    11. org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
    12. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    12 frames
  17. com.abbcc.springrest
    SiteStaticController.publish
    1. com.abbcc.springrest.controller.user.site.SiteStaticController.beforeStatic(SiteStaticController.groovy:373)
    2. com.abbcc.springrest.controller.user.site.SiteStaticController.publish(SiteStaticController.groovy:429)
    2 frames
  18. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor1167.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:606)
    3 frames
  19. Spring
    HandlerMethodInvoker.invokeHandlerMethod
    1. org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:175)
    1 frame
  20. Spring MVC
    FrameworkServlet.doGet
    1. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:421)
    2. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:409)
    3. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:774)
    4. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
    5. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
    6. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
    6 frames
  21. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    2 frames
  22. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  23. Tomcat WS
    WsFilter.doFilter
    1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    1 frame
  24. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  25. com.abbcc.filter
    Struts2Filter.doFilter
    1. com.abbcc.filter.Struts2Filter.doFilter(Struts2Filter.java:61)
    1 frame
  26. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  27. com.abbcc.filter
    EncodeFilter.doFilter
    1. com.abbcc.filter.EncodeFilter.doFilter(EncodeFilter.java:51)
    1 frame
  28. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  29. com.abbcc.module
    MemcachedSessionFilter.doFilter
    1. com.abbcc.module.session.MemcachedSessionFilter.doFilter(MemcachedSessionFilter.java:63)
    1 frame
  30. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    10 frames
  31. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
    3 frames
  32. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    2 frames
  33. Tomcat Util
    TaskThread$WrappingRunnable.run
    1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    1 frame
  34. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:744)
    1 frame