com.github.jknack.handlebars.HandlebarsException: ./src/main/resources/template.hbs:1:2: java.lang.RuntimeException: Why did you call me? ./src/main/resources/template.hbs:1:2

GitHub | mohamnag | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    MethodValueResolver calling unrelated methods when used with JS helper

    GitHub | 7 months ago | mohamnag
    com.github.jknack.handlebars.HandlebarsException: ./src/main/resources/template.hbs:1:2: java.lang.RuntimeException: Why did you call me? ./src/main/resources/template.hbs:1:2

    Root Cause Analysis

    1. java.lang.RuntimeException

      Why did you call me?

      at Model.badProperty()
    2. Unknown
      Model.badProperty
      1. Model.badProperty(Model.java:13)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    4. com.github.jknack
      ForwardingTemplate.apply
      1. com.github.jknack.handlebars.context.MethodValueResolver.invokeMember(MethodValueResolver.java:56)
      2. com.github.jknack.handlebars.context.MethodValueResolver.invokeMember(MethodValueResolver.java:35)
      3. com.github.jknack.handlebars.context.MemberValueResolver.resolve(MemberValueResolver.java:59)
      4. com.github.jknack.handlebars.context.MemberValueResolver.propertySet(MemberValueResolver.java:169)
      5. com.github.jknack.handlebars.Context$CompositeValueResolver.propertySet(Context.java:223)
      6. com.github.jknack.handlebars.Context.propertySet(Context.java:554)
      7. com.github.jknack.handlebars.Context.propertySet(Context.java:563)
      8. com.github.jknack.handlebars.internal.js.RhinoHandlebars.toJsObject(RhinoHandlebars.java:410)
      9. com.github.jknack.handlebars.internal.js.RhinoHandlebars.toJsObject(RhinoHandlebars.java:399)
      10. com.github.jknack.handlebars.internal.js.RhinoHandlebars.access$000(RhinoHandlebars.java:44)
      11. com.github.jknack.handlebars.internal.js.RhinoHandlebars$1.apply(RhinoHandlebars.java:269)
      12. com.github.jknack.handlebars.internal.Variable.merge(Variable.java:166)
      13. com.github.jknack.handlebars.internal.BaseTemplate.apply(BaseTemplate.java:128)
      14. com.github.jknack.handlebars.internal.TemplateList.merge(TemplateList.java:94)
      15. com.github.jknack.handlebars.internal.BaseTemplate.apply(BaseTemplate.java:128)
      16. com.github.jknack.handlebars.internal.BaseTemplate.apply(BaseTemplate.java:116)
      17. com.github.jknack.handlebars.internal.ForwardingTemplate.apply(ForwardingTemplate.java:100)
      17 frames
    5. Unknown
      App.main
      1. App.main(App.java:32)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    7. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
      1 frame