• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

Dr Watson Error on File Read

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
The problems of the world fade way as you eat a piece of pie. This tiny ad has never known problems:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic