Open
Description
Source code
@PostAction("/simple")
@ResponseContentType(H.MediaType.JSON)
public ArticleType thinkerMd(ArticleType articleType){
System.out.println(articleType);
return articleType;
}
Error message
org.osgl.exception.UnexpectedNewInstanceException: error instantiate instance of com.avaje.ebean.bean.EntityBeanIntercept
at org.osgl.Lang.newInstance(Lang.java:7182)
at act.inject.param.PojoLoader$1.create(PojoLoader.java:63)
at org.osgl.Lang$Factory.apply(Lang.java:316)
at act.inject.param.FieldLoader.applyTo(FieldLoader.java:48)
at act.inject.param.PojoLoader.load(PojoLoader.java:75)
at act.inject.param.FieldLoader.applyTo(FieldLoader.java:46)
at act.inject.param.PojoLoader.load(PojoLoader.java:75)
at act.inject.param.JsonParamValueLoader.load(JsonParamValueLoader.java:67)
at act.inject.param.ScopedParamValueLoader.load(ScopedParamValueLoader.java:49)
at act.inject.param.ParamValueLoaderService.loadMethodParams(ParamValueLoaderService.java:183)
at act.handler.builtin.controller.impl.ReflectedHandlerInvoker.params(ReflectedHandlerInvoker.java:876)
at act.handler.builtin.controller.impl.ReflectedHandlerInvoker.handle(ReflectedHandlerInvoker.java:453)
at act.handler.builtin.controller.ControllerAction.handle(ControllerAction.java:48)
at act.handler.builtin.controller.RequestHandlerProxy._handle(RequestHandlerProxy.java:517)
at act.handler.builtin.controller.RequestHandlerProxy.handle(RequestHandlerProxy.java:203)
at act.app.ActionContext.proceedWithHandler(ActionContext.java:1050)
at act.route.Router$ContextualHandler.handle(Router.java:1596)
at act.xio.NetworkHandler$3.run(NetworkHandler.java:160)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchMethodException: com.avaje.ebean.bean.EntityBeanIntercept.<init>()
at java.lang.Class.getConstructor0(Class.java:3082)
at java.lang.Class.getDeclaredConstructor(Class.java:2178)
at org.osgl.Lang.newInstance(Lang.java:7169)
... 20 common frames omitted
Dependency:
<parent>
<groupId>org.actframework</groupId>
<artifactId>act-starter-parent</artifactId>
<version>1.8.8.2</version>
</parent>
Found this is all because @Entity
or @Table
annotation put on the class
Metadata
Metadata
Assignees
Labels
No labels