Skip to main content

Problem sending Messages via PropagatedPipe

2 replies [Last post]
janweb
Offline
Joined: 2010-02-07
Points: 0

Hi,

I am developing a small JXTA application that uses PropagatedPipes to communicate.
Sending messages works well for the first 99 messages, when trying to send message number 100 the application freezes and I get the following shell output:

Feb 7, 2010 11:48:14 PM net.jxta.impl.util.UnbiasedQueue push3
WARNING: Queue full, dropped one or more elements. Now dropped 6 elements.
Feb 7, 2010 11:49:03 PM net.jxta.impl.util.UnbiasedQueue push3
WARNING: Queue full, dropped one or more elements. Now dropped 7 elements.
Feb 7, 2010 11:49:20 PM net.jxta.impl.util.UnbiasedQueue push3
WARNING: Queue full, dropped one or more elements. Now dropped 17 elements.

The only JXTA call I make is OutputPipe.sendMessage()

So what is going wrong here, what can I do to send more than 100 messages, is there a way to empty the queue?

Thanks,

Jan

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
adamman71
Offline
Joined: 2007-01-31
Points: 0

Very strange. Have you tried with JXTA 2.6 Beta 2 release. There has been a patch applied recently for Propagated pipe over NATs. If you still encounter this issue, can you shae a code example describing the issue?

Thanks,

J.

janweb
Offline
Joined: 2010-02-07
Points: 0

Ok I found the problem, I had another input pipe with no MsgListener attached this caused the problem.
The InputPipe however was created with a different PipeAdvertisement, that should have had another ID, I created the ID with the IDFactory and different seeds, why does the IDFactory return one and the same ID for different seeds?