Hi Rob,

yes, File not readable is a Exception. Here is what i get by trying to
read from the file:

Error: 500
Location: /aba2/show_proof
Internal Servlet Error:

java.lang.IllegalArgumentException:
"APACHE$DISK:[APACHE.JAKARTA.WEBAPPS.aba2]000000EB.TIF": File is not
readable.
        at javax.media.jai.JAI.createNS  (JAI.java:906)          (pc 252)
        at
javax.media.jai.JAI.create(java.lang.String,java.awt.image.renderable.ParameterBlock,java.awt.RenderingHints)
(JAI.java:786) (pc 6)
        at
javax.media.jai.JAI.create(java.lang.String,java.awt.image.renderable.ParameterBlock)
(JAI.java:1210) (pc 3)
        at ToJPEG.loadImage              (ToJPEG.java:32)        (pc 15)
        at ToJPEG. (ToJPEG.java:89)        (pc 44)
        at ShowProof.doPost              (ShowProof.java:113)    (pc 345)
        at
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
(HttpServlet.java:760) (pc 139)
        at
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,javax.servlet.ServletResponse)
(HttpServlet.java:853) (pc 29)
        at org.apache.tomcat.core.ServletWrapper.doService
(ServletWrapper.java:404) (pc 62)
        at org.apache.tomcat.core.Handler.service (Handler.java:286) (pc
194)
        at org.apache.tomcat.core.ServletWrapper.service
(ServletWrapper.java:372) (pc 140)
        at org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java:797) (pc 250)
        at org.apache.tomcat.core.ContextManager.service
(ContextManager.java:743) (pc 3)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpConnectionHandler.java:210) (pc 388)
        at org.apache.tomcat.service.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:416) (pc 73)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java:498) (pc 132)
        at java.lang.Thread.run          (Thread.java:484)       (pc 11)#



As I mentioned, the file exists, i can use my method from the commandline,
I gave (hopefully right ;-)) full acces to the directory. But trying to
read from that file with a servlet ... no way!

Hope this helps

Andrej



On Thu, 16 Aug 2001, Rob S. wrote:

> Hi Andrej,
> 
> I'm really going to need more information.  Can you paste the stack trace?  Telling 
>me "file not readable" i have no idea what that means.  Is that a trap by your code?  
>An exception of some sort?
> 
> - r
> 
> On Thu, 16 Aug 2001 18:31:42 +0200 (MET DST) [EMAIL PROTECTED] wrote:
> > 
> > Hello,
> > 
> > I would really need some help on a problem thats probably pretty simple
> > but I have absolutely no clue why this happens.
> > 
> > I am running Tomcat on OpenVMS. I wrote a java-class that reads a
> > graphicfile, converts it and writes the outputfile on disk. Running this
> > from commandline it works properly. The problem starts when trying to use
> > this method from an servlet. Already the attempt to read the inputfile
> > fails with the error-message: file not readable.
> > I set the permission in tomcat.policy for the whole directory to
> > read+write+delete, so I think it aint a security-problem. If it would
> > be a problem with permissions I also should get a SecurityException
> > instead. Apart from that I tested the file with some methods of the
> > File-class. The file exists, is a normal file, but just not readable ...
> > 
> > Any ideas anyone? Thanks for any hint!
> > 
> > Andrej Rosenheinrich
> > 
> > ----------------------------------------------------------------------------
> > ---
> > "I lived a thousand times, I found out what it means to be believed"
> > Black Sabbath
> > 
> > email : [EMAIL PROTECTED]
> 
> 
> 
> 

Andrej Rosenheinrich

-------------------------------------------------------------------------------
"I lived a thousand times, I found out what it means to be believed"
Black Sabbath

email : [EMAIL PROTECTED]
http  : www.minet.uni-jena.de/~aros
Tel   : (+49) 0177/8743619
        (+49) 03641/448695

Reply via email to