tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohit" <rohit.ya...@3i-infotech.com>
Subject file transfer error
Date Wed, 02 Jan 2008 08:16:54 GMT
Dear All,
    I have a typical problem. When I am trying to copy files from through
tomcat on one computer to other computer then I get exceptions as :-

java.io.FileNotFoundException:
\\10.1.103.110\FileUpload\Punjab\02-jan-08.enr (Access is denied)
 at java.io.FileOutputStream.open(Native Method)
 at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
 at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
 at extractor.MovingFile.copyFile(MovingFile.java:43)
 at extractor.MovingFile.copyDirectory(MovingFile.java:31)
 at extractor.FileGeneratorServlet.doGet(FileGeneratorServlet.java:97)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
 at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
 at java.lang.Thread.run(Thread.java:534)

and also:-

sendKey()
java.io.IOException: Access is denied
 at java.io.WinNTFileSystem.createFileExclusively(Native Method)
 at java.io.File.createNewFile(File.java:828)
 at extractor.FileGeneratorServlet.sendKey(FileGeneratorServlet.java:425)
 at extractor.FileGeneratorServlet.doGet(FileGeneratorServlet.java:101)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
 at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
 at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
 at java.lang.Thread.run(Thread.java:534)



    However when I run tomcat on my machine and try to copy in my own
computer then this works fine.
    Also when I run code only (see Moving File.java) to move file form one
computer to other then through it works fine.
Thanks and Regards,

Rohit Yadav
3i-Infotech ltd | e-Governance | Software Executive | Bangalore
080-30541563



---
This e-mail message may contain confidential, proprietary or legally privileged information.
It should not be used by anyone who is not the original intended recipient.If you have erroneously
received this message, please delete it immediately and notify the sender. The recipient acknowledges
that 3i Infotech or its subsidiaries and  associated companies, (collectively "3i Infotech"),
are unable to exercise control or ensure or guarantee the integrity of/over the contents of
the information contained in e-mail transmissions and further acknowledges that any views
expressed in this message are those of the individual sender and no binding nature of the
message shall be implied or assumed unless the sender does so expressly with due authority
of 3i Infotech. Before opening any attachments please check them for viruses and defects.


Mime
View raw message