wood burning stoves*
The moose likes Meaningless Drivel and the fly likes help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "help" Watch "help" New topic
Author

help

Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

this is the stupid message i get
java.io.FileNotFoundException: ../webapps/examples/SiteLog.txt (The system cannot find the path specified)
well I guarantee the file is there and sometimes the server can see it too. It is just like the game which says I must free up some disk space in order to save a game when i got 4 gigs free
this site has worked fine for over a year. there is something wrong with windows please help


SCJP
Visit my download page
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

well i guess they will just take my word that there is a database and that i use ODBC to talk to it from my servlets.. if someone told me that and it didnt work i would believe it. hey does anyone collect shell casings cause i might as well just shoot myself
does anyone have a dictionary with my picture for loser?
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

I mean how do you explain to a potential employer that your code is fine it is just not working cause some hacker fucked you over? eh? how do I say that in my resume?
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

what would you think if someone said hey go see my site i use servlets to access a database it is like online store and you saw this?:
Error: 500
Location: /examples/servlet/MyCookieServlet
Internal Servlet Error:
java.io.FileNotFoundException: ../webapps/examples/SiteLog.txt (The system cannot find the path specified)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.(Unknown Source)
at java.io.FileWriter.(Unknown Source)
at FileIO.append(FileIO.java:12)
at MyCookieServlet.doGet(MyCookieServlet.java:96)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:499)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Unknown Source)
the worst part is this code has worked fine for over a year and I cant fix it or find out the problem since the problem is in windows not my application
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

damnit it file is there! it always has been for over a year now and it was never a problem. what is wrong?
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Try modifying the server to print out the file.getAbsolutePath() for the file in question. You may find that the relative path isn't starting from the same directory you think it is. As a quick workaround you might need to hard-code the correct full path, until you have time to track down what caused the path to be interpreted differently than usual. I don't have any other ideas offhand - good luck!


"I'm not back." - Bill Harding, Twister
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

thanks jim ill try tomorrow i guess i cant handle it now
 
wood burning stoves
 
subject: help
 
Similar Threads
i want develop one game in java using struts.
Angry Home Inspectors
Which book do you recommend?
Need Help
Checkers game question