compbio-UofT / medsavant

MedSavant is a search engine for genetic variants
22 stars 9 forks source link

Workaround needed for doing chmod in the server on Windows #320

Open mfiume opened 10 years ago

mfiume commented 10 years ago

The server does a chmod, which doesn't work on Windows. Either come up with a workaround, or don't allow the server to be started on Windows (exiting gracefully).

Here's a stack trace of the error:

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: Couldn\'t publish variant table; nested exception is: java.io.IOException: Cannot run program \"/bin/chmod\": CreateProcess error=2, The system cannot find the file specified at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) at sun.rmi.transport.Transport$1.run(Unknown Source) at sun.rmi.transport.Transport$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Unknown Source) at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source) at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source) at sun.rmi.server.UnicastRef.invoke(Unknown Source) at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source) at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source) at com.sun.proxy.$Proxy6.createVariantTable(Unknown Source) at org.ut.biolab.medsavant.client.project.ProjectWizard.createNewProject(ProjectWizard.java:736) at org.ut.biolab.medsavant.client.project.ProjectWizard.access$1500(ProjectWizard.java:72) at org.ut.biolab.medsavant.client.project.ProjectWizard$18$1.doInBackground(ProjectWizard.java:588) at javax.swing.SwingWorker$1.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at javax.swing.SwingWorker.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.rmi.RemoteException: Couldn\'t publish variant table; nested exception is: java.io.IOException: Cannot run program \"/bin/chmod\": CreateProcess error=2, The system cannot find the file specified at org.ut.biolab.medsavant.server.serverapi.ProjectManager.createVariantTable(ProjectManager.java:257) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) at sun.rmi.transport.Transport$1.run(Unknown Source) at sun.rmi.transport.Transport$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at

jvlasblom commented 10 years ago

this isn't necessary for 1.2.