Re: Re: Why do I get this?
Matt Welsh <[email protected]> 04 Aug 2003 22:06:22 -0700
| Newsgroups | gmane.comp.java.seda.user |
|---|---|
| Message-ID | <1060059982.28161.227.camel@localhost> |
This can happen if there is more than one thread in the stage, and one thread gets the ATcpInPacket and another thread gets the SinkClosedEvent. On Mon, 2003-08-04 at 15:01, Quartz wrote: > 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 > _______________________________________________ > SEDA-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/seda-users ------------------------------------------------------- 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