GoogleIt Mail IT Print IT PermaLinkSNTT: Don't Forget To Close That Stream!
10:06:39 PM

Julian flagged this almost three years ago, but it bears repeating. I just got bit by this issue today. I did figure out the problem before finding Julian's solution, but not before a few more hairs were pulled out. And Julian mentions that the problem occurs with Domino 6.5.1, and I can confirm that the problem still exists in Domino 7.0.2.


Here's the problem. The help doc for the InputSource property of the EmbeddedObject Java class in the Lotus Domino back-end classes says:


Usage


EmbeddedObject.getInputStream creates a temporary file. The file is deleted when EmbeddedObject is recycled.


What it really should say is this:


Usage


EmbeddedObject.getInputStream creates a temporary file. The file is deleted when EmbeddedObject is recycled, but only if the close() method of the InputStream object returned by this property has been called before the EmbeddedObject is recycled. Failure to explicitly close the InputStream object will result in the temporary file remaining in the filesystem, which can cause the system to run out of disk space when running an agent that processes many EmbeddedObjects.


Please note: when I referred above to the fact that "the problem still exists in Domino 7.0.2", I was referring to the fact that the critical information is still missing from the documentation. I'm not trying to imply that failure to delete the file is a bug, because I recognize that still open files can not be deleted by the recycle() method. And even if the InputStream object has gone out of scope by the time the EmbeddedObject.recycle() method has been called there is no guarantee that the InputStream has been garbage-collected and closed yet, so the close really has to be done explicitly.


On the other hand, recycle has void return type, and it doesn't throw an error if you call it for an EmbeddedObject whose InputStream temporary file can't be closed; so the fact that there is no way to detect this problem really should be considered a design flaw in the Domino Java classes. And the fact that the InputStream object requires a temp file in the first place... well, that's an unfortunate design limitation. It would be so much better if you could just stream the data directly to memory from the NSF representation, instead of having to absorb the overhead of writing the temp file.


And by the way: although I haven't tested this, I'm reasonably sure that all of the above information also applies to the getInputSource property of EmbeddedObject as well.

This page has been accessed 402 times. .
Comments :v

1. tom10/18/2007 07:51:31 AM


Dr. Egon Spengler: There's something very important I forgot to tell you.
Dr. Peter Venkman: What?
Dr. Egon Spengler: Don't cross the streams.
Dr. Peter Venkman: Why?
Dr. Egon Spengler: It would be bad.
Dr. Peter Venkman: I'm fuzzy on the whole good/bad thing. What do you mean, "bad?"
Dr. Egon Spengler: Try to imagine all life as you know it stopping instantaneously and every molecule in your body exploding at the speed of light.
Dr Ray Stantz: Total protonic reversal.
Dr. Peter Venkman: Right. That's bad. Okay. All right. Important safety tip. Thanks, Egon.




2. Richard Schwartz10/18/2007 08:11:01 AM
Homepage: http://www.rhs.com/poweroftheschwartz


Thanks, Tom. Important safety tip, indeed!




Blocked Response!11/28/2007 09:32:01 AM


This response from IP Address 170.235.215.10 was blocked by the owner of this blog.




4. pietre10/04/2016 06:20:41 AM
Homepage: http://games10v.com/


There is ample evidence that drugs such as http://games10v.com/ , , Cialis and Levitra do work for many men.




5. leilei391502/28/2017 02:26:25 AM


