1 问题描述
查看openfire中错误日志发现;
java.lang.AbstractMethodError: javax.ws.rs.core.UriBuilder.uri(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder;
at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:119)
at org.glassfish.jersey.client.JerseyWebTarget.<init>(JerseyWebTarget.java:71)
at org.glassfish.jersey.client.JerseyClient.target(JerseyClient.java:211)
at org.glassfish.jersey.client.JerseyClient.target(JerseyClient.java:72)
at com.fotsum.CallbackOnOffline.interceptPacket(CallbackOnOffline.java:107)
at org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(InterceptorManager.java:239)
at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:177)
at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:83)
at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:115)
at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:70)
at org.jivesoftware.openfire.http.HttpSession.sendPendingPackets(HttpSession.java:639)
at org.jivesoftware.openfire.http.HttpSession$HttpPacketSender.run(HttpSession.java:1271)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2 解决方案
build Path中删除掉javax.ws.rs-api-2.0.jar