conversion over network drive

CPAS Forum (Inactive)
conversion over network drive greener  2008-02-27 07:35
Status: Closed
 
Seem to be have some trouble with converting files over a network share (Works fine on local files). I pasted
the tomcat log below. I have also attached the conversion configuration file. Any ideas have is muchly appreciated, have run out of ideas. Thanks -Rich


27 Feb 2008 07:19:39,923 ERROR ConvertSpectrum: Could not setup job to process M:\Richard_Green\raw\152066.RAW
27 Feb 2008 07:27:20,688 INFO ConversionJobFactory: Creating job type=thermo convParams=null recalParams=null infile=M:\Richard_Green\raw\152066.RAW outfile=null failureEmail=null
27 Feb 2008 07:27:20,688 ERROR SimpleNetworkDrive: Exception trying to map network drive for M:\Richard_Green\raw\152066.RAW
javax.naming.NameNotFoundException: Name drive is not bound in this Context
    at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    at org.fhcrc.edi.conversion.SimpleNetworkDrive.ensureDrive(SimpleNetworkDrive.java:86)
    at org.fhcrc.edi.conversion.ConversionJobFactory.createConversionJob(ConversionJobFactory.java:41)
    at org.fhcrc.edi.conversion.ConvertSpectrum.handleSubmit(ConvertSpectrum.java:102)
    at org.fhcrc.edi.conversion.ConvertSpectrum.doGet(ConvertSpectrum.java:61)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Unknown Source)
27 Feb 2008 07:27:20,688 ERROR ConvertSpectrum: Could not setup job to process M:\Richard_Green\raw\152066.RAW
 
 
brendanx responded:  2008-02-27 09:40
Hey Rich,

For starters, you want to drop the ":" in your resource name "drive/M", and not "drive/M:".

Otherwise, you should be able to get more useful information from the conversion.log int <tomcat-home>/logs. It should actually print the "net use" command it is trying to use to map your network drive. e.g. "net use M:: password /USER:user"

Often seeing the command is enough to understand what is going wrong, but you can also run it from a command line to see if what you are trying to do inside the Tomcat service actually works in the real world.

--Brendan
 
greener responded:  2008-02-27 23:40
The original error message sent was from the conversion log in the tomcat server. Thanks for the response, I made a correction you suggested to the the conversion.xml and restarted the tomcat server.
net use showed:

C:\Documents and Settings\greener>net use
New connections will be remembered.


Status Local Remote Network

-------------------------------------------------------------------------------
Disconnected M: \\Cpas_storage\Users\heinecke_lab\users
                                                 Microsoft Windows Network
The command completed successfully.

I went ahead and reconnected the Network drive

C:\Documents and Settings\greener>net use
New connections will be remembered.


Status Local Remote Network

-------------------------------------------------------------------------------
OK M: \\Cpas_storage\Users\heinecke_lab\users
                                                 Microsoft Windows Network
The command completed successfully.

But still get the same results.As the install instructions suggest I tried this:

http://192.168.7.2:8080/ConversionQueue/ConvertSpectrum/submit.post?type=thermo&infile=M:\Richard_Green\raw\152066.RAW

Which yields this:

27 Feb 2008 23:16:07,849 ERROR ConvertSpectrum: Could not setup job to process M:\Richard_Green\raw\152066.RAW


27 Feb 2008 23:20:04,210 ERROR ConvertSpectrum: Could not setup job to process M:Proteomics/users/Richard_Green/raw/152066.RAW
27 Feb 2008 23:20:04,257 INFO ConversionJobFactory: Creating job type=thermo convParams=null recalParams=null infile=M:Proteomics/users/Richard_Green/raw/ESI-MS3_050314161537a.RAW outfile=M:Proteomics/users/Richard_Green/ESI-MS3_050314161537a.mzXML failureEmail=null
27 Feb 2008 23:20:04,257 ERROR SimpleNetworkDrive: Exception trying to map network drive for M:Proteomics/users/Richard_Green/raw/ESI-MS3_050314161537a.RAW
javax.naming.NameNotFoundException: Name drive is not bound in this Context
    at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    at org.fhcrc.edi.conversion.SimpleNetworkDrive.ensureDrive(SimpleNetworkDrive.java:86)
    at org.fhcrc.edi.conversion.ConversionJobFactory.createConversionJob(ConversionJobFactory.java:41)
    at org.fhcrc.edi.conversion.ConvertSpectrum.handleSubmit(ConvertSpectrum.java:102)
    at org.fhcrc.edi.conversion.ConvertSpectrum.doGet(ConvertSpectrum.java:61)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Unknown Source)
27 Feb 2008 23:20:04,257 ERROR SimpleNetworkDrive: Exception trying to map network drive for M:Proteomics/users/Richard_Green/ESI-MS3_050314161537a.mzXML
javax.naming.NameNotFoundException: Name drive is not bound in this Context
    at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    at org.fhcrc.edi.conversion.SimpleNetworkDrive.ensureDrive(SimpleNetworkDrive.java:86)
    at org.fhcrc.edi.conversion.ConversionJobFactory.createConversionJob(ConversionJobFactory.java:43)
    at org.fhcrc.edi.conversion.ConvertSpectrum.handleSubmit(ConvertSpectrum.java:102)
    at org.fhcrc.edi.conversion.ConvertSpectrum.doGet(ConvertSpectrum.java:61)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Unknown Source)
27 Feb 2008 23:20:04,257 ERROR ConvertSpectrum: Could not setup job to process M:Proteomics/users/Richard_Green/raw/ESI-MS3_050314161537a.RAW
 
Brian Connolly responded:  2008-03-05 11:17
Rich,

There were 2 reasons for this problem.

1) The configuration file for the ConversionQueue webapp (which is located in [TOMCAT_HOME]/conf/Catalina/localhost ) must be named ConversionQueue.xml. You had the file named "conversion". This meant that ConversionQueue webapp was not reading the configuration file and was producing the error "javax.naming.NameNotFoundException: Name drive is not bound in this Context ..."


2) Two settings inside the ConversionQueue.xml file were incorrect.
   a) The "user" parameter needs to be in the format of DOMAIN\USER (if not domain is used or you are using a
      local(builtin) account then you should use HOSTNAME\USER
   b) The "name" parameter, must be in lower case... ie in your case it needed to be name="drive/m". This is not
      identified in the documentation and I will be sure to add it.