File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes RMI: FileNotFound exception and NullPointException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply 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: 403

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: 269

Limit your code


Ed's latest article: Managing Threads in Android http://coopsoft.com/ar/AndroidArticle.html
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 403

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.
 
 
subject: RMI: FileNotFound exception and NullPointException
 
Threads others viewed
refresh JPanel containing JTable
java.net.SocketException: Error
Alignment Issue
Setting look and feel of a component
Unable to save a file using JFileChooser
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture