🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #924

Re: OutOfMemoryError

#924
From: Owen Green
Date: Thu, 04 Jul 2002 23:33
41 lines
2726 bytes
"Alan Shiers" <ashiers@hfx.eastlink.ca> wrote in message
news:3D24D4AC.1B1BFBBC@hfx.eastlink.ca...
> Hi there,
>
> >Owen wrote:
> >If you post your entire uploadFile() method (if its not too huge), it
will be easier to see what's happening.
>
> >hth
> >Owen
>
> Sure, I'll provide you with the method receiveFile() which is on the
> server-side app and uploadFile() which is on the client-side app.  Also,
> I'll include my request_workerThread class that you might see how I'm
> trying to
> split the proceedure on the client-side app.  I've been working on the
> request_workerThread class and have solved the "Bad descriptor file"
> problem.
> All I had to do was instantiate the FileInputStream object there
> instead.

Alan,

Just to let you know that I am on it, but I'm juggling things a bit here, so
it'll be as and when :)

From a first glance the problem /may/ be on the client side, but it's not so
easy to see what's going on; the various responsibilities of the classes
don't seem to be too strictly bounded, which makes things harder to follow -
I'll crack it though ;)

Just a thouht, but is allowing the thread that's actually uploading to be
suspended a good idea when its performing what amounts to socket IO? It
strikes me that if you're going to allow pausing (why do you need it?),
there should be a way of signalling this to the server, perhaps in the same
way that FTP uses control messages (on a different socket).

I'll be back...

Owen
Technical Details
Message-ID: <3d24db4d_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newspeer.clara.net!news.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3D20CC5D.B70473C9@hfx.eastlink.ca> <MPG.178acb912dba8f7998b79d@newsgroups.borland.com> <3D21C1CA.F2D953E2@hfx.eastlink.ca> <3d21bb44_1@dnews> <3D21EC78.228A5CD3@hfx.eastlink.ca> <3d21e07b_2@dnews> <3D226288.1C7C905@hfx.eastlink.ca> <3d22ec28_1@dnews> <3D233ADD.C365148D@hfx.eastlink.ca> <3d245dff_2@dnews> <3D24D4AC.1B1BFBBC@hfx.eastlink.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,28eab50e784856ac
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-07-04 16:41:08 PST
From: "Owen Green" <owen@begonefoulmachine.kennulz.demon.co.uk>
Newsgroups: borland.public.jbuilder.java.api
References: <3D20CC5D.B70473C9@hfx.eastlink.ca> <MPG.178acb912dba8f7998b79d@newsgroups.borland.com> <3D21C1CA.F2D953E2@hfx.eastlink.ca> <3d21bb44_1@dnews> <3D21EC78.228A5CD3@hfx.eastlink.ca> <3d21e07b_2@dnews> <3D226288.1C7C905@hfx.eastlink.ca> <3d22ec28_1@dnews> <3D233ADD.C365148D@hfx.eastlink.ca> <3d245dff_2@dnews> <3D24D4AC.1B1BFBBC@hfx.eastlink.ca>
Subject: Re: OutOfMemoryError
Date: Fri, 5 Jul 2002 00:33:15 +0100
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 193.237.54.9
Message-ID: <3d24db4d_2@dnews>
X-Trace: dnews 1025825613 193.237.54.9 (4 Jul 2002 16:33:33 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newspeer.clara.net!news.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews