CometdPushService.get() 抛出 NullPointerException
<dependency>
<groupId>org.wicketstuff</groupId>
<artifactId>wicketstuff-push-cometd</artifactId>
<version>7.0.0-M5</version>
</dependency>
TimerPushService.get() 作为例外工作,但想使用 Cometd 来管理带宽。
java.lang.NullPointerException
at org.wicketstuff.push.cometd.CometdPushService.<init>(CometdPushService.java:133)
at org.wicketstuff.push.cometd.CometdPushService.get(CometdPushService.java:107)
at org.wicketstuff.push.cometd.CometdPushService.get(CometdPushService.java:97)
找到这个好帖子https://groups.google.com/forum/#!topic/cometd-users/Kn13KSHqrAw但是它在启动时失败了
java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/Timeout
at org.cometd.server.BayeuxServerImpl.<init>(BayeuxServerImpl.java:89)
at com.erranda.prototype.WebsocketConfiguration.bayeuxServer(WebsocketConfiguration.java:78)
at com.erranda.prototype.WebsocketConfiguration$$EnhancerBySpringCGLIB$$9e079365.CGLIB$bayeuxServer$4(<generated>)
at com.erranda.prototype.WebsocketConfiguration$$EnhancerBySpringCGLIB$$9e079365$$FastClassBySpringCGLIB$$44de86de.invoke(<generated>)