Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

RMI: FileNotFound exception and NullPointException

 
Ranch Hand
Posts: 507
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please have a look at the following set of codes

FileChoose.java




FileChooseRemote.java




FileChooseRemoteImpl.java



FileChooseServer.java




In here, when I click the button, it and selected the required file, the FileChooser.java is generating the exception "NullPointException" and FileChooseServer.java generates an exception "java.io.fileNotFound". I can't find the solution. Please help. Thanks>
 
Ranch Hand
Posts: 291
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Limit your code
 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Managed to solve the issue by my self. The error was, we have to select a file from the server folder, not from anywhere else. My JFileChooser was adjust to another location, I recorrected it by adjusting it to the server folder.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic