需要使用jfinal中的JedisPlugin的一些问题

raysunnnn 发布于 2016/12/13 09:09
阅读 439
收藏 0

@Jfinal

现在项目用的jfinal版本是1.9的,需要用到redis缓存。请问需要哪些引入哪些pom依赖。另外现在引入了jedis和common-pool现在报下面这个错误

严重: Exception starting filter jfinal
java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    com/jfinal/ext/plugin/redis/JedisPlugin.start()Z @148 : invokespecial
  Reason:
    Type 'redis/clients/jedis/JedisPoolConfig' (current frame, stack[3]) is not assignable to 'org/apache/commons/pool/impl/GenericObjectPool$Config'
  Current Frame:
    bci: @148
    flags: { }
    locals: { 'com/jfinal/ext/plugin/redis/JedisPlugin', 'java/util/Map', 'java/util/Set', 'redis/clients/jedis/JedisShardInfo', 'redis/clients/jedis/JedisPoolConfig' }
    stack: { 'com/jfinal/ext/plugin/redis/JedisPlugin', uninitialized 126, uninitialized 126, 'redis/clients/jedis/JedisPoolConfig', 'java/lang/String', integer, integer, 'java/lang/String' }
  Bytecode:
    0x0000000: 2ab4 0003 b800 194c 2bb9 001a 0100 4d2c
    0x0000010: b900 1b01 004e 2db9 001c 0100 9900 2c2d
    0x0000020: b900 1d01 00c0 001e 3a04 2a19 04b9 001f
    0x0000030: 0100 c000 2019 04b9 0021 0100 c000 20b6
    0x0000040: 0022 b700 23a7 ffd1 bb00 2459 2ab4 0005
    0x0000050: 2ab4 0006 2ab4 0007 b700 254e 2ab4 0026
    0x0000060: b800 2799 000b 2d2a b400 26b6 0028 bb00
    0x0000070: 2959 b700 2a3a 042a 1904 b700 2b2a bb00
    0x0000080: 2c59 1904 2db6 002d 2db6 002e 2db6 002f
    0x0000090: 2db6 0030 b700 31b5 0032 2ab4 0032 b800
    0x00000a0: 3304 ac                                
  Stackmap Table:
    append_frame(@22 ,Object[#155],Object[#156],Object[#157])
    chop_frame(@72,1)
    append_frame(@110,Object[#158])

    at com.aicailang.core.Config.configPlugin(Config.java:118)
    at com.jfinal.core.Config.configJFinal(Config.java:48)
    at com.jfinal.core.JFinal.init(JFinal.java:67)
    at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:49)
    at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4689)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5329)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
加载中
返回顶部
顶部