否则编译时会出现错误error: cannot access XXX
序列化时需要访问实现类,故实现类也必须放在共有接口\
java.io.IOException: Unable to create a messenger to jxta://cbid-59616261646162614A787461503250339B80947442A966E8BEC09A04724886F203/PipeService/urn:jxta:cbid-A1B68F40F0E84E66A8A7C66DCB652BCD9989972C7C7A4D87AD35941B9EE5DDE204
at net.jxta.impl.pipe.BlockingWireOutputPipe.checkMessenger(BlockingWireOutputPipe.java:233)
at net.jxta.impl.pipe.BlockingWireOutputPipe.<init>(BlockingWireOutputPipe.java:154)
at net.jxta.impl.pipe.BlockingWireOutputPipe.<init>(BlockingWireOutputPipe.java:134)
at net.jxta.impl.pipe.PipeServiceImpl.createOutputPipe(PipeServiceImpl.java:528)
at net.jxta.impl.pipe.PipeServiceImpl.createOutputPipe(PipeServiceImpl.java:452)
at net.jxta.socket.JxtaMulticastSocket.send(JxtaMulticastSocket.java:385)
[catch] at jxmessenger.jxse.presenceservice.PresenceServiceImpl.responsePeerInfo(PresenceServiceImpl.java:214)
at jxmessenger.jxse.PeerGroupManagerImpl$1.peerInfoChanged(PeerGroupManagerImpl.java:81)
at jxmessenger.jxse.presenceservice.PresenceServiceImpl$1.run(PresenceServiceImpl.java:164)
at java.lang.Thread.run(Thread.java:722)
__________________________________________________________________________________________
序列化时需要访问实现类,故实现类也必须放在共有接口\
java.io.IOException: Unable to create a messenger to jxta://cbid-59616261646162614A787461503250339B80947442A966E8BEC09A04724886F203/PipeService/urn:jxta:cbid-A1B68F40F0E84E66A8A7C66DCB652BCD9989972C7C7A4D87AD35941B9EE5DDE204
at net.jxta.impl.pipe.BlockingWireOutputPipe.checkMessenger(BlockingWireOutputPipe.java:233)
at net.jxta.impl.pipe.BlockingWireOutputPipe.<init>(BlockingWireOutputPipe.java:154)
at net.jxta.impl.pipe.BlockingWireOutputPipe.<init>(BlockingWireOutputPipe.java:134)
at net.jxta.impl.pipe.PipeServiceImpl.createOutputPipe(PipeServiceImpl.java:528)
at net.jxta.impl.pipe.PipeServiceImpl.createOutputPipe(PipeServiceImpl.java:452)
at net.jxta.socket.JxtaMulticastSocket.send(JxtaMulticastSocket.java:385)
[catch] at jxmessenger.jxse.presenceservice.PresenceServiceImpl.responsePeerInfo(PresenceServiceImpl.java:214)
at jxmessenger.jxse.PeerGroupManagerImpl$1.peerInfoChanged(PeerGroupManagerImpl.java:81)
at jxmessenger.jxse.presenceservice.PresenceServiceImpl$1.run(PresenceServiceImpl.java:164)
at java.lang.Thread.run(Thread.java:722)
__________________________________________________________________________________________
可以使用LOOKUP机制避免这个问题