20170228 leilei3915
http://www.adidasoutletstore.in.net
http://www.louisvuittonoutletstoreslv.us.com
http://www.nikeroshe-run.org.uk
http://www.pandoracharmsjewellery.co.uk
http://www.swarovski-crystal.org.uk
http://www.nikefreerun5.me.uk
http://www.hollister-clothingstore.in.net
http://www.louisvuittonoutlet-onlines.us.com
http://www.eccoshoesoutlet.us.com
http://www.nikeoutletstores.us
http://www.longchamphand-bags.us.com
http://www.louisvuittonoutlet-online.us.org
http://www.long-champoutlet.in.net
http://www.coachoutletonlinecoachoutlet.us.com
http://www.guccioutletonline.us.org
http://www.beatsbydrdre.co.uk
http://www.truereligionjeansoutlets.us.com
http://www.juicycoutureoutlet.net
http://www.beatsheadphones.org.uk
http://www.lebronjamesshoes.in.net
http://www.valentinooutlet.us.com
http://www.christianlouboutin-shoes.org.uk
http://www.adidas-wings.in.net
http://www.beats-headphones.in.net
http://www.ray-bansunglassesofficial.us.com
http://www.michaelkorshandbagsofficial.us.com
http://www.louisvuittonoutlethandbags.us.com
http://www.mulberry-handbags.co.uk
http://www.michaelkorsoutletstoresofficial.us.com
http://www.cheapnba-jerseys.us.com
http://www.fitflopssale.in.net
http://www.handbagslongchamp.us.com
http://www.cheapoakleysunglassesformen.us.com
http://www.nikeairmax90.me.uk
http://www.rayban-sunglassesoutlet.us.com
http://www.hollisterclothing-store.us.com
http://www.kobe9elite.us.com
http://www.michae-kors-outlet.ca
http://www.ralphlaurenpoloshirts.us.com
http://www.borselouisvuittonborse.it
http://www.truereligion-jeansoutlet.us.com
http://www.longchamphandbag.co.uk
http://www.long-champoutlet.us.com
http://www.mulberrybagsmulberryhandbags.co.uk
http://www.mcmoutletstore.us.com
http://www.cazal.us.com
http://www.cheapnf-ljerseys.us.com
http://www.borsegucci-outlet.it
http://www.nikerosheone.us
http://www.coachoutletstoreclearance.us.com




6. zzzzz02/28/2017 08:51:09 PM


