salmanahmad / silo

The Silo Programming Language
0 stars 0 forks source link

Ignore NoSuchFileException when stopping Silo services #86

Open salmanahmad opened 10 years ago

salmanahmad commented 10 years ago
-bash-4.1$ silo service stop wff
Error: actor (dd3af376-737b-48b2-bb59-f04f69f80197) encountered an uncaught exception.
java.lang.RuntimeException: java.nio.file.NoSuchFileException: wff.service/service.pid
    at silo.io.file.readAllOperation.invoke(readAllOperation.java:42)
    at silo.io.file.readAll.invoke(file.silo:68)
    at silo.cli.serviceStop.invoke(cli.silo:146)
    at silo.cli.main.invoke(cli.silo:53)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at silo.lang.Function.apply(Function.java:196)
    at silo.core.fiber.resume.invoke(resume.java:41)
    at silo.lang.Actor.run(Actor.java:199)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:744)
Caused by: java.nio.file.NoSuchFileException: wff.service/service.pid
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixFileSystemProvider.newAsynchronousFileChannel(UnixFileSystemProvider.java:196)
    at java.nio.channels.AsynchronousFileChannel.open(AsynchronousFileChannel.java:248)
    at java.nio.channels.AsynchronousFileChannel.open(AsynchronousFileChannel.java:301)
    at silo.io.file.readAllOperation.invoke(readAllOperation.java:30)
salmanahmad commented 10 years ago

This seems to happen a lot. Figure out why it happens.