my dog learned polymorphism*
The moose likes Java in General and the fly likes Dr Watson Error on File Read Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Dr Watson Error on File Read" Watch "Dr Watson Error on File Read" New topic
Author

Dr Watson Error on File Read

Chuck Cabrera
Greenhorn

Joined: Jan 20, 2002
Posts: 9
I am running a java program on WinNT Server 4.0. I get a Dr Watson error, java.exe Exception access violation. My program reads the contents of text files. I do not get this error on NT 4.0 workstations. Please help
Thanks.
John Dale
Ranch Hand

Joined: Feb 22, 2001
Posts: 399
Just guessing here, but it may be that something else has the file open, and you are trying to open for R/W. Note that some programs will keep a hold on a file until you close the program instead of releasing it when you ask the program to close the file.
Or perhaps the file is owned by one user and you are trying to access as another user. And, of course, there is less checking going on for files on a FAT partition than on NTFS.
But I don't really know. Just thowing some ideas at you.
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

If another program has a file open... you won't get a Dr. Watson error -- you'll get an Exception. Are you calling something else in your code that could cause this error? like a JDBC-ODBC bridge? those are notorious for Dr. Watson errors.


- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
Chuck Cabrera
Greenhorn

Joined: Jan 20, 2002
Posts: 9
Jessica,
Yes I am using an ODBC connection to SQL Server 7.0. The NT Server I was testing on has jdk1.1.8.
I installed jdk1.3.1 and the error no longer occurs. Hopefully this has solved the problem.
Thanks
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

Originally posted by Chuck Cabrera:
Jessica,
Yes I am using an ODBC connection to SQL Server 7.0. The NT Server I was testing on has jdk1.1.8.
I installed jdk1.3.1 and the error no longer occurs.

Just as a suggestion... don't use the JDBC-ODBC bridge... even if you're not seeing problems now... you probably will later. A lot of our customers use the Inet driver. Might be worth checking out.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dr Watson Error on File Read