tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxim Senin" <mse...@mediaone.net>
Subject Re: Ctx( ): IOException in: R( + /images/dm2.gif + null) socket write error (code=10053)
Date Mon, 29 Jan 2001 16:25:38 GMT
Hmmm, I was sure that applet.getImage is synchronous...

Anyway, yesterday I tried to rewrite it so that each image is "MediaTracked"
after each applet.getImage is called and that's 100% synchronous and there
must be only one thread after that - still same problem...

----- Original Message -----
From: "William Brogden" <wbrogden@bga.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Monday, January 29, 2001 3:34 AM
Subject: Re: Ctx( ): IOException in: R( + /images/dm2.gif + null) socket
write error (code=10053)


> Each getImage starts a separate Thread and separate request
> so it is no wonder you are running into problems. Your
> applet should use MediaTracker and only do a few Threads
> at a time. It is also much faster to load a few images
> and cut them up in the Applet - assuming your big collection
> comes from cutting up a few images.
>
> > Maxim Senin wrote:
> >
> > Hi,
> >
> > I have this problem loading hundreds of images in my applet from the
> > server (Tomcat 3.2.1) with ~ following code:
> >
> > // in applet.init()...
> > for (int i=0; i<1000; i++) {
> >     URL location = getClass().getResource ("/images/image"+i+".gif");
> >     Image img = this.getImage (location);
> >     if (img != null)
> >         images.addElement (img);
> > }
> > // ...
> >
> > After loading ~50-60 images this way, I start to get
> >
> >     Ctx(  ): IOException in: R(  + /images/imageX.gif + null) socket
> > write error (code=10053)
> >
> > for all resources including classes of applet being loaded by class
> > loader.
> >
> > PLEASE HELP!!!
> >
> > Cheers,
> > Maxim
>
> --
> WBB - wbrogden@lanw.com
> Java Cert mock exams http://www.lanw.com/java/javacert/
> Author of Java Developer's Guide to Servlets and JSP
> ISBN 0-7821-2809-2
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
>


Mime
View raw message