http://www.cheapnhl-jerseys.us.com/
http://www.eccoshoesoutlet.us/
http://washingtonredskins.jerseyscheap.us.com/
http://www.salomon-shoes.us.com/
http://www.hollisterclothing.in.net/
http://www.coach-outletstore.name/
http://www.cheapmichaelkorshandbags.us.org/
http://www.nikeblazerlow.fr/
http://tennesseetitans.jerseyscheap.us.com/
http://www.oakleysunglassescheap.us.org/
http://www.michaelkorshandbagswholesale.us.com/
http://www.poloralph-lauren.com.co/
http://www.cheapnbajerseys.us.com/
http://www.north-face.org.uk/
http://www.michaelkorshandbags.me.uk/
http://www.raybans-sunglasses.us.org/
http://newyorkknicks.jerseyscheap.us.com/
http://www.tiffanyandco-outlet.us/
http://baltimoreravens.jerseyscheap.us.com/
http://www.ghd-flatiron.com/
http://www.michael-korsoutletstore.us.org/
http://www.pandoracharms.me.uk/
http://www.nikefree5.us.com/
http://www.michaelkors-handbagswholesale.us.com/
http://www.moncleroutletstore.us.org/
http://arizonacardinals.jerseyscheap.us.com/
http://miamiheat.jerseyscheap.us.com/
http://www.nike-trainers.com.co/
http://www.reebokoutlets.in.net/
http://www.gucciborse2016.it/
http://www.coach-handbags.cc/
http://www.suprashoes.eu.com/
http://www.michaelkors-handbagswholesale.in.net/
http://www.hugobosssale.name/
http://www.redvalentino.in.net/
http://oaklandraiders.jerseyscheap.us.com/
http://www.fitflopssale-clearance.us.com/
http://carolinapanthers.jerseyscheap.us.com/
http://detroitlions.jerseyscheap.us.com/
http://www.the-northface.co.uk/
http://www.edhardyoutlet.name/
http://www.michaelkorsoutlethandbags.in.net/
http://www.new-balanceshoes.in.net/
http://www.rayban-sunglassescheap.us.com/
http://www.michaelkorshandbagswholesale.us.org/
http://www.abercrombieandfitchkids.us.com/
http://clevelandbrowns.jerseyscheap.us.com/
http://neworleanssaints.jerseyscheap.us.com/
http://www.michaelkors-handbagsoutlet.in.net/
http://www.nmdadidas.us.org/
http://www.outletmichaelkors.us.org/
http://indianapoliscolts.jerseyscheap.us.com/
http://www.truereligionjeanssale.us.com/
http://newyorkjets.jerseyscheap.us.com/
http://www.nikehuarache.org.uk/
http://jaguars.jerseyscheap.us.com/
http://www.michaelkorsoutletstore.us.org/
http://www.adidasnmdr1.us.com/
http://www.michaelkorshandbags.uk/
http://cincinnatibengals.jerseyscheap.us.com/
http://www.oakleysunglasses.nom.co/
http://www.kobe9elite.us/
http://www.basketballshoes.us.org/
http://celtics.jerseyscheap.us.com/
http://www.tomsshoes.eu.com/
http://www.airforce1.us.org/
http://www.birken-stocksandals.com/
http://www.airmax90.eu.com/
http://www.versace-shoes.in.net/
http://www.airjordanuk.org.uk/
http://www.skechers-outlet.us/
http://www.nikestoreuk.com.co/
http://www.michaelkors-outletonlines.in.net/
http://www.handbagsmichaelkors.in.net/
http://www.louisvuitton-sacpascher.fr/
http://www.cheap-nikeshoes.org/
http://www.cheap-michaelkorshandbags.us.org/
http://www.nike-huarache.in.net/
http://www.michaelkorshandbagswholesale.in.net/
http://www.conversetrainer.org.uk/
http://www.instyler-max.in.net/
http://seattleseahawks.jerseyscheap.us.com/
http://www.nikeblazerpascher.fr/
http://clippers.jerseyscheap.us.com/
http://www.longchamps.us/
http://warriors.jerseyscheap.us.com/
http://www.asics-runningshoes.in.net/
http://www.rolex-replicawatches.us.com/
http://www.fitflopssaleclearance.org/
http://www.nikeair-huarache.me.uk/
http://www.oakley.de.com/
http://www.yeezyboost-350.us.org/
http://www.canada-goose.org.uk/
http://www.ralphlaurenoutlet.com.co/
http://greenbaypackers.jerseyscheap.us.com/
http://www.armaniexchangeoutlet.us/
http://www.cheapoakleysunglasses.org.uk/
http://www.hugoboss.us.com/
http://www.niketrainersuk.com.co/
http://www.rolexreplica-watches.com.co/
http://denverbroncos.jerseyscheap.us.com/
http://www.handbagsmichaelkors.us.com/
http://buffalobills.jerseyscheap.us.com/
http://www.michaelkors-outletclearance.in.net/
http://www.edhardyuk.me.uk/
http://www.michaelkorshandbags-sale.us.com/
http://www.nikeairhuarache.com.co/
http://www.raybans.me.uk/
http://www.michaelkorsuk.org.uk/
http://www.hermesbelt.in.net/
http://www.chaussurelouboutinpas-cher.fr/
http://www.raybansunglasses.org.uk/
http://pittsburghsteelers.jerseyscheap.us.com/
http://thunder.jerseyscheap.us.com/
http://www.michaelkors-outlethandbags.us.com/
http://www.dolceandgabbana.in.net/
http://www.handbagsmichaelkors.us.org/
http://www.ferragamo-shoes.cc/
http://cavaliers.jerseyscheap.us.com/
http://www.michaelkorshandbagscheap.in.net/
http://www.nike-tnpascher.fr/
http://chicagobears.jerseyscheap.us.com/
http://www.jimmy-choo.in.net/
http://minnesotavikings.jerseyscheap.us.com/
http://www.underarmouroutlet.cc/
http://sanfrancisco49ers.jerseyscheap.us.com/
http://www.saclongchampfr.fr/
http://www.ralphlauren-pas-cher.fr/
http://www.michael-korsoutlethandbags.us.com/
http://www.omega-watches.name/
http://www.michaelkorshandbags-outletonline.us.com/
http://www.montblancpensoutlet.name/
http://kansascitychiefs.jerseyscheap.us.com/
http://www.cheapmlb-jerseys.us.com/
http://www.eccoshoes.us.com/
http://www.lebron-jamesshoes.net/
http://atlantafalcons.jerseyscheap.us.com/
http://chargers.jerseyscheap.us.com/
http://dallascowboys.jerseyscheap.us.com/
http://www.cheapmichael-korshandbags.us.com/
http://sanantoniospurs.jerseyscheap.us.com/
http://miamidolphins.jerseyscheap.us.com/
http://www.cheap-nfljerseyswholesale.us.com/
http://www.replicawatchesforsale.us.com/
http://www.nikeoutletstore.us.org/
http://www.gucci-outletsale.in.net/
http://www.christian-louboutinoutlet.us/
http://newyorkgiants.jerseyscheap.us.com/
http://lakers.jerseyscheap.us.com/
http://www.michael-korsoutletonline.us.org/
http://houstontexans.jerseyscheap.us.com/
http://www.jordan-shoes.us.org/
http://www.michaelkorshandbagssale.in.net/
http://newenglandpatriots.jerseyscheap.us.com/
http://www.pandora-jewelryoutlet.name/
http://www.replicarolex.us.com/
http://www.michaelkorsoutlethandbags.us.org/
http://www.nikerosherunshoes.me.uk/
http://www.cheapjordanshoes.in.net/
http://www.jordanshoes.eu.com/
http://chicagobulls.jerseyscheap.us.com/
http://philadelphiaeagles.jerseyscheap.us.com/




