运行于linux上的java写的服务器调用了slf4j的android接口部分

山里猴 发布于 2015/08/21 17:50
阅读 302
收藏 0

我在ubuntu上开发的一个用apache mina的框架做的服务器,结果接受信息的的时候出现了exception

运行平台:linux

问题猜想:为什么会调用android的log接口,是不是这里出了问题?

exception:

Exception in thread "pool-1-thread-1" java.lang.NoClassDefFoundError: android/util/Log
at org.slf4j.impl.AndroidLoggerAdapter.isLoggable(AndroidLoggerAdapter.java:544)
at org.slf4j.impl.AndroidLoggerAdapter.log(AndroidLoggerAdapter.java:538)
at org.slf4j.impl.AndroidLoggerAdapter.warn(AndroidLoggerAdapter.java:439)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(DefaultIoFilterChain.java:592)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireExceptionCaught(DefaultIoFilterChain.java:580)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionCreated(DefaultIoFilterChain.java:463)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireSessionCreated(DefaultIoFilterChain.java:452)
at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionCreated(IoServiceListenerSupport.java:211)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.addNow(AbstractPollingIoProcessor.java:538)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.handleNewSessions(AbstractPollingIoProcessor.java:505)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:67)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1113)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
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)

加载中
0
rz
rz
你引用了一个不该引用的class
0
山里猴
原来因为我加入了太多的jar包的原因
返回顶部
顶部