[SOLVED] setopt noclobber ! doesn't overwrite file when used in cron

Basically I have noclobber set to true in .zshrc... this prevents accidently overwriting files with the pipe command...
When I run the command in a console without the >! command and noclobber set to true it properly detects the file exists and fails to overwrite it.
curl http://static.die.net/earth/mercator/1600.jpg > /home/geota/geota/.worldmap   
zsh: file exists: /home/geota/geota/.worldmap
Now when I exchange the pipe command to >! it properly overwrites the file when executed manually in the console... however if I have this command set in my crontab it instead of properly overwriting the file it just pipes it to a file named ! in my home directory...
# Reload Background Image
*/30 * * * * curl http://static.die.net/earth/mercator/1600.jpg >! /home/geota/geota/.worldmap && xfdesktop
I have tried a few different slight alterations to no avail such as
$(curl http://static.die.net/earth/mercator/1600.jpg >! /home/geota/geota/.worldmap)
`curl http://static.die.net/earth/mercator/1600.jpg >! /home/geota/geota/.worldmap`
Is there anyway I can get cron to excute the command and overwrite the file without setting noclobber to false?
Last edited by ugkbunb (2009-09-21 00:32:46)

crontab provided by arch is dcron which is very basic:
man crontab wrote:Unlike other crond/crontabs, this crontab does not try to do everything
       under the sun.  Frankly, a shell script is much more able to manipulate
       the  environment  then  cron  and I see no particular reason to use the
       user's shell (from his password entry) to run cron commands  when  this
       requires  special  casing of non-user crontabs, such as those for UUCP.
       When a crontab command is run, this crontab runs it  with  /bin/sh  and
       sets up only three environment variables: USER, HOME, and SHELL.

Similar Messages

  • Firefox 33 doesn't display a pdf file when using the response object

    Firefox 33.0.2 does not display pdf files when using the code below from an asp.net program, which works for previous versions of Firefox, and also works with IE. I'm using the built-in pdf viewer. All of my plugins are disabled.
    Dim strPDF As String
    strPDF = Session("filname") 'pdf filename
    Response.Clear()
    Response.ClearHeaders()
    Response.Buffer = True
    Response.ContentType = "application/pdf"
    Response.CacheControl = "Private"
    Response.AddHeader("Pragma", "no-cache")
    Response.AddHeader("Expires", "0")
    Response.AddHeader("Cache-Control", "no-store, no-cache, must-revalidate")
    Response.AddHeader("Content-Disposition", "inline; filename=" + strPDF)
    Response.WriteFile(strPDF)
    Response.Flush()
    Response.Close()
    Response.Clear()
    Response.End()
    Session("filname") = ""

    Thanks cor-el. You pointed me in the right direction. It appears to me that a reported Firefox 33 bug with the handling of compression (Transfer-Encoding: chunked) is the culprit (https://support.mozilla.org/en-US/questions/1026743). I was able to find a work-around by specifying the file size and buffering. Below is my code, with some code from http://www.codeproject.com/Questions/440054/How-to-Open-any-file-in-new-browser-tab-using-ASP.
    Dim strPDF As String
    strPDF = Session("filname") 'pdf filename
    Dim User As New WebClient()
    Dim FileBuffer As [Byte]() = User.DownloadData(strPDF)
    If Not (FileBuffer Is Nothing) Then
    Response.Clear()
    Response.ClearHeaders()
    Response.CacheControl = "Private"
    Response.AddHeader("Pragma", "no-cache")
    Response.AddHeader("Expires", "0")
    Response.AddHeader("Cache-Control", "no-store, no-cache, must-revalidate")
    Response.ContentType = "application/pdf"
    Response.AddHeader("content-length", FileBuffer.Length.ToString())
    Response.BinaryWrite(FileBuffer)
    Response.Flush()
    Response.Close()
    Response.Clear()
    Response.End()
    End If
    Session("filname") = ""

  • Is there a capability to save/export the time capsule settings file when using the iphone/ipad airport utility. the "file" button does not exist on the latest airport utility app.

    is there a capability to save/export the new airport 2TB time capsule settings file when using the iphone/ipad airport utility. set-up wasn't a problem but the "file" button does not exist on the latest airport utility app v6.3 to save the configuration file.

    the "file" button does not exist on the latest airport utility app v6.3 to save the configuration file.
    Sounds like you are a bit confused with version numbers.
    Latest AirPort Utility version for the iPhone / iPad is 1.3.3.  There is no option or capability to export/import settings on the iOS version(s) of AirPort Utility.....although you could take a series of screen shots and save them for future reference.
    AirPort Utility 6.3.x is found on a Mac.....not on iPhone / iPad. Export and Import options are found under the File menu in 6.3.x.

  • Adobe Premiere CC 2014.2: losing rendered files when using warp stabilizer

    Hi,
    I am constantly losing rendered files when using the warp stabilizer. So far I have tried about every hint I could find on the web such as cleaning the cache, rebuilding the rendered files, creating additional sequences etc etc.
    Honestly I am getting tired of using a product that isnt cheap in the first place to rent and where a bug like this apparently persists over several product versions without being fully fixed (I have had this problem throughout 2014 but according to forum postings others seem to have problems with much earlier versions as well).
    I would be really grateful if somebofy has any suggestion how this can be addressed.
    I am also happy to help testing fixes - if there are any fixes available.
    Thanks a lot and Happy New Year!
    Martin

    Hi Catherine,
    Welcome to the Adobe forums.
    Please try the steps mentioned below and check if it works for you.
    1. Launch Premiere Pro and create a Project, go to File menu>Project Settings>Renderer and change the Renderer to Software only mode, delete previews if you get a prompt and then try to import the clip.
    2. If step 1 fails or the Renderer is already on Software only mode, go to Start Menu and search for Device Manager, go into Display Adapters and Right click on the Graphics card to select Update driver software option, on the next screen choose "Browse my computer for driver software", then choose "Let me Pick from a list..." option and from the list select "Standard VGA Graphics adapters. You might need to change the screen resolution of your screen and once done restart the machine again.
    Launch Premiere Pro and import the clip to check.
    Regards,
    Vinay

  • What is a valid location for autorecovery files when using Word for MAC?

    What is a valid location for autorecovery files when using Word for MAC?

    Microsoft Word for Mac support forums is probably a better place to ask.

  • Preview doesn't close file when app is "closed"

    Try this on Mountain Lion (any version):
    1. Open a JPEG or PDF file in Preview, view the file (make sure it's a scratch file that you dont mind deleting).
    2. Quit Preview.
    3. Drag the just-viewed JPEG or PDF to the Trash.
    4. Empty the Trash
    At step 4, Finder will complain you cannot empty the Trash because the item you were viewing is "still in use".
    5. Open Activity Monitor, locate Preview in the list of apps, Quit it (no need to force quit, normal quit will do).
    6. Empty trash again. This time, the trash will empty correctly.
    This is a bug. Of course, it's caused by the new "feature" of ML (and Lion) that keeps apps open after they are Quit so they can open faster (think iOS). However, clearly Preview has a bug (probably going back years) in that it clearly fails to close open files when it quits.nMy guess is this bug is old, but pre-Lion it never showed since the OS app clean up process closed the file anyway when the app quit. But today selecting "Quit" in the app menu DOESNT quit the app, and Preview sits around holding the file open, and so Trash cannot delete the file until you really, really quit Preview using Activity Monitor.
    I posted this to Apple as a bug back in Lion, then again in the (then new) Mountain Lion. It's not been fixed. So either Apple can't fix it (which is pretty sad), or they dont CARE to fix it (which is worse, given how much money they make and how much I pay for Apple products).
    Since "Squeaky wheels" get oiled, I'd appreciate if anyone else here is bugged by this to also post a bug report to Apple to try to get this annoying bug fixed.
    --Tim

    Hi Tim,
    I was having this problem with several apps wanting to stay open, so I made this script applicaiton and put it in the dock:
    tell application "System Events"
    set app_list to (name of every process whose visible is true and name is not "QuitApps" and name is not "Finder")
    end tell
    repeat with this_app in app_list
              tell application this_app to quit
    end repeat
    It has been working pretty well.
    gl,

  • What is the type of backup file when using ovi sui...

    Hi there....
    Where is the backup file usually stored when using ovi suite??
    what is the type of the file when i want to search in windows viasta???
    THANK YOU
    Solved!
    Go to Solution.

    The backup file will have a ".nbu" file extension. You can view (and edit) the default saving location by going to Tools>Options>My devices.
    Attachments:
    ovi_suite_backup.jpg ‏93 KB

  • Saving PS CS3 files when used as an external editor

    When I open an image through aperature with PS as the external editor it makes a copy of my image and saves it in my library when Im done in PS which is great, but when I take that same PS edited file, open it back up in PS and attempt to save another PS version of it in the aperature library with the "Save as" command it does not show up in my library anywhere. If I go to the aperature library folder I can find my additional saved PS images in the correct library folder, but they do not show up in aperature.
    Does anyone know a way to be able to save additional PS files in the aperature library?
    Thanks!!

    Thanks for the help. Only problem still is that if I do it that way and import the edited saved Tif or PSD file back into aperature my PS layers and settings are erased when I try to reopen that PS file with the external editor through aperature. Unlike the original image duplicated in aperature when using PS as the external editor which I can continue to open and reopen from within aperature and be able to access all my saved PS layers, mask, adjustments, etc.
    Sorry if this isnt making any sense

  • My track pad on my air doesn't always respond when using firefox and trying to scroll up or down in the page

    when in firefox my track pad doesn't always respond when I want to use fingers to scroll up or down in the screen...any thoughts?

    it is possible that zoom maybe enabled i think double taping with three fingers should disable it.
    or you can go into settings>general> assessability> zoom and turn it off.
    hope this helps

  • Why won't FireFox open local .html files (when using "open file")?

    I teach hand coding and use FireFox to grade my students work. I also tell them to use this browser to review their own work. If they cannot navigate to their files on their desktop I will have to switch to another browser. I know it is something from the latest version... as I have been using FireFox for the last 5 years as my classroom browser of choice.

    Firefox should still be able to open files using open files.
    I use Windows so things may differ slightly but the option to open files is available but not visible by default, I can get the option to browse for files using: keyboard keys'''Alt , F , O'''
    My directory structure and path may differ slightly but I am also able to key directly into the location bar something such as '''''file:///C:/'''''
    A third option would be simply to click on the relevant HTML file and use the option to open, or open with Firefox. Such files may also be bookmarked.

  • 10.2.0.0 on windows -  impdp writes corrupted file when using sqlfile optio

    I've been trying to get a DDL script from an oracle export file created using impdp.
    I tried initially on 10.1, but impdp skipped huge sections of the package bodies.
    Now, I've tried on 10.2, but impdp still corrupts the various sections by inserting spurious newlines - they seem to be completely random, and from looking at the expdp dump file, the expdp tool is definitely at no fault.
    Has anyone else experienced this? Can someone please tell me a way of getting a valid DDL out using impdp - are there any patches available? Many thanks for your help!

    I've been trying to get a DDL script from an oracle export file created using impdp.
    I tried initially on 10.1, but impdp skipped huge sections of the package bodies.
    Now, I've tried on 10.2, but impdp still corrupts the various sections by inserting spurious newlines - they seem to be completely random, and from looking at the expdp dump file, the expdp tool is definitely at no fault.
    Has anyone else experienced this? Can someone please tell me a way of getting a valid DDL out using impdp - are there any patches available? Many thanks for your help!

  • Lightroom 3.6 doesn't recognize files when I try to import

    I'm trying to import RAW files shot from a friend's Canon 5D Mark III, but have been unsuccessful.  It gives me the message "the file is from a camera which is not recognized by the raw format support in lightroom"
    I normally import RAW files from my Canon 7D, but for some reason it's not recognizing these files.
    How can I fix this?
    Thank you.

    Hi Rikk,
    Thanks for answering.
    I downloaded and installed the DNG Converter 7.1, then opened Lr again, but it's still not opening the files.  Am I doing something wrong?
    Please advise.
    Thank you,
    Joel

  • External drive doesn't show volume when used internally (and vv)

    I have an early 2011 MBP 17" where I have replaced the optical drive with the 750G hard drive that came with the computer. in the hard drive spot I put in an SSD. Recently I got a 1T 2.5" drive and I want to copy all the files from the internal 750G to the 1T and then put the 1T in the optical drive bay to replace the 750G.
    I got everything copied to the 1T drive via USB - i put the drive in a USB 3.0 enclosure that I've used before with this machine. everything copied fine. so i swapped out the 750G for the 1T in the laptop. when I booted up, the drive did now show in the finder. in Disk Utility it shows up as a device and the indented volume is a greyed out and showing a system volume designation (something like disk3d or whatever the OS uses for this [I didn't make note of the specific volume name]). when I put the disk back in the USB enclosure, it worked fine.
    So i formatted the 1T in the macbook, interally, and it works fine that way. but when I put the 750G in the external enclosure, thinking I could copy the files that way [external to internal]) - the 750G does the same thing: the device shows up ok in Disk Utility but the volume is grey and shows as an OS volume name. like the 1T I am not able to mount it or do anything other than format it.
    So I am at a loss. why can I not copy files to an external drive and put that in the machine internally? this is the way I've done this kind of thing over the years. this is the first time I am doing this with the MBP. what can I do in order to get this to work so I can get all the files on the 750G onto the 1T and work in my MBP?
    I know I can leave the 750G in the computer, connect a drive and copy it all over to it. then put the 1T in the computer and copy all the files off the external drive to the 1T. likely this would work. however a) i don't have a large enough external drive to do this with and b) i'd like to understand what is going on here and solve it as i may need to do this in the future.
    any ideas?
    thanks!

    How did you backup your internal hard drive to the external?  In order to boot a Macintosh has to be partitioned using the GUID scheme and then formatted as Mac OS extended Journaled. Both operations are performed in Disk Utility. You can clone your drive to to the external using a utility such as Carbon Copy Cloner or Super Duper. I'm not sure what you expect to accomplish without install discs. When you clone a drive you're making an exact copy. You shoud probably look at calling Apple and requesting a set of original discs or purchase a full install of Snow Leopard at http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard

  • TTL specified in put operation doesn't always work when using write-behind

    I'm using a distributed cache with a write-behind cache store (see the config below). I found that when I do something like myCache.put(key, value, ttl), the entry survives the specified ttl. I tried doing the same with a distributed cache with a write-through cachestore and there everything does happen correctly.
    Is this sort of operation not permitted in caches containing a write-behind cachestore? If not wouldn't it be better to throw an UnsupportedOperationException.
    I created a small test to simulate this. I added values to the cache with a TTL of 1 to 10 seconds and found that the 10 second entries stayed in the cache.
    Configuration used:
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
         <caching-scheme-mapping>
              <cache-mapping>
                   <cache-name>TTL_TEST</cache-name>
                   <scheme-name>testScheme</scheme-name>
              </cache-mapping>
         </caching-scheme-mapping>
         <caching-schemes>
              <distributed-scheme>
                   <scheme-name>testScheme</scheme-name>
                   <service-name>testService</service-name>
                   <backing-map-scheme>
                        <read-write-backing-map-scheme>
                             <internal-cache-scheme>
                                  <local-scheme>
                                       <service-name>testBackLocalService</service-name>
                                  </local-scheme>
                             </internal-cache-scheme>
                             <cachestore-scheme>
                                  <class-scheme>
                                       <scheme-name>testBackStore</scheme-name>
                                       <class-name>TTLTestServer$TestCacheStore</class-name>
                                  </class-scheme>
                             </cachestore-scheme>
                             <write-delay>3s</write-delay>
                        </read-write-backing-map-scheme>
                   </backing-map-scheme>
                   <local-storage>true</local-storage>
                   <autostart>true</autostart>
              </distributed-scheme>
         </caching-schemes>
    </cache-config>Code of test:
    import java.util.Collection;
    import java.util.List;
    import java.util.Map;
    import java.util.concurrent.Callable;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    import java.util.concurrent.Future;
    import org.joda.time.DateTime;
    import org.joda.time.Duration;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    import org.springframework.util.StopWatch;
    import org.testng.annotations.BeforeClass;
    import org.testng.annotations.Test;
    import com.google.common.collect.Lists;
    import com.tangosol.net.CacheFactory;
    import com.tangosol.net.NamedCache;
    import com.tangosol.net.cache.CacheStore;
    @Test
    public class TTLTestServer
         private static final int RETRIES = 5;
         private static final Logger logger = LoggerFactory.getLogger( TTLTestServer.class );
         private NamedCache m_cache;
          * List of Time-To-Lives in seconds to check
         private final List<Integer> m_listOfTTLs = Lists.newArrayList(1, 3, 5, 10);
          * Test is done in separate threads to speed up the test
         private final  ExecutorService m_executorService = Executors.newCachedThreadPool();
         @BeforeClass
         public void setup()
              logger.info("Getting the cache");
              m_cache =  CacheFactory.getCache("TTL_TEST");
         public static class TestCacheStore implements CacheStore
              public void erase(Object arg0)
              public void eraseAll(Collection arg0)
              public void store(Object arg0, Object arg1)
              public void storeAll(Map arg0)
              public Object load(Object arg0)
              {return null;}
              public Map loadAll(Collection arg0)
              {return null;}
         public void testTTL() throws InterruptedException, ExecutionException
              logger.info("Starting TTL test");
              List<Future<StopWatch>> futures = Lists.newArrayList();
              for (final Integer ttl : m_listOfTTLs)
                   futures.add(m_executorService.submit(new Callable()
                        public Object call() throws Exception
                             StopWatch stopWatch= new StopWatch("TTL=" + ttl);
                             for (int retry = 0; retry < RETRIES; retry++)
                                  logger.info("Adding a value in cache for TTL={} in try={}", ttl, retry+1);
                                  stopWatch.start("Retry="+retry);
                                  m_cache.put(ttl, null, ttl*1000);
                                  waitUntilNotInCacheAnymore(ttl, retry);
                                  stopWatch.stop();
                             return stopWatch;
                        private void waitUntilNotInCacheAnymore(final Integer ttl, final int currentTry) throws InterruptedException
                             DateTime startTime = new DateTime();
                             long maxMillisToWait = ttl*2*1000;     //wait max 2 times the time of the ttl
                             while(m_cache.containsKey(ttl) )
                                  Duration timeTaken = new Duration(startTime, new DateTime());
                                  if(timeTaken.getMillis() > maxMillisToWait)
                                       throw new RuntimeException("Already waiting " + timeTaken + " for ttl=" + ttl + " and retry=" +  currentTry);
                                  Thread.sleep(1000);
              logger.info("Waiting until all futures are finished");
              m_executorService.shutdown();
              logger.info("Getting results from futures");
              for (Future<StopWatch> future : futures)
                   StopWatch sw = future.get();
                   logger.info(sw.prettyPrint());
    }Failure message:
    FAILED: testTTL
    java.util.concurrent.ExecutionException: java.lang.RuntimeException: Already waiting PT20.031S for ttl=10 and retry=0
         at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
         at java.util.concurrent.FutureTask.get(Unknown Source)
         at TTLTestServer.testTTL(TTLTestServer.java:159)
    Caused by: java.lang.RuntimeException: Already waiting PT20.031S for ttl=10 and retry=0
         at TTLTestServer$1.waitUntilNotInCacheAnymore(TTLTestServer.java:139)
         at TTLTestServer$1.call(TTLTestServer.java:122)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)I'm using Coherence 3.4.2.
    Best regards
    Jan

    Hi, still no luck. However, I noticed that setting the write-delay value of the write-behind store to 0s or 1s, solved the problem. It only starts to given me "the node has already been removed" excpetions once the write-delay value is 2s or higher.
    You can find the coherence-cache-config.xml below:
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
         <caching-scheme-mapping>
              <cache-mapping>
                   <cache-name>TTL_TEST</cache-name>
                   <scheme-name>testScheme</scheme-name>
              </cache-mapping>
         </caching-scheme-mapping>
         <caching-schemes>
              <distributed-scheme>
                   <scheme-name>testScheme</scheme-name>
                   <service-name>testService</service-name>
                   <backing-map-scheme>
                        <read-write-backing-map-scheme>
                             <internal-cache-scheme>
                                  <local-scheme>
                                       <service-name>testBackLocalService</service-name>
                                  </local-scheme>
                             </internal-cache-scheme>
                             <cachestore-scheme>
                                  <class-scheme>
                                       <scheme-name>testBackStore</scheme-name>
                                       <class-name>TTLTestServer$TestCacheStore</class-name>
                                  </class-scheme>
                             </cachestore-scheme>
                             <write-delay>2s</write-delay>
                        </read-write-backing-map-scheme>
                   </backing-map-scheme>
                   <local-storage>true</local-storage>
                   <autostart>true</autostart>
              </distributed-scheme>
         </caching-schemes>
    </cache-config>You can find the test program below:
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.List;
    import java.util.Map;
    import org.joda.time.DateTime;
    import org.joda.time.Duration;
    import org.springframework.util.StopWatch;
    import com.tangosol.net.CacheFactory;
    import com.tangosol.net.NamedCache;
    import com.tangosol.net.cache.CacheStore;
    public class TTLTestServer
         private static final int RETRIES = 5;
         private NamedCache m_cache;
          * List of Time-To-Lives in seconds to check
         private final List<Integer> m_listOfTTLs = new ArrayList<Integer>();
          * @param args
          * @throws Exception
         public static void main( String[] args ) throws Exception
              new TTLTestServer().test();
          * Empty CacheStore
          * @author jbe
         public static class TestCacheStore implements CacheStore
              public void erase(Object arg0)
              @SuppressWarnings ( "unchecked" )
              public void eraseAll(Collection arg0)
              public void store(Object arg0, Object arg1)
              @SuppressWarnings ( "unchecked" )
              public void storeAll(Map arg0)
              public Object load(Object arg0)
              {return null;}
              @SuppressWarnings ( "unchecked" )
              public Map loadAll(Collection arg0)
              {return null;}
          * Sets up and executes the test setting values in a cache with a given time-to-live value and waiting for the value to disappear.
          * @throws Exception
         private void test() throws Exception
              System.out.println(new DateTime() + " - Setting up TTL test");
              m_cache =  CacheFactory.getCache("TTL_TEST");
              m_listOfTTLs.add( 1 );
              m_listOfTTLs.add( 3 );
              m_listOfTTLs.add( 5 );
              m_listOfTTLs.add( 10);
              System.out.println(new DateTime() + " - Starting TTL test");
              for (final Integer ttl : m_listOfTTLs)
                   StopWatch sw = doTest(ttl);
                   System.out.println(sw.prettyPrint());
          * Adds a value to the cache with the time-to-live as given by the ttl parameter and waits until it's removed from the cache.
          * Repeats this {@link #RETRIES} times
          * @param ttl
          * @return
          * @throws Exception
         private StopWatch doTest(Integer ttl) throws Exception
              StopWatch stopWatch= new StopWatch("TTL=" + ttl);
              for (int retry = 0; retry < RETRIES; retry++)
                   System.out.println(new DateTime() + " - Adding a value in cache for TTL=" + ttl + " in try= " + (retry+1));
                   stopWatch.start("Retry="+retry);
                   m_cache.put(ttl, null, ttl*1000);
                   waitUntilNotInCacheAnymore(ttl, retry);
                   stopWatch.stop();
              return stopWatch;
          * Wait until the value for the given ttl is not in the cache anymore
          * @param ttl
          * @param currentTry
          * @throws InterruptedException
         private void waitUntilNotInCacheAnymore(final Integer ttl, final int currentTry) throws InterruptedException
              DateTime startTime = new DateTime();
              long maxMillisToWait = ttl*2*1000;     //wait max 2 times the time of the ttl
              while(m_cache.containsKey(ttl) )
                   Duration timeTaken = new Duration(startTime, new DateTime());
                   if(timeTaken.getMillis() > maxMillisToWait)
                        throw new RuntimeException("Already waiting " + timeTaken + " for ttl=" + ttl + " and retry=" +  currentTry);
                   Thread.sleep(1000);
    }You can find the output below:
    2009-12-03T11:50:04.584+01:00 - Setting up TTL test
    2009-12-03 11:50:04.803/0.250 Oracle Coherence 3.5.2/463p2 <Info> (thread=main, member=n/a): Loaded operational configuration from resource "jar:file:/C:/Temp/coherence3.5.2/coherence-java-v3.5.2b463-p1_2/coherence/lib/coherence.jar!/tangosol-coherence.xml"
    2009-12-03 11:50:04.803/0.250 Oracle Coherence 3.5.2/463p2 <Info> (thread=main, member=n/a): Loaded operational overrides from resource "jar:file:/C:/Temp/coherence3.5.2/coherence-java-v3.5.2b463-p1_2/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2009-12-03 11:50:04.803/0.250 Oracle Coherence 3.5.2/463p2 <D5> (thread=main, member=n/a): Optional configuration override "/tangosol-coherence-override.xml" is not specified
    2009-12-03 11:50:04.803/0.250 Oracle Coherence 3.5.2/463p2 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
    Oracle Coherence Version 3.5.2/463p2
    Grid Edition: Development mode
    Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
    2009-12-03 11:50:04.943/0.390 Oracle Coherence GE 3.5.2/463p2 <Info> (thread=main, member=n/a): Loaded cache configuration from "file:/C:/jb/workspace3.5/TTLTest/target/classes/coherence-cache-config.xml"
    2009-12-03 11:50:05.318/0.765 Oracle Coherence GE 3.5.2/463p2 <D5> (thread=Cluster, member=n/a): Service Cluster joined the cluster with senior service member n/a
    2009-12-03 11:50:08.568/4.015 Oracle Coherence GE 3.5.2/463p2 <Info> (thread=Cluster, member=n/a): Created a new cluster "cluster:0xD3FB" with Member(Id=1, Timestamp=2009-12-03 11:50:05.193, Address=172.16.44.32:8088, MachineId=36896, Location=process:11848, Role=TTLTestServerTTLTestServer, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=2) UID=0xAC102C20000001255429380990201F98
    2009-12-03 11:50:08.584/4.031 Oracle Coherence GE 3.5.2/463p2 <D5> (thread=Invocation:Management, member=1): Service Management joined the cluster with senior service member 1
    2009-12-03 11:50:08.756/4.203 Oracle Coherence GE 3.5.2/463p2 <D5> (thread=DistributedCache:testService, member=1): Service testService joined the cluster with senior service member 1
    2009-12-03T11:50:08.803+01:00 - Starting TTL test
    2009-12-03T11:50:08.818+01:00 - Adding a value in cache for TTL=1 in try= 1
    2009-12-03T11:50:09.818+01:00 - Adding a value in cache for TTL=1 in try= 2
    Exception in thread "main" (Wrapped: Failed request execution for testService service on Member(Id=1, Timestamp=2009-12-03 11:50:05.193, Address=172.16.44.32:8088, MachineId=36896, Location=process:11848, Role=TTLTestServerTTLTestServer)) java.lang.IllegalStateException: the node has already been removed
         at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.tagException(Grid.CDB:36)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onContainsKeyRequest(DistributedCache.CDB:41)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ContainsKeyRequest.run(DistributedCache.CDB:1)
         at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:12)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:9)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:136)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(DistributedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.IllegalStateException: the node has already been removed
         at com.tangosol.util.AbstractSparseArray$Crawler.remove(AbstractSparseArray.java:1274)
         at com.tangosol.net.cache.OldCache.evict(OldCache.java:580)
         at com.tangosol.net.cache.OldCache.containsKey(OldCache.java:171)
         at com.tangosol.net.cache.ReadWriteBackingMap.containsKey(ReadWriteBackingMap.java:597)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onContainsKeyRequest(DistributedCache.CDB:25)
         ... 7 more
    2009-12-03 11:50:10.834/6.281 Oracle Coherence GE 3.5.2/463p2 <D4> (thread=ShutdownHook, member=1): ShutdownHook: stopping cluster node
    2009-12-03 11:50:10.834/6.281 Oracle Coherence GE 3.5.2/463p2 <D5> (thread=Cluster, member=1): Service Cluster left the clusterBest regards
    Jan

  • Download file when using weblogic 6.1

              hi,
              When I download a .jar file using WLS 6.1 sp1, the file was corrupted.and I
              always got the same errors just like :
              <Error> <HTTP> <Servlet execution in servlet context "WebAppServletContext
              (6679584,mapsweb,/mapsweb)" failed, java.net.ProtocolException: Didn't meet
              stated Content-Length, wrote: '78' bytes instead of stated: '86327' bytes.
              java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '78' bytes
              instead of stated: '86327' bytes.
              at weblogic.servlet.internal.ServletOutputStreamImpl.finish(ServletOutpu
              tStreamImpl.java:413)
              at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImp
              l.java:974)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              pl.java:1964)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              the jar file's actual size is 86327.but after downloading, the jar size became
              (86327+78) bytes.at the beginning of the jar file-- the first 78 bytes were
              all "0d0a" ,I don't know when they are inserted .
              is it a bug of weblogic?
              

              thanks charlie, it works. i follow ur suggestion and now it works.
              "Charlie Sadler" <charlie_sadler_AT_mathworks_DOT_com> wrote:
              >Rajesh,
              >How does SP3 resolve the issue? Doesn't the JSP spec say anything not
              >in
              >tags gets sent to the output?
              >Thanks, Charlie
              >
              >"Rajesh Mirchandani" <[email protected]> wrote in message
              >news:[email protected]...
              >> Upgrade to SP3.
              >>
              >> Charlie Sadler wrote:
              >>
              >> > I'm guessing you've got a .jsp which attempts to download a file
              >to the
              >> > client browser. Remember anything not inside JSP markup gets compiled
              >to
              >> > out.print. "0d0a" is I think a carriage-return line-feed. I'm guessing
              >> > you've got 39 lines of JSP code prior to the code which downloads
              >the
              >file.
              >> > You might try spanning the line ends with a comment. For example,
              >> > <%@ page buffer="64kb" %><%--
              >> > --%><%@ page import="java.util.Iterator" %><%--
              >> > --%><%@ page import="java.util.HashMap" %><%--
              >> > --%><% //code to download the file...
              >> >
              >> > "netoasis" <[email protected]> wrote in message
              >> > news:[email protected]...
              >> > >
              >> > > hi,
              >> > > When I download a .jar file using WLS 6.1 sp1, the file was
              >> > corrupted.and I
              >> > >
              >> > > always got the same errors just like :
              >> > >
              >> > > <Error> <HTTP> <Servlet execution in servlet context
              >"WebAppServletContext
              >> > > (6679584,mapsweb,/mapsweb)" failed, java.net.ProtocolException:
              >Didn't
              >> > meet
              >> > > stated Content-Length, wrote: '78' bytes instead of stated: '86327'
              >bytes.
              >> > > java.net.ProtocolException: Didn't meet stated Content-Length,
              >wrote:
              >'78'
              >> > bytes
              >> > > instead of stated: '86327' bytes.
              >> > > at
              >> > weblogic.servlet.internal.ServletOutputStreamImpl.finish(ServletOutpu
              >> > > tStreamImpl.java:413)
              >> > > at
              >> > weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImp
              >> > > l.java:974)
              >> > > at
              >> > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              >> > > pl.java:1964)
              >> > > at
              >weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              >> > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >> > >
              >> > > the jar file's actual size is 86327.but after downloading, the
              >jar
              >size
              >> > became
              >> > >
              >> > > (86327+78) bytes.at the beginning of the jar file-- the first 78
              >bytes
              >> > were
              >> > > all "0d0a" ,I don't know when they are inserted .
              >> > >
              >> > > is it a bug of weblogic?
              >
              >
              >
              

Maybe you are looking for