7. chenlixiang08/11/2017 08:56:39 AM


http://www.fitflopssaleclearance.us.org
http://www.coachoutletstoreonlineshopping.us.com
http://www.ferragamoshoesoutlet.us.com
http://www.nylonic.co.uk
http://www.michaelkorsshop.us.com
http://www.uggsoutletstores.in.net
http://www.pandoracharms.us.org
http://www.adidasyeezy350.us.com
http://www.recoilmag.com.au/michael-kors.html
http://www.dardanet.se/Ralph lauren.html
http://www.underarmour.in.net
http://www.uggsaustralia.it
http://www.canadagoosesale.com.co
http://www.jordan8.net
http://www.coachoutlet-purses.us.com
2017.8.11chenlixiang




8. dongdong811/17/2017 11:21:26 PM


http://www.uggclearancesale.us.com
http://www.pandoracharms.us.org
http://www.uggaustraliaboots.me.uk
http://www.canada-goosejacka.se
http://www.uggoutlets.com.co
http://www.katespadeoutletstore.us.org
http://www.cheapraybansunglasses.net.co
http://www.nikeairmaxschweiz.ch
http://www.ukuggboots.co.uk
http://www.hollistercooutlet.us.com
http://www.michaelkors--outlet.us.com
http://www.nike-air-huarache.org.uk
http://www.suprashoesclearance.us.com
http://www.cheaprolexwatches.us.com
http://www.ralphlauren-outletstores.us.com
http://www.discountnike.us.com
http://www.uggbootsoutletcanada.ca
http://www.raybanwayfarersunglasses.us.org
http://www.canadagoosecanada.ca
http://www.poloralphlaurenoutletoff.us.com
http://www.cheapreplicawatches.us.com
http://www.ugg-bootsonline.us.com
http://www.air-jordanpascher.fr
http://www.outletmichaelkorsuk.co.uk
http://www.nikenfljerseysfreeshipping.us
http://www.north-face-outlet.in.net
http://www.moncler--paris.fr
http://www.coach-bags.us.org
http://www.nikeairmax.me.uk
http://www.cheap-jordans.us.com
http://www.airmaxnike.me.uk
http://www.uggoutletofficialsite.us.com
http://www.michael-korshandbagsoutlet.us.org
http://www.poloralphlaurenoutlet.org.uk
http://www.christianlouboutinoutletuk.org.uk
http://www.nikeairjordans.co.uk
http://www.nike-factoryoutlet.us.com
http://www.oakleysunglassess.us.org
http://www.michaeljordan-shoes.com
http://www.northfacethe.us.com
http://www.coachoutletonlineshopping.us.org
http://www.jacketmoncler.co.uk
http://www.tory-burch.org.uk
http://www.timberland.us.org
http://www.canadagooseoutlet-online.us.org
http://www.adidasshoessale.in.net
http://www.fitflopssaleclearance.us.org
http://www.prada.us.org
http://www.pandorajewelrycanada.ca
http://www.monclersitoufficiale.it
http://www.manoloblahnik.us
http://www.michaelkorsonline-outlet.us.com
http://www.truereligionsale.com.co
http://www.nikeukstore.org.uk
http://www.michaelkorsoutletonline80off.us.com
http://www.raybansunglassesoutlet.net.co
http://www.adidastore.co.uk
http://www.cheapmlbjerseysshop.us.com
http://www.originalsadidas.co.uk
http://www.blackhawksjersey.com
http://www.korsoutlet.us.com
http://www.coachfactory-outletstoreonline.us.com
http://www.ugg-outlets.com.co
http://www.nikefactory-outlet.us.com
http://www.monclernederland.nl
http://www.nikeairmaxshoes.us.com
http://www.tory-burchoutletonline.us.com
http://www.cheapairjordans.us.com
http://www.outlet-moncler.us
http://www.airjordanretro.fr
http://www.nikeairforce1.net
http://www.rayban.in.net
http://www.cheapnikenfljerseyswholesale.us
http://www.coachoutletsclearance.us.com
http://www.ray-bansunglassessales.us.com
http://www.katespadehandbagssale.us.org
http://www.monclerjassen.be
http://www.pandorajewelry-canada.ca
http://www.coachwallets.us.com
http://www.uggbootsclearance.net.co
http://www.coachoutletonline70off.us.com
http://www.outletlongchamp.us.org
http://www.converseshoesoutlet.us.com
http://www.louboutinoutlets.us.com
http://www.snapbackshatswholesale.us.com
http://www.ugg-australia.com.co
http://www.hermesoutlets.us.com
http://www.nikeoff.com
http://www.uggoutlet70off.us.com
http://www.ferragamoshoesoutlet.us.com
http://www.adidaswings.name
http://www.pradaoutletonlinestore.us.com
http://www.christianlouboutinsale.co.uk
201711.18wengdongdong




