天天看点

记一次报错

java.lang.NoSuchMethodError: com.lmax.disruptor.dsl.Disruptor.<init>(Lcom/lmax/disruptor/EventFactory;ILjava/util/concurrent/ThreadFactory;Lcom/lmax/disruptor/dsl/ProducerType;Lcom/lmax/disruptor/WaitStrategy;)V
....
           

使用phoenix时,启动项目疯狂报上面这个错,原来是该问题是因为Disruptor的版本较低导致,将版本改用较新版本的即可:

<dependency>
            <groupId>com.lmax</groupId>
            <artifactId>disruptor</artifactId>
            <version>3.4.2</version>
        </dependency>
           
bug

继续阅读