• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Compatibility issue in windows 7 with java.util.Observable class

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually our objective is to download the files from the server one by one. To achieve this I am using thread. In the run() method I am connecting to the http server and storing the data in an inputstream. After that I am writing to the file in a while loop 1kb at a time, at the end of the while loop I am changing the updating the progress bar and status of it. This works fine in xp and in windows 7 also but when I remove the LAN wire in xp, status has been changed to ERROR it’s not happening in windows7. All of the above code I wrapped in a try catch block.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JVM uses the networking DLLs (such as winsock) built into Windows to do all networking; sounds like you've come across a difference between how those DLLs are implemented in XP and 7. You might have to file a bug report with Oracle to get this fixed, they might have to provide special handling on 7. I assume you are using the latest JVM?
 
Sanath sajjan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, I am using the latest version that is: 1.7.0.3 .

In windows 7 the exception is not happening but for windows xp its catching the exception. For example:

InputStream.read(); function from java.io.InputStream package.
 
You guys haven't done this much, have ya? I suggest you study this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic