我有以下设置: wicket: 6.1.0 wicket-atmosphere: 0.4
(通过 Maven)
在 Application.init() 上,我在 EventBus 实例化期间收到 NullPointerException
new EventBus(this);
例外:
java.lang.NullPointerException
at org.apache.wicket.atmosphere.EventBus.<init>(EventBus.java:105)
这是因为方法
public synchronized static BroadcasterFactory getDefault()
传递 null(受保护的静态成员“工厂”未初始化)。
如何正确使用 Wicket/Atmosphere?我忘记了要初始化的东西吗?我将 Wicket 作为 ServletFilter 启动。
<filter>
<filter-name>AtmosphereTest</filter-name>
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
<init-param>
<param-name>applicationClassName</param-name>
<param-value>com.atmosphere.wicket.Application</param-value>
</init-param>
<init-param>
<param-name>configuration</param-name>
<param-value>development</param-value>
</init-param>
<init-param>
<param-name>ignorePaths</param-name>
<param-value>/css,/js,/images,/icons</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>AtmosphereTest</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
我没有氛围配置,需要吗?
谢谢