This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dr Watson Error on File Read

 
Chuck Cabrera
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 399
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4313
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Chuck Cabrera
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4313
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic