• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI: FileNotFound exception and NullPointException

 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • 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>
 
Edward Harned
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
Java Netbeans IDE Oracle
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic