aspose file tools*
The moose likes Distributed Java and the fly likes RMI: FileNotFound exception and NullPointException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI: FileNotFound exception and NullPointException" Watch "RMI: FileNotFound exception and NullPointException" New topic
Author

RMI: FileNotFound exception and NullPointException

Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

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>


Are you better than me? Then please show me my mistakes..
Edward Harned
Ranch Hand

Joined: Sep 19, 2005
Posts: 291

Limit your code


Ed's latest article: A Java Parallel Calamity http://coopsoft.com/ar/Calamity2Article.html
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI: FileNotFound exception and NullPointException