9. yaoxuemei11/29/2017 12:55:11 AM


http://www.canadagooseoutletstoress.com.co
http://www.cheapjordans-forsale.us.com
http://www.uggbootsstoress.us.com
http://www.ralphlaurenpolooutlet.me.uk
http://www.canadagoosejacketsoutlet.me.uk
http://www.adidasyeezyshoess.us.com
http://www.edhardyclothing.us.com
http://www.pandorajewelrys.name
http://www.raybansunglassesfactory.us.com
http://www.coach-outletonlineclearance.us.com
http://www.lebron-jamesshoes.us.com
http://www.ferragamooutlets.us.com
http://www.mbtshoes.me.uk
http://www.uggcanada.ca
http://www.canadagoose-jacketsuk.org.uk
http://www.michaelkorshandbagss.co.uk
http://www.pandorajewelrystores.us.com
http://www.canada-goosejacketsuk.co.uk
http://www.valentino-outlet.us.com
http://www.poloralphlaurenpolo.me.uk
http://www.adidassuperstars.us.com
http://www.michaelkorsoutletsclearance.us.com
http://www.moncleroutlets.us.com
http://www.michaelkorsoutlet-online.in.net
http://www.giuseppezanottioutlet.us.com
http://www.canada-gooseoutletstores.com
http://www.raybanssunglassesoutlet.com.co
http://www.nikeshoess.us.com
http://www.michael-korsoutletclearances.us.com
http://www.uggsoutletssale.us.com
http://www.ultraboosts.us.com
http://www.longchamphandbagss.org.uk
http://www.michaelkorsoutletblackfriday.us.com
http://www.uggoutletstoresonline.us.com
http://www.pumaoutletstore.us.com
http://www.hermesbeltsoutlet.us.com
http://www.oakley-sunglassesoutletonline.us.com
yaoxuemei20171129




10. chenlixiang12/08/2017 05:47:37 AM


