Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2007

Tip: Looking for answers? Try searching our database.

Problem with RMI file Browsing

Thread view: 
bluegene - 26 Oct 2007 11:12 GMT
I have created an Explorer(Basic windows style) using RMI and java.
On localhost it runs fine , but on remote host it shows some
inconsistency.
Though files and folders are visible and ok , but their size (in some
cases) is 0 .
I am unable to track the problem.
Source code is available at     geocities.com/dev.sushant/rmi for
review.
(Project is developed in Netbeans and can be easily accessed.)
Esmond Pitt - 26 Oct 2007 22:14 GMT
>  Source code is available at     geocities.com/dev.sushant/rmi for
> review.
> (Project is developed in Netbeans and can be easily accessed.)

You must be kidding if you seriously expect anyone to download your code
and put it into Netbeans.

However your problem will undoubtedly be that you are serializing Files
and trying to get their length at the wrong side. File doesn't take its
length with it when you serialize it, or any other attribute except its
name. You need to get all the File attributes you want at the side where
they can be obtained, and ship them all to the other side.
Andrew Thompson - 27 Oct 2007 03:04 GMT
>>  Source code is available at     geocities.com/dev.sushant/rmi for
>> review.
>> (Project is developed in Netbeans and can be easily accessed.)
>
>You must be kidding if you seriously expect anyone to download your code
>and put it into Netbeans.
...
I agree with your basic point, though I *did* download the
OP's 166 Kb of Zip file*.  It was disappointing the OP had
not thought to run the 'clean' task to clear the build and
dist directories before zipping it.

I do not have any version of NB immediately available, but
experimented a little with the available build.xml to see if I
could throw the project on-screen, but after ten minutes of
less than optimal results, I gave up and moved on..

* And yes, I was really bored and at a loose end, at the time.

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Esmond Pitt - 29 Oct 2007 00:01 GMT
> I agree with your basic point, though I *did* download the
> OP's 166 Kb of Zip file*.

Don't encourage them ...


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.