Re: Why do I get this?

Quartz <[email protected]> Mon, 4 Aug 2003 15:01:12 -0700 (PDT)
Newsgroups gmane.comp.java.seda.user
Message-ID <[email protected]>
Hi,

Frankly, I would just import the whole thing in Eclipse, and put a breakpoint in the 
SinkClosedEvent constructor! Or simply trace back the referrer to this event.
I think there might be a silent exception in there. If not, maybe the stage wrapper "died" and
closed definitely the finitequeue, hence the sinkclosed.

According to javadoc:

[...] this event is pushed to a stage if a sink closes asynchronously (that is, without being
requested by the application), or some time after the original enqueue occurred.

You have to find the cause, somewhere inside these only references:

seda.sandStorm.lib.aDisk.AFileTPTM.AFileTPThread.processRequest(AFileRequest)
seda.sandStorm.lib.aSocket.nio.DatagramSockState.close(SinkIF)
seda.sandStorm.lib.aSocket.nio.SockState.close(SinkIF)
seda.sandStorm.lib.Gnutella.GnutellaServer.handleEvent(QueueElementIF)
seda.sandStorm.lib.http.httpConnection.close(SinkIF)
seda.sandStorm.lib.http.httpServer.handleEvent(QueueElementIF)

Smells like a close() call got performed faster than the packet got in.
Hope, this help a bit. I don't know much yet about nio, nor these stages.

----------------

Hello fellow SEDA users,
 
 anger grows more and more when I can't figure out why I end up in the wrong
 state. I'll put it simple. I try to set up a AUdpSocker for incomming
 UDP-packets. No Problemo so far. BUT! When a udp packet arrives to that
 socket I dont get a AUdpInPacket as you might think, I get a SinkClosedEvent
 instead. Has anyone encountered this or do YOU got the remedy for my
 problem. If you're interested, here are parts of my code:

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01