http://www.rolex--watches.co.uk
http://www.katespadeoutlet-onlinestore.us
http://www.hollister.cn.com
http://www.nikefree-run.co.uk
http://www.pascherugg.fr
http://www.stuart-weitzman.org
http://www.celine-handbags.org
http://www.sunglasses-raybans.us.com
http://www.new-balanceoutlet.net
http://www.nikeair-max.it
http://www.chiflatiron.cn.com
http://www.nikeair-max.net
http://www.fitflopsale.net
http://www.oakleysunglassesweb.us.com
http://www.new-balance-femme-574.fr
http://www.converse.org.uk
http://www.air-jordanshoes.net
http://www.michael-korshandbagsuk.co.uk
http://www.ferragamo.org.uk
http://www.cheap-uggs.in.net
http://www.polo--ralphlauren.us.com
http://www.sac-guesspascher.fr
http://www.nikeairforceone.fr
http://www.beatsheadphones.in.net
http://www.lebronjames-shoes.com
http://www.uggaustraliauk.org.uk
http://www.converse--shoes.us
http://www.canadagoose.net.co
http://www.parkacanadagoosepascher.fr
http://www.juicycoutureoutlet.com.co
http://www.uggaustraliaboots.org.uk
http://www.raybansunglassesnew.us.com
http://www.tommy--hilfiger.fr
http://www.herveleger.us
http://www.lunette-oakley.fr
http://www.prada.me.uk
http://www.michaeljordan.fr
http://www.weddingdresses.me.uk
http://www.ghd-hairstraighteners.me.uk
http://www.uggs--outlet.net
http://www.replica--watches.com
http://www.nikestoreuk.co.uk
http://www.cheapairjordan.in.net
http://www.lebronshoes12.net
http://www.canadagoose--jackets.ca
http://www.bcbgmax.in.net
http://www.truereligion.in.net
http://www.scarpe-adidas-superstar.it
http://www.nike-freerun.com
http://www.the-north-face.fr
http://www.moncleroutlet.es
http://www.christian-louboutin-shoes.in.net
http://www.bracelet-swarovski-bijoux.fr
http://www.the-north-faceoutlet.us.com
http://www.lunetteraybanpascher.fr
http://www.pandora-bracciali.it
http://www.nike-rosherun.net
http://www.oakley--sunglasses.co.uk
http://www.soccer--shoes.net
http://www.sac-michaelkors-pascher.fr
http://www.adidas--superstar.fr
http://www.michaelkors--canada.ca
http://www.bracelet-pandora-bijoux.fr
http://www.uggs-outlet.in.net
http://www.uggs--outlet.net
http://www.outletscarpehogan.it
http://www.nike-air-huarache.co.uk
http://www.cheap-wedding-dresses.org
http://www.newbalance-trainers.org.uk
http://www.poloralphlaurenitalia.it
http://www.rayban-sunglasses.net.co
http://www.hermes-birkinbags.in.net
http://www.pandorauk.co.uk
http://www.mac-makeup.com
http://www.hollister-uk.me.uk
http://www.monclersito-ufficiale.it
http://www.bottesuggsoldes.fr
http://www.outletburberrysale.us.com
http://www.maccosmetics-outlet.in.net
http://www.poloralph-lauren-outlet.in.net
http://www.vanspas-cher.fr
http://www.adidas-trainersuk.co.uk
http://www.sac-vanessa-bruno.fr
http://www.nike-trainersuk.org.uk
http://www.cheapuggboots.in.net
http://www.ralphlauren-outlet.in.net
http://www.fivefingersshoes.org
http://www.bottegavenetaoutlet.us.com
http://www.newbalancesoldes.fr
http://www.christian--louboutin.org.uk
http://www.juicycoutureoutlets.us
http://www.michael-kors-outlet.me.uk
http://www.valentino-shoes.us.com
http://www.cartierlovebracelet.us
http://www.moncler.de.com
http://www.longchamphandbagsoutlet.us.com
http://www.dansko-shoes.org
http://www.puma--shoes.com
http://www.outlet-canada-goose.us.com
http://www.nikefree-5.com
2017.12.9chenlixiang




Enter Comments^


Email addresses provided are not made available on this site.





You can use UUB Code in your posts.

[b]bold[/b]  [i]italic[/i]  [u]underline[/u]  [s]strikethrough[/s]

URL's will be automatically converted to Links


:-x :cry: :laugh: :-( :cool: :huh: :-) :angry: :-D ;-) :-p :grin: :rolleyes: :-\ :emb: :lips: :-o
bold italic underline Strikethrough





Remember me    

Monthly Archive
Responses Elsewhere



About The Schwartz

rss.jpg


All opinions expressed here are my own, and do not represent positions of my employer.