开发者社区> 问答> 正文

JFinal多数数据源报错?报错

 

@玛雅牛 你好,想跟你请教个问题:JFinal 多数据源怎么总是报错啊java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.jfinal.core.ActionInvocation.invoke(ActionInvocation.java:65)
at com.xhis.common.BlogInterceptor.intercept(BlogInterceptor.java:14)
at com.jfinal.core.ActionInvocation.invoke(ActionInvocation.java:55)
at com.jfinal.core.ActionHandler.handle(ActionHandler.java:73)
at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:54)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1548)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:524)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:568)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1110)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:453)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1044)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:459)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:280)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:229)
at org.eclipse.jetty.io.AbstractConnection$1.run(AbstractConnection.java:505)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.jfinal.core.ActionInvocation.invoke(ActionInvocation.java:59)
... 22 more
Caused by: java.lang.ExceptionInInitializerError
at com.xhis.common.BlogController.index(BlogController.java:14)
... 27 more
Caused by: java.lang.RuntimeException: The group: null not exists.
at com.jfinal.plugin.activerecord.TableInfoMapping.getTableInfo(TableInfoMapping.java:43)
at com.jfinal.plugin.activerecord.Model.<init>(Model.java:68)
 ... 28 more
After invoking /blog
一月 21, 2014 12:20:14 下午 org.apache.jasper.servlet.JspServlet serviceJspFile
SEVERE: PWC6117: File "D%3A%5Cworkbase%5Cjfinal%5CWebRoot%5Cblog%5Cindex.jsp" not found

展开
收起
爱吃鱼的程序员 2020-06-22 13:15:01 456 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    请参考:
    http://my.oschina.net/myaniu/blog/185331
    多数据源情况下分组信息必须添加才行。
    ActiveRecordPluginaArp= new   ActiveRecordPlugin("aGroup",aDruidPlugin);
    从日志信息看,分组信息为null。

    大哥,口口号,有问题直接远程帮我看看,这样更好啊 @玛雅牛

    引用来自“玛雅牛”的答案

    请参考:
    http://my.oschina.net/myaniu/blog/185331
    多数据源情况下分组信息必须添加才行。
    ActiveRecordPluginaArp= new   ActiveRecordPlugin("aGroup",aDruidPlugin);
    从日志信息看,分组信息为null。

    2020-06-22 13:15:16
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Java Spring Boot开发实战系列课程【第15讲】:Spring Boot 2.0 API与Spring REST Docs实战 立即下载
Java Spring Boot开发实战系列课程【第7讲】:Spring Boot 2.0安全机制与MVC身份验证实战(Java面试题) 立即下载
Java Spring Boot开发实战系列课程【第6讲】:Spring Boot 2.0实战MyBatis与优化(Java面试题) 立即下载