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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by mohamnag
, 1 year ago
./src/main/resources/template.hbs:1:2: java.lang.RuntimeException: Why did you call me? ./src/main/resources/template.hbs:1:2
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
at undefined.Model.badProperty(Model.java:13)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.github.jknack.handlebars.context.MethodValueResolver.invokeMember(MethodValueResolver.java:56)
at com.github.jknack.handlebars.context.MethodValueResolver.invokeMember(MethodValueResolver.java:35)
at com.github.jknack.handlebars.context.MemberValueResolver.resolve(MemberValueResolver.java:59)
at com.github.jknack.handlebars.context.MemberValueResolver.propertySet(MemberValueResolver.java:169)
at com.github.jknack.handlebars.Context$CompositeValueResolver.propertySet(Context.java:223)
at com.github.jknack.handlebars.Context.propertySet(Context.java:554)
at com.github.jknack.handlebars.Context.propertySet(Context.java:563)
at com.github.jknack.handlebars.internal.js.RhinoHandlebars.toJsObject(RhinoHandlebars.java:410)
at com.github.jknack.handlebars.internal.js.RhinoHandlebars.toJsObject(RhinoHandlebars.java:399)
at com.github.jknack.handlebars.internal.js.RhinoHandlebars.access$000(RhinoHandlebars.java:44)
at com.github.jknack.handlebars.internal.js.RhinoHandlebars$1.apply(RhinoHandlebars.java:269)
at com.github.jknack.handlebars.internal.Variable.merge(Variable.java:166)
at com.github.jknack.handlebars.internal.BaseTemplate.apply(BaseTemplate.java:128)
at com.github.jknack.handlebars.internal.TemplateList.merge(TemplateList.java:94)
at com.github.jknack.handlebars.internal.BaseTemplate.apply(BaseTemplate.java:128)
at com.github.jknack.handlebars.internal.BaseTemplate.apply(BaseTemplate.java:116)
at com.github.jknack.handlebars.internal.ForwardingTemplate.apply(ForwardingTemplate.java:100)
at undefined.App.main(App.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.