同一个pipe不能被注册多次
例如,
先使用PipeAdvertisement构造了一个JxtaServerSocket对象,
然后使用同一个PipeAdvertisement构造JxtaServerPipe对象,这是系统会抛出异常
java.io.IOException: Could not register input pipe (already registered) for urn:jxta:uuid-83A8BEEE6E0B421EB4059B445A02C0DA0B75BABF7FB9438EA2A7C0B9451056D304
at net.jxta.impl.pipe.InputPipeImpl.<init>(InputPipeImpl.java:128)
at net.jxta.impl.pipe.PipeServiceImpl.createInputPipe(PipeServiceImpl.java:388)
at net.jxta.impl.pipe.PipeServiceInterface.createInputPipe(PipeServiceInterface.java:157)
at net.jxta.util.JxtaServerPipe.<init>(JxtaServerPipe.java:163)
at net.jxta.util.JxtaServerPipe.<init>(JxtaServerPipe.java:128)
at com.cuizhf.jxtamessenger.threads.JxtaServerPipeManager.initialize(JxtaServerPipeManager.java:50)
at com.cuizhf.jxtamessenger.JxtaMessenger.<init>(JxtaMessenger.java:75)
at com.cuizhf.jxtamessenger.JxtaMessenger.startJxtaMessenger(JxtaMessenger.java:43)
at com.cuizhf.jxtamessenger.Main.main(Main.java:29)
例如,
先使用PipeAdvertisement构造了一个JxtaServerSocket对象,
然后使用同一个PipeAdvertisement构造JxtaServerPipe对象,这是系统会抛出异常
java.io.IOException: Could not register input pipe (already registered) for urn:jxta:uuid-83A8BEEE6E0B421EB4059B445A02C0DA0B75BABF7FB9438EA2A7C0B9451056D304
at net.jxta.impl.pipe.InputPipeImpl.<init>(InputPipeImpl.java:128)
at net.jxta.impl.pipe.PipeServiceImpl.createInputPipe(PipeServiceImpl.java:388)
at net.jxta.impl.pipe.PipeServiceInterface.createInputPipe(PipeServiceInterface.java:157)
at net.jxta.util.JxtaServerPipe.<init>(JxtaServerPipe.java:163)
at net.jxta.util.JxtaServerPipe.<init>(JxtaServerPipe.java:128)
at com.cuizhf.jxtamessenger.threads.JxtaServerPipeManager.initialize(JxtaServerPipeManager.java:50)
at com.cuizhf.jxtamessenger.JxtaMessenger.<init>(JxtaMessenger.java:75)
at com.cuizhf.jxtamessenger.JxtaMessenger.startJxtaMessenger(JxtaMessenger.java:43)
at com.cuizhf.jxtamessenger.Main.main(Main